Negative values over time
Negative values over time
For a particular variable, I have an equation. According to that equation the value of the variable becomes negative over time. How do I specify in the equation editor that it should show 0 for any values less than 0?
variable becoming negative
Hi
If you want the variable to become equal to zero if negative write X = if then else (f(x) < 0,0,f(X))
If you do not want the variable to become equal to zero but only want to show it, you use a second variable
Z = if then else (X < 0,0,1) and show that variable.
Regards
JJ
If you want the variable to become equal to zero if negative write X = if then else (f(x) < 0,0,f(X))
If you do not want the variable to become equal to zero but only want to show it, you use a second variable
Z = if then else (X < 0,0,1) and show that variable.
Regards
JJ
Variable taking a zero value
in fact you must write Z = if then else (F(X) < 0,0,F(X)) and
show Z in place of X.
show Z in place of X.
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm