You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
it is possible that at extremely small voltages there may be machine precision error of less than 1 part per million because the single diode model has the term exp(x) - 1 which has an increasing error as x → 0 because exp(x) → 1, so 1 - 1 is a very, very small number close to zero.
* closespvlib#500
* also add a comment that we are creating some temporary values to make
calculations simpler
* also use more descriptive names instead of a, b, c, use v_star, g_sh,
and g_diode
Problem
it is possible that at extremely small voltages there may be machine precision error of less than 1 part per million because the single diode model has the term
exp(x) - 1
which has an increasing error as x → 0 becauseexp(x)
→ 1, so 1 - 1 is a very, very small number close to zero.Solution
Use
np.expm1(x)
instead ofnp.exp(x) - 1
as suggested in this commentAdditional context
#409
The text was updated successfully, but these errors were encountered: