View Single Post
  #8   Report Post  
Posted to sci.electronics.design,alt.binaries.schematics.electronic,sci.electronics.cad
Spehro Pefhany Spehro Pefhany is offline
external usenet poster
 
Posts: 1,475
Default "Algebraic" IF Statement Evaluation

On Tue, 19 May 2009 09:19:33 -0700, Jim Thompson
wrote:

I need to evaluate...

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


(1+sgn(V11-7))/2 ?