rtoy / maxima

A Clone of Maxima's repo
Other
0 stars 0 forks source link

limit gives incorrect result after question #2088

Open rtoy opened 2 months ago

rtoy commented 2 months ago

Imported from SourceForge on 2024-07-05 18:36:02 Created by macrakis on 2022-11-29 15:34:14 Original: https://sourceforge.net/p/maxima/bugs/4051


limit (((1+1/x)^x)*x-e*x, x, inf);
Is e positive, negative or zero?
pos;
Is e - %e positive, negative or zero?
zero;
0

The correct result with these answers is given when %e is substituted for e:

limit(((1+1/x)^x)*x-%e*x,x,inf) => -%e/2

Maxima 5.46.0 SBCL 2.2.5 Windows

rtoy commented 2 months ago

Imported from SourceForge on 2024-07-05 18:36:03 Created by macrakis on 2022-11-29 15:34:48 Original: https://sourceforge.net/p/maxima/bugs/4051/#5d14


Diff:


--- old
+++ new
@@ -10,3 +10,4 @@

limit(((1+1/x)^x)x-%ex,x,inf) => -%e/2

+Maxima 5.46.0 SBCL 2.2.5 Windows