Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Euler-method/Ring/euler-method.ring
Normal file
13
Task/Euler-method/Ring/euler-method.ring
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
decimals(3)
|
||||
see euler("return -0.07*(y-20)", 100, 0, 100, 2) + nl
|
||||
see euler("return -0.07*(y-20)", 100, 0, 100, 5) + nl
|
||||
see euler("return -0.07*(y-20)", 100, 0, 100, 10) + nl
|
||||
|
||||
func euler df, y, a, b, s
|
||||
t = a
|
||||
while t <= b
|
||||
see "" + t + " " + y + nl
|
||||
y += s * eval(df)
|
||||
t += s
|
||||
end
|
||||
return y
|
||||
Loading…
Add table
Add a link
Reference in a new issue