Browse Source

In B source the argument to 'log' may be 0 upon start of simulation, allow recovery like in function 'ln'

h_vogt 14 years ago
parent
commit
ff11ccda20
  1. 2
      src/spicelib/parser/ptfuncs.c

2
src/spicelib/parser/ptfuncs.c

@ -248,7 +248,7 @@ PTln(double arg)
double
PTlog(double arg)
{
if (arg <= 0.0)
if (arg < 0.0)
return (HUGE);
return (log10(arg));
}

Loading…
Cancel
Save