| Author |
Comment/Response |
kyle
|
07/23/10 09:38am
Hey,
I want a piecewise function as follows.
rmax[s_] :=
Piecewise[{{2.5, Abs[s] <= 1}, {Min[2.5, 2/Sqrt[s^2 - 1]],
Abs[s] > 1}}]
The second value makes sense whenever the condition is satisfied, but I still get error messages when I try to plot it because the Min function gets imaginary numbers when s<1.
the error messages are
Min::nord: Invalid comparison with 1.25+2.9729790718136506 i attempted. etc
URL: , |
|