[sci.electronics] Spice 3C1 Users-Please read

shankar@sirius.UVic.CA (Shankar.S.Pennathur) (03/27/91)

I am having trouble using the functions abs(), sqrt() and a^b ( b<1 )
from within a SPICE input file, to specify non-linear dependent sources..
Spice does not seem to accept these function calls, contrary to what
the manual says..Would some of the netters who are using Spice3C1 please
try out the following routine and email me about the results...

----------------------------------------------------------------------------
*  testing abs()
V1 1 0 PULSE(0.5 1 0 10u 10u 50u 100u)
B2 2 1 V=sqrt(V(1))
* For that matter even abs() does not work in the above line!
R1 2 0 1K
.TRAN 1u 300u 
.END
----------------------------------------------------------------------------

Thanks.

                                                       - Shankar
                                                  (shankar@sirius.uvic.ca)
-- 
Shankar S Pennathur,                   Email:shankar@sirius.uvic.ca
Dept. of ECE.,	                         Phone: 604-721-8691 (O)
UVic, BC,Canada V8W 3P6                  -----------------------

FC138001@ysub.ysu.edu (Phil Munro) (03/27/91)

In article <1991Mar26.161536.10706@sol.UVic.CA>, shankar@sirius.UVic.CA
(Shankar.S.Pennathur) says:
> ...
>*  testing abs()
>V1 1 0 PULSE(0.5 1 0 10u 10u 50u 100u)
>B2 2 1 V=sqrt(V(1))
>* For that matter even abs() does not work in the above line!
>R1 2 0 1K
>.TRAN 1u 300u
>.END
>
  Am I right that SPICE is case sensitive?  That is, perhaps sqrt and
abs need to be upper case, SQRT and ABS???