#include "spice.h"
#include <stdio.h>
#include <math.h>
#include "inpptree.h"
Go to the source code of this file.
|
| #define | MODULUS(NUM, LIMIT) ((NUM) - ((int) ((NUM) / (LIMIT))) * (LIMIT)) |
| |
| #define | V1 p->tranparms[0] |
| |
| #define | V2 p->tranparms[1] |
| |
| #define | TD p->tranparms[2] |
| |
| #define | TR p->tranparms[3] |
| |
| #define | TF p->tranparms[4] |
| |
| #define | PW p->tranparms[5] |
| |
| #define | PER p->tranparms[6] |
| |
| #define | SPER p->tranparms[2] |
| |
| #define | SDEL p->tranparms[3] |
| |
| #define | VO p->tranparms[0] |
| |
| #define | VA p->tranparms[1] |
| |
| #define | FREQ p->tranparms[2] |
| |
| #define | TDL p->tranparms[3] |
| |
| #define | THETA p->tranparms[4] |
| |
| #define | TD1 p->tranparms[2] |
| |
| #define | TAU1 p->tranparms[3] |
| |
| #define | TD2 p->tranparms[4] |
| |
| #define | TAU2 p->tranparms[5] |
| |
| #define | FC p->tranparms[2] |
| |
| #define | MDI p->tranparms[3] |
| |
| #define | FS p->tranparms[4] |
| |
|
| double | asinh () |
| |
| double | acosh () |
| |
| double | atanh () |
| |
| static double | PTtPulse () |
| |
| static double | PTtPwl () |
| |
| static double | PTtSin () |
| |
| static double | PTtSpulse () |
| |
| static double | PTtExp () |
| |
| static double | PTtSffm () |
| |
| static double | PTabs () |
| |
| static double | PTsgn () |
| |
| static double | PTplus () |
| |
| static double | PTminus () |
| |
| static double | PTtimes () |
| |
| static double | PTdivide () |
| |
| static double | PTpower () |
| |
| static double | PTacos () |
| |
| static double | PTasin () |
| |
| static double | PTatan () |
| |
| static double | PTcos () |
| |
| static double | PTcosh () |
| |
| static double | PTexp () |
| |
| static double | PTln () |
| |
| static double | PTlog () |
| |
| static double | PTsin () |
| |
| static double | PTsinh () |
| |
| static double | PTsqrt () |
| |
| static double | PTtan () |
| |
| static double | PTtanh () |
| |
| static double | PTuminus () |
| |
| static double | PTtPulse (INPparseNode *p, double *t) |
| |
| static double | PTtPwl (INPparseNode *p, double *t) |
| |
| static double | PTtSin (INPparseNode *p, double *t) |
| |
| static double | PTtSpulse (INPparseNode *p, double *t) |
| |
| static double | PTtExp (INPparseNode *p, double *t) |
| |
| static double | PTtSffm (INPparseNode *p, double *t) |
| |
| static double | PTabs (double arg) |
| |
| static double | PTsgn (double arg) |
| |
| static double | PTplus (double arg1, double arg2) |
| |
| static double | PTminus (double arg1, double arg2) |
| |
| static double | PTtimes (double arg1, double arg2) |
| |
| static double | PTdivide (double arg1, double arg2) |
| |
| static double | PTpower (double arg1, double arg2) |
| |
| static double | PTacos (double arg) |
| |
| static double | PTasin (double arg) |
| |
| static double | PTatan (double arg) |
| |
| static double | PTcos (double arg) |
| |
| static double | PTcosh (double arg) |
| |
| static double | PTexp (double arg) |
| |
| static double | PTln (double arg) |
| |
| static double | PTlog (double arg) |
| |
| static double | PTsin (double arg) |
| |
| static double | PTsinh (double arg) |
| |
| static double | PTsqrt (double arg) |
| |
| static double | PTtan (double arg) |
| |
| static double | PTtanh (double arg) |
| |
| static double | PTuminus (double arg) |
| |
| #define FC p->tranparms[2] |
| #define FREQ p->tranparms[2] |
| #define FS p->tranparms[4] |
| #define MDI p->tranparms[3] |
| #define MODULUS |
( |
|
NUM, |
|
|
|
LIMIT |
|
) |
| ((NUM) - ((int) ((NUM) / (LIMIT))) * (LIMIT)) |
| #define PER p->tranparms[6] |
| #define PW p->tranparms[5] |
| #define SDEL p->tranparms[3] |
| #define SPER p->tranparms[2] |
| #define TAU1 p->tranparms[3] |
| #define TAU2 p->tranparms[5] |
| #define TD p->tranparms[2] |
| #define TD1 p->tranparms[2] |
| #define TD2 p->tranparms[4] |
| #define TDL p->tranparms[3] |
| #define TF p->tranparms[4] |
| #define THETA p->tranparms[4] |
| #define TR p->tranparms[3] |
| #define V1 p->tranparms[0] |
| #define V2 p->tranparms[1] |
| #define VA p->tranparms[1] |
| #define VO p->tranparms[0] |
| static double PTabs |
( |
double |
arg | ) |
|
|
static |
Definition at line 318 of file ptfuncs.c.
321 {
return arg >= 0.0 ? arg : -arg; }
| static double PTacos |
( |
double |
arg | ) |
|
|
static |
Definition at line 377 of file ptfuncs.c.
380 {
return (acos(arg)); }
| static double PTasin |
( |
double |
arg | ) |
|
|
static |
Definition at line 384 of file ptfuncs.c.
387 {
return (asin(arg)); }
| static double PTatan |
( |
double |
arg | ) |
|
|
static |
Definition at line 391 of file ptfuncs.c.
394 {
return (atan(arg)); }
| static double PTcos |
( |
double |
arg | ) |
|
|
static |
Definition at line 423 of file ptfuncs.c.
#define MODULUS(NUM, LIMIT)
| static double PTcosh |
( |
double |
arg | ) |
|
|
static |
Definition at line 430 of file ptfuncs.c.
433 {
return (cosh(arg)); }
| static double PTdivide |
( |
| ) |
|
|
static |
| static double PTdivide |
( |
double |
arg1, |
|
|
double |
arg2 |
|
) |
| |
|
static |
Definition at line 353 of file ptfuncs.c.
365 return (arg1 / arg2);
| static double PTexp |
( |
double |
arg | ) |
|
|
static |
Definition at line 437 of file ptfuncs.c.
440 {
return (exp(arg)); }
| static double PTln |
( |
double |
arg | ) |
|
|
static |
| static double PTlog |
( |
double |
arg | ) |
|
|
static |
| static double PTminus |
( |
| ) |
|
|
static |
| static double PTminus |
( |
double |
arg1, |
|
|
double |
arg2 |
|
) |
| |
|
static |
Definition at line 339 of file ptfuncs.c.
342 {
return (arg1 - arg2); }
| static double PTplus |
( |
double |
arg1, |
|
|
double |
arg2 |
|
) |
| |
|
static |
Definition at line 332 of file ptfuncs.c.
335 {
return (arg1 + arg2); }
| static double PTpower |
( |
| ) |
|
|
static |
| static double PTpower |
( |
double |
arg1, |
|
|
double |
arg2 |
|
) |
| |
|
static |
Definition at line 370 of file ptfuncs.c.
373 {
return (pow(arg1, arg2)); }
| static double PTsgn |
( |
double |
arg | ) |
|
|
static |
Definition at line 325 of file ptfuncs.c.
328 {
return arg > 0.0 ? 1.0 : arg < 0.0 ? -1.0 : 0.0; }
| static double PTsin |
( |
double |
arg | ) |
|
|
static |
Definition at line 466 of file ptfuncs.c.
#define MODULUS(NUM, LIMIT)
| static double PTsinh |
( |
double |
arg | ) |
|
|
static |
Definition at line 473 of file ptfuncs.c.
476 {
return (sinh(arg)); }
| static double PTsqrt |
( |
double |
arg | ) |
|
|
static |
| static double PTtan |
( |
double |
arg | ) |
|
|
static |
Definition at line 491 of file ptfuncs.c.
#define MODULUS(NUM, LIMIT)
| static double PTtanh |
( |
double |
arg | ) |
|
|
static |
Definition at line 498 of file ptfuncs.c.
501 {
return (tanh(arg)); }
| static double PTtimes |
( |
| ) |
|
|
static |
| static double PTtimes |
( |
double |
arg1, |
|
|
double |
arg2 |
|
) |
| |
|
static |
Definition at line 346 of file ptfuncs.c.
349 {
return (arg1 * arg2); }
| static double PTtPulse |
( |
| ) |
|
|
static |
Definition at line 171 of file ptfuncs.c.
176 double time, basetime, value;
183 basetime =
PER * (int)(time/
PER);
186 if (time < TR || time >= pw +
TF) {
188 if (time > 0 && time <
TR)
205 basetime =
PER * (int)(time/
PER);
208 if (time < TR || time >= pw +
TF) {
209 if (time > 0 && time <
TR)
| static double PTtSffm |
( |
| ) |
|
|
static |
| static double PTtSpulse |
( |
| ) |
|
|
static |
| static double PTuminus |
( |
| ) |
|
|
static |
| static double PTuminus |
( |
double |
arg | ) |
|
|
static |
Initial value:
Definition at line 97 of file ptfuncs.c.
Initial value:= {
}
static double PTtSpulse()
Definition at line 132 of file ptfuncs.c.