28.11.08

Trivial trick of Mathematica

Piece-wise function definition: (ONLY :=, NOT =)
f[x_]:=x^2/;x<=5
f[x_]:=Sin[x]/;x>5

没有评论: