RosettaCodeData/Task/Test-a-function/Mathematica/test-a-function.math

3 lines
77 B
Text
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
myFun[x_] := Block[{y},y = x^2; Assert[y > 5]; Sin[y]]
On[Assert];myFun[1.0]