User Activity

  • Created ticket #846 on ngspice

    math edge errors in manual

  • Posted a comment on ticket #828 on ngspice

    As stated above, sqrt of a negative argument isn't handled faithfully by the compatibility modes. Here's a potential fix and a repro deck. --- a/src/spicelib/parser/ptfuncs.c +++ b/src/spicelib/parser/ptfuncs.c @@ -320,8 +320,16 @@ double PTsqrt(double arg) { - if (arg < 0.0) + if (arg < 0.0) { + /* sqrt of a negative argument. LTspice 26.0.2 returns 0. PSpice + 23.1.0 returns sqrt(-4)=2, sqrt(-1)=1. Native mode keeps the + domain error. */ + if (newcompat.lt) + return (0.0); + if (newcompat.ps)...

  • Posted a comment on ticket #845 on ngspice

    Thanks for applying the patch!

  • Created ticket #845 on ngspice

    byte order mark in lib causes fatal error

View All

Personal Data

Username:
snzho
Joined:
2026-07-07 00:45:42.277000

Projects

  • No projects to display.

Personal Tools

Auth0 Logo