Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

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/


  • Prev by Date: solving differential equations
  • Next by Date: Integration of exp(-az)*sigma(t-to)*dz ??
  • Previous by thread: Re: solving differential equations
  • Next by thread: Re: Problem with If[] and %