mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-04 03:03:32 +02:00
fix a bug in the derivative
This commit is contained in:
@@ -226,7 +226,7 @@ void cm_pswitch(ARGS) /* structure holding parms,
|
||||
}
|
||||
}
|
||||
|
||||
pi_pcntl = INPUT(out) / r * (loc->c2 * inmean * inmean - loc->c1 * INPUT(cntl_in));
|
||||
pi_pcntl = INPUT(out) / r * (loc->c2 * inmean * inmean - loc->c1);
|
||||
pi_pvout = 1.0 / r;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user