diff options
Diffstat (limited to 'src/lib/netlist/analog/nlid_twoterm.h')
-rw-r--r-- | src/lib/netlist/analog/nlid_twoterm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/netlist/analog/nlid_twoterm.h b/src/lib/netlist/analog/nlid_twoterm.h index d50fda77f39..0687dde55c9 100644 --- a/src/lib/netlist/analog/nlid_twoterm.h +++ b/src/lib/netlist/analog/nlid_twoterm.h @@ -5,7 +5,7 @@ #define NLID_TWOTERM_H_ /// -/// \file nld_twoterm.h +/// \file nlid_twoterm.h /// /// Devices with two terminals ... /// @@ -124,9 +124,9 @@ namespace analog { } - void set_R(const nl_fptype R) + void set_R(nl_fptype R) { - const nl_fptype G = nlconst::one() / R; + const nl_fptype G = plib::reciprocal(R); set_mat( G, -G, nlconst::zero(), -G, G, nlconst::zero()); } |