Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Euler-method/PicoLisp/euler-method.l
Normal file
14
Task/Euler-method/PicoLisp/euler-method.l
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
(load "@lib/math.l")
|
||||
|
||||
(de euler (F Y A B H)
|
||||
(while (> B A)
|
||||
(prinl (round A) " " (round Y))
|
||||
(inc 'Y (*/ H (F A Y) 1.0))
|
||||
(inc 'A H) ) )
|
||||
|
||||
(de newtonCoolingLaw (A B)
|
||||
(*/ -0.07 (- B 20.) 1.0) )
|
||||
|
||||
(euler newtonCoolingLaw 100.0 0 100.0 2.0)
|
||||
(euler newtonCoolingLaw 100.0 0 100.0 5.0)
|
||||
(euler newtonCoolingLaw 100.0 0 100.0 10.0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue