1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-27 16:49:31 +00:00
anselme/test/tests/function definition.ans

21 lines
157 B
Text

:f = $(x)x*x
:$g(x)
return(x*x)
|{f(5)} = {g(5)}
|{f(2)} = {g(2)}
:y = 5
:h = $(x)x*x+y
| {h(3)} == 14
y = 7
| {h(5)} == 32
:i = $y*y
| {i!} == 49