Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Euler-method/11l/euler-method.11l
Normal file
11
Task/Euler-method/11l/euler-method.11l
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
F euler(f, y0, a, b, h)
|
||||
V t = a
|
||||
V y = y0
|
||||
L t <= b
|
||||
print(‘#2.3 #2.3’.format(t, y))
|
||||
t += h
|
||||
y += h * f(t, y)
|
||||
|
||||
V newtoncooling = (time, temp) -> -0.07 * (temp - 20)
|
||||
|
||||
euler(newtoncooling, 100.0, 0.0, 100.0, 10.0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue