Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Problem with If[] and %
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  

Posts: 72
Registered: 12/7/04
Problem with If[] and %
Posted: Dec 1, 1996 11:17 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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

Therefore I test

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

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.