# Octave: sympy error?

4 messages
Open this post in threaded view
|

## Octave: sympy error?

 There seems to be an error in the sympy 1.0 limit() function. The lim(1/x) as x->0 does not exist while the limit() function indicates this as +infinity. It seems that a custom octave function could compute the left and right limits in order to get a better understanding. Regards, Constantine. octave:20> limit(1/x,x,0) ans = (sym) oo octave:21> octave:21> limit(1/x,x,0,'right') ans = (sym) oo octave:22> limit(1/x,x,0,'left') ans = (sym) -oo _______________________________________________ Help-octave mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-octave
Open this post in threaded view
|

## Re: Octave: sympy error?

 On Fri, Nov 18, 2016 at 6:28 AM, Constantine Frangos wrote: There seems to be an error in the sympy 1.0 limit() function. The lim(1/x) as x->0 does not exist while the limit() function indicates this as +infinity. It seems that a custom octave function could compute the left and right limits in order to get a better understanding. Regards, Constantine. octave:20> limit(1/x,x,0) ans = (sym) oo octave:21> octave:21> limit(1/x,x,0,'right') ans = (sym) oo octave:22> limit(1/x,x,0,'left') ans = (sym) -oo Yes, and this does appear to be a matlab incompatibility:Matlab 2016b:>> limit (1/x,x,0)ans =NaN>> limit (1/x,x,0,'right')ans =Inf>> limit (1/x,x,0,'left')ans =-Inf _______________________________________________ Help-octave mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-octave