summaryrefslogtreecommitdiff
path: root/50/CH6/EX6.17/ex_6_17.sce
blob: 9de434d2a4dc309a66ba8a82554a3e6b686eca37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// example 6.17,
// caption: solve by 1)modified euler cauchy, 2)heun method

// h=0.2
// 1) modified euler cauchy method,

// u'=f(t,u)
// u'=-2tu^2
deff('[z]=f(t,u)','z=-2*t*u^2');

modifiedeuler(1,0,.4,.2,f)       // calling the function,

// 2) heun method,
deff('[z]=f(t,u)','z=-2*t*u^2');


heun(1,0,.4,.2,f)       // calling the function,