-
-
Notifications
You must be signed in to change notification settings - Fork 580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
limit(floor(0.1+0.1*sin(1/x)),x=0)
should return 0 and not ind
#39819
Comments
limit(floor(0.5+0.5*sin(1/x)),x=0)
should return 0 and not ind
The result is Also, |
According to me , So, while the expectation might be 0 , Maxima's result ind accurately reflects the fact that the standard two-sided limit does not exist due to the oscillation. What does this means is behavior is likely not a bug in the Sage limit wrapper code (like the argument parsing code ), but rather the mathematically expected result from the backend (Maxima) for a non-existent limit of this type. Again, this is what i suspect is the case here, the maintainers could confirm, some references that you can refer to: |
the standard 2 sided limit does exist, just plot the function, its 0 everywhere except x=0 so I dont understand why that should be ind |
its just because how MAXIMA handles oscillatory behavior, as mentioned int the initial reply, |
Justification for limit(floor(0.5+0.5*sin(1/x)) , x=0) .here the argument (i.e.; radians) to the sin function is itself indeterminate . as we cannot judge the state of infinity , whether it is even a integer or a rational or irrational . Hence it is indeterminable to understand the value of sin(1/x) , limit x->0 . |
I reported this upstream. It is now maxima bug #4530. I am setting the status to Note: The originally reported limit does not exist, because |
It is not a bug. The answer (indefinite) is correct. sin(1/x) is equal to 1 in any non-empty neighborhood of 0. Also non-equal to 1. So there is no |
Oh, I looked it and I have indeed made an error, as @DaveWitteMorris said I indeed have made an error in my original limit, but as @edoarad pointed out, when we reduce the coefficient of sin(1/x) to something smaller, 0.4 for instant, it is still ind Should I edit my title/description? |
It occurs to me that the original poster (and maybe some of the other commenters) are conflating As for the calculation of the limit of floor(0.5+0.4*sin(1/x)), Maxima's limit function gives ind for this modified expression, when it could do better. |
There is no particular reason to expect Maxima to find limits of
non-analytic functions.
However, one alternative limit program in Maxima, gruntz(...) gets 0. So
maybe it is a Sage
error in not using gruntz as a backup method.
I think it is generally not a great idea to use Sage to access Maxima.
Given the mostly non-useful comments on your post, you might do better just
to delete it all,
if that is possible. Good luck.
…On Sat, Mar 29, 2025 at 12:37 PM Aditya Khambete ***@***.***> wrote:
Oh, I looked it and I have indeed made an error, as @DaveWitteMorris
<https://github.com/DaveWitteMorris> said I indeed have made an error in
my original limit, but as @edoarad <https://github.com/edoarad> pointed
out, when we reduce the coefficient of sin(1/x) to something smaller, 0.4
for instant, it is still ind
Should I edit my title/description?
—
Reply to this email directly, view it on GitHub
<#39819 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPSB7VWRBPD5QTVLN4MKMD2W3Y7TAVCNFSM6AAAAAB2BCMZZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONRUGIYTKOBZGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
[image: AdityaK1729]*AdityaK1729* left a comment (sagemath/sage#39819)
<#39819 (comment)>
Oh, I looked it and I have indeed made an error, as @DaveWitteMorris
<https://github.com/DaveWitteMorris> said I indeed have made an error in
my original limit, but as @edoarad <https://github.com/edoarad> pointed
out, when we reduce the coefficient of sin(1/x) to something smaller, 0.4
for instant, it is still ind
Should I edit my title/description?
—
Reply to this email directly, view it on GitHub
<#39819 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPSB7VWRBPD5QTVLN4MKMD2W3Y7TAVCNFSM6AAAAAB2BCMZZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONRUGIYTKOBZGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@AdityaK1729: Yes, I think it would be good to correct the formula in the title and description. |
limit(floor(0.5+0.5*sin(1/x)),x=0)
should return 0 and not ind limit(floor(0.1+0.1*sin(1/x)),x=0)
should return 0 and not ind
Update: The bug has been fixed in maxima, but is not yet in a stable release. This sagemath issue can be closed when we update maxima to incorporate the fix. |
Steps To Reproduce
or directly,
Expected Behavior
Actual Behavior
Additional Information
No response
Environment
Checklist
The text was updated successfully, but these errors were encountered: