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
Firstly thank you for the work you have done here, very useful.
I ran into one issue here which was on various lines where math.pow is used. I'm not a python pro, but it seemed to me that using this method to get the power of a number using a decimal throws the above error and swapping this for the ** method resolves this.
Hello,
Firstly thank you for the work you have done here, very useful.
I ran into one issue here which was on various lines where
math.pow
is used. I'm not a python pro, but it seemed to me that using this method to get the power of a number using a decimal throws the above error and swapping this for the**
method resolves this.e.g. line 69 is currently:
return self.PARA * math.pow((self.get_resistance()/ self.RZERO), -self.PARB)
And I changed this to:
return self.PARA * (self.get_resistance()/ self.RZERO)**-self.PARB
I believe this returns the intended value, but of course if this is not correct welcome your comments!
The text was updated successfully, but these errors were encountered: