
- Re: "Algebraic" IF Statement Evaluation
- 05-20-2009
If you were Registered and logged in, you could reply and use other advanced thread options
wrote:
are there any operators or functions that can give a different
mumeric result depending on the truth of the input.
many systems have false as 0 and true as 1 (or less common -1)
else maybe something like (sgn( sgn(V11-7) *2 +1 ) + 1 ) /2
are there any operators or functions that can give a different
mumeric result depending on the truth of the input.
many systems have false as 0 and true as 1 (or less common -1)
else maybe something like (sgn( sgn(V11-7) *2 +1 ) + 1 ) /2
- Re: "Algebraic" IF Statement Evaluation
- May 19, 2009, 1:43 pm
- Re: "Algebraic" IF Statement Evaluation
- May 19, 2009, 1:49 pm
- Re: "Algebraic" IF Statement Evaluation
- May 19, 2009, 12:56 pm
- Re: "Algebraic" IF Statement Evaluation
- May 19, 2009, 12:56 pm
- Re: "Algebraic" IF Statement Evaluation
- May 19, 2009, 12:53 pm
- "Algebraic" IF Statement Evaluation
- May 19, 2009, 12:19 pm
> IF(t,1,0) (If t is true, output 1, if t is false, output 0 (numeric),
> t may be something like V11 >= 7, for example)
> BUT I have no IF statement handling capability at this level of a
> simulation.
> I do have algebraic capability.
> Is there some cute way to do this algebraically?
> ...Jim Thompson