| Author |
Comment/Response |
Mikel
|
10/30/06 09:28am
f(x) = 0 , when x<= -1
f(x) = sqrt(1-x^2) when -1<x<1
f(x) = x when x>=1
Sure, you can do it with Piecewise[{{expr1,cond1},{expr2,cond2},...}]
in your case:
f[x_]:=Piecewise[{{0,x<=1},{Sqrt[1-x^2],-1<x<1},{x,x>=1}}]
good luck
URL: , |
|