help-gnucap
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gnucap] non-linear dependent sources


From: address@hidden
Subject: Re: [Help-gnucap] non-linear dependent sources
Date: Thu, 26 Jun 2008 17:26:42 +0200
User-agent: Thunderbird 2.0.0.14 (Windows/20080421)

John Vodden a écrit :
I would like to know if there is a way to model a dependent source like
this with variable gain.
Hello,

I'm using this for multiply operation (in tran analysis):
Perhaps, there is a better way ...

.SUBCKT Mul in1 in2 out
G1 1 0 in1 0 1.0
G2 1 0 VCR 0 in2 1.0
E1 out 0 1 0 1.0 .ENDS

and invert (out=1/in):

.SUBCKT Invert in out
V1 1 0 1
G1 1 0 VCR 0 in 1
H1 out 0 V1 1
.ENDS

But for a bug in the limiting algorithm (see "strange behaviour
for VCR" in bug-gnucap mailing list) who must add in 0.35 :

.options vmax=1e99 vmin=-1e99

I hope this would be usefull for you.

I wrote an "unofficial" bad extension for exp(in), cos(in), tan(in), ln(in).
If someone need such operations ...

Best regards

Jacques Le Coupanec






reply via email to

[Prev in Thread] Current Thread [Next in Thread]