I find that a conditional function works (it directly makes a decision with
the contents of ( ). But it is a long line. When I want to use a variable to
substitute the content of ( ) as below:
real tempr;
tempr = sin(`M_TWO_PI * freq * (0 + 1.0) * $abstime;
It has errors when I try to do Transient analysis.
Could you tell me how to make the above works?
Thanks,