Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Solve Differential Equation

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 4

Solving Differential Equation

n t y y_exact delta_t
0 0 0.5 0.5 0.1
1 0.1 0.45 0.4572561271
2 0.2 0.415 0.4280961296 Equations:
3 0.3 0.3935 0.411227331 1. t(n+1) = t(n) + delta_t
4 0.4 0.38415 0.4054800691 2. y(n+1) = y(n) + (t(n)-y(n))*delta_t
5 0.5 0.385735 0.4097959896
6 0.6 0.3971615 0.4232174541 Time Interval = (0,1.2)
7 0.7 0.41744535 0.4448779557
8 0.8 0.445700815 0.4739934462 Initial Value, y(0) = 0.5
9 0.9 0.4811307335 0.5098544896
10 1 0.5230176602 0.5518191618 Exact Solution
11 1.1 0.5707158941 0.5993066255 y(t) = -1+t+1.5e^(-t)
12 1.2 0.6236443047 0.6517913179
Differential Equation
0.65

0.6

0.55

0.5
y

0.45

0.4

0.35

0.3
-0.3 0.2 0.7 1.2
t
Try Yourself

n t y y_exact
urself

delta_t

Equations:
1. t(n+1) = t(n) + delta_t
2. y(n+1) = y(n) + (t(n)-y(n))*delta_t

Time Interval = (0,1.2)

Initial Value, y(0) = 0.5

You might also like