Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Euler-method/Arturo/euler-method.arturo
Normal file
14
Task/Euler-method/Arturo/euler-method.arturo
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
euler: function [f, y0, a, b, h][
|
||||
[t,y]: @[a, y0]
|
||||
|
||||
while [t < b][
|
||||
print [to :string .format:".3f" t, to :string .format:".3f" y]
|
||||
t: t + h
|
||||
y: y + h * call f @[t,y]
|
||||
]
|
||||
]
|
||||
|
||||
newtoncooling: function [ti, te]->
|
||||
(neg 0.07) * te - 20
|
||||
|
||||
euler 'newtoncooling 100.0 0.0 100.0 10.0
|
||||
Loading…
Add table
Add a link
Reference in a new issue