Problem with If[] and %

*To*: mathgroup at smc.vnet.net*Subject*: [mg5355] Problem with If[] and %*From*: hans.steffani at e-technik.tu-chemnitz.de (Hans Steffani)*Date*: Thu, 5 Dec 1996 14:50:07 -0500*Organization*: University of Technology Chemnitz, FRG*Sender*: owner-wri-mathgroup at wolfram.com

If[ i^2+v^2>15, 15, i^2+v^2] Plot3D[ %,{i,-5,5},{v,-5,5}] does what I want. But i^2+v^2 is only an example for an other more complex function which is derived in the steps before. Therefore I test i^2+v^2 If[ % >15,15,%] Plot3D[ %,{i,-5,5},{v,-5,5}] Which only leads to several errors. What do I have to do? Hans Friedrich Steffani -- Hans Friedrich Steffani Institut fuer Elektrische Maschinen und Antriebe, TU Chemnitz-Zwickau mailto:hans.steffani at e-technik.tu-chemnitz.de http://www.tu-chemnitz.de/~hfst/