diff --git a/src/spicelib/devices/adms/admst/ngspiceMODULEanalogfunction.c.xml b/src/spicelib/devices/adms/admst/ngspiceMODULEanalogfunction.c.xml index 2e9394bcd..2afb12732 100644 --- a/src/spicelib/devices/adms/admst/ngspiceMODULEanalogfunction.c.xml +++ b/src/spicelib/devices/adms/admst/ngspiceMODULEanalogfunction.c.xml @@ -1,860 +1,859 @@ + + +static inline double _cos(double arg) { return cos(arg); } +static inline double _d0_cos(double arg) { return (-sin(arg)); } +static inline double _sin(double arg) { return sin(arg); } +static inline double _d0_sin(double arg) { return (cos(arg)); } +static inline double _tan(double arg) { return tan(arg); } +static inline double _d0_tan(double arg) { return (1.0/cos(arg)/cos(arg)); } +static inline double _cosh(double arg) { return cosh(arg); } +static inline double _d0_cosh(double arg) { return (sinh(arg)); } +static inline double _sinh(double arg) { return sinh(arg); } +static inline double _d0_sinh(double arg) { return (cosh(arg)); } +static inline double _tanh(double arg) { return tanh(arg); } +static inline double _d0_tanh(double arg) { return (1.0/cosh(arg)/cosh(arg)); } +static inline double _acos(double arg) { return acos(arg); } +static inline double _d0_acos(double arg) { return (-1.0/sqrt(1-arg*arg)); } +static inline double _asin(double arg) { return asin(arg); } +static inline double _d0_asin(double arg) { return (+1.0/sqrt(1-arg*arg)); } +static inline double _atan(double arg) { return atan(arg); } +static inline double _d0_atan(double arg) { return (+1.0/(1+arg*arg)); } +static inline double _logE(double arg) { return log(arg); } +static inline double _d0_logE(double arg) { return (1.0/arg); } +static inline double _log10(double arg) { return log10(arg); } +static inline double _d0_log10(double arg) { return (1.0/arg/log(10)); } +static inline double _exp(double arg) { return exp(arg); } +static inline double _d0_exp(double arg) { return exp(arg); } +static inline double _sqrt(double arg) { return sqrt(arg); } +static inline double _d0_sqrt(double arg) { return (1.0/sqrt(arg)/2.0); } +static inline double _abs(double arg) { return fabs(arg); } +static inline double _d0_abs(double arg) { return (((arg)>=0)?(+1.0):(-1.0)); } - -static inline double _cos(double arg) { return cos(arg); } -static inline double _d0_cos(double arg) { return (-sin(arg)); } -static inline double _sin(double arg) { return sin(arg); } -static inline double _d0_sin(double arg) { return (cos(arg)); } -static inline double _tan(double arg) { return tan(arg); } -static inline double _d0_tan(double arg) { return (1.0/cos(arg)/cos(arg)); } -static inline double _cosh(double arg) { return cosh(arg); } -static inline double _d0_cosh(double arg) { return (sinh(arg)); } -static inline double _sinh(double arg) { return sinh(arg); } -static inline double _d0_sinh(double arg) { return (cosh(arg)); } -static inline double _tanh(double arg) { return tanh(arg); } -static inline double _d0_tanh(double arg) { return (1.0/cosh(arg)/cosh(arg)); } -static inline double _acos(double arg) { return acos(arg); } -static inline double _d0_acos(double arg) { return (-1.0/sqrt(1-arg*arg)); } -static inline double _asin(double arg) { return asin(arg); } -static inline double _d0_asin(double arg) { return (+1.0/sqrt(1-arg*arg)); } -static inline double _atan(double arg) { return atan(arg); } -static inline double _d0_atan(double arg) { return (+1.0/(1+arg*arg)); } -static inline double _logE(double arg) { return log(arg); } -static inline double _d0_logE(double arg) { return (1.0/arg); } -static inline double _log10(double arg) { return log10(arg); } -static inline double _d0_log10(double arg) { return (1.0/arg/log(10)); } -static inline double _exp(double arg) { return exp(arg); } -static inline double _d0_exp(double arg) { return exp(arg); } -static inline double _sqrt(double arg) { return sqrt(arg); } -static inline double _d0_sqrt(double arg) { return (1.0/sqrt(arg)/2.0); } -static inline double _abs(double arg) { return fabs(arg); } -static inline double _d0_abs(double arg) { return (((arg)>=0)?(+1.0):(-1.0)); } - -static inline double _hypot(double x,double y) { return sqrt((x)*(x)+(y)*(y)); } +static inline double _hypot(double x,double y) { return sqrt((x)*(x)+(y)*(y)); } static inline double _d0_hypot(double x,double y) { return (x)/sqrt((x)*(x)+(y)*(y)); } static inline double _d1_hypot(double x,double y) { return (y)/sqrt((x)*(x)+(y)*(y)); } -static inline double _max(double x,double y) { return ((x)>(y))?(x):(y); } -static inline double _d0_max(double x,double y) { return ((x)>(y))?1.0:0.0; } -static inline double _d1_max(double x,double y) { return ((x)>(y))?0.0:1.0; } +static inline double _max(double x,double y) { return ((x)>(y))?(x):(y); } +static inline double _d0_max(double x,double y) { return ((x)>(y))?1.0:0.0; } +static inline double _d1_max(double x,double y) { return ((x)>(y))?0.0:1.0; } -static inline double _min(double x,double y) { return ((x)<(y))?(x):(y); } -static inline double _d0_min(double x,double y) { return ((x)<(y))?1.0:0.0; } -static inline double _d1_min(double x,double y) { return ((x)<(y))?0.0:1.0; } +static inline double _min(double x,double y) { return ((x)<(y))?(x):(y); } +static inline double _d0_min(double x,double y) { return ((x)<(y))?1.0:0.0; } +static inline double _d1_min(double x,double y) { return ((x)<(y))?0.0:1.0; } -static inline double _pow(double x,double y) { return pow(x,y); } -static inline double _d0_pow(double x,double y) { return (x==0.0)?0.0:((y/x)*pow(x,y)); } -static inline double _d1_pow(double x,double y) { return (x==0.0)?0.0:((log(x)/exp(0.0))*pow(x,y)); } +static inline double _pow(double x,double y) { return pow(x,y); } +static inline double _d0_pow(double x,double y) { return (x==0.0)?0.0:((y/x)*pow(x,y)); } +static inline double _d1_pow(double x,double y) { return (x==0.0)?0.0:((log(x)/exp(0.0))*pow(x,y)); } #define _limexp(arg) _exp(val,arg) #define _d_limexp(arg) _d_exp(val,dval,arg) - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - + + + + - - + + + + + + + + + + + + + + + + + + - + + + + + + + - - - - - - - - - - - - - - - - - - - - + - + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +