RosettaCodeData/Task/Euler-method/Oforth/euler-method-1.fth
2023-07-01 13:44:08 -04:00

6 lines
153 B
Forth

: euler(f, y, a, b, h)
| t |
a b h step: t [
System.Out t <<wjp(6, JUSTIFY_RIGHT, 3) " : " << y << cr
t y f perform h * y + ->y
] ;