The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.