devices/res/resnoise.c, cleanup using pow()
This commit is contained in:
parent
abb07c4306
commit
f73a353d6b
|
|
@ -103,9 +103,9 @@ RESnoise (int mode, int operation, GENmodel *genmodel, CKTcircuit *ckt,
|
|||
printf("DC current in resistor %s: %e\n",inst->RESname, inst->REScurrent);
|
||||
#endif
|
||||
|
||||
noizDens[RESFLNOIZ] *= inst->RESm * model->RESfNcoef * exp(model->RESfNexp *
|
||||
log(MAX(fabs(inst->REScurrent),
|
||||
N_MINLOG))) / (inst->RESeffNoiseArea*pow(data->freq,model->RESef));
|
||||
noizDens[RESFLNOIZ] *= inst->RESm * model->RESfNcoef *
|
||||
pow(fabs(inst->REScurrent), model->RESfNexp)
|
||||
/ (inst->RESeffNoiseArea * pow(data->freq, model->RESef));
|
||||
lnNdens[RESFLNOIZ] = log(MAX(noizDens[RESFLNOIZ],N_MINLOG));
|
||||
|
||||
noizDens[RESTOTNOIZ] = noizDens[RESTHNOIZ] + noizDens[RESFLNOIZ];
|
||||
|
|
|
|||
Loading…
Reference in New Issue