1 Pages (5 items)
    
Indefinite Integral - Wrong result when computing indefinite integral with sqrt(x) using Maple in SMath Studio - Messages
                #1 Posted: 10/18/2025 1:05:39 PM
            
        Hello everyone,
I’m trying to calculate an indefinite integral.sm (4.58 KiB) downloaded 77 time(s).in SMath using the Maple plugin, as shown in the attached file.
However, the correct result should be:
6t^2-2*t^(3/2)
and I can’t get this result from Maple inside SMath — it returns a different expression instead.
Could someone please help me understand why this happens or how to make the Maple integration work properly?
Thank you in advance.
Sérgio Marques
            I’m trying to calculate an indefinite integral.sm (4.58 KiB) downloaded 77 time(s).in SMath using the Maple plugin, as shown in the attached file.
However, the correct result should be:
6t^2-2*t^(3/2)
and I can’t get this result from Maple inside SMath — it returns a different expression instead.
Could someone please help me understand why this happens or how to make the Maple integration work properly?
Thank you in advance.
Sérgio Marques
                #2 Posted: 10/18/2025 3:12:20 PM
            
        Hi. The default variable in Maple is complex, hence the difficulties when requesting simplifications. However, this syntax makes it somewhat lacking in rigor, which can lead to incorrect results. Therefore, it should be used with caution.

Another way is to use assume in maple, but I don't know how to do it from SMath.
Best regards.
Alvaro.
            
Another way is to use assume in maple, but I don't know how to do it from SMath.
Best regards.
Alvaro.
1 users liked this post
SERGIO MARQUES DE SOUZA 10/19/2025 10:48:27 AM
                #3 Posted: 10/18/2025 7:12:46 PM
            
        The Maxima kernel asks in such cases for the sign of the limit, the interface catches the question and responds with "yes". In the result, a corresponding message is included. 
You can avoid the message using assume().
In the maple plugin this would require to inject assume and the integration in a single maple call, as the maple session does not persist between the calls, while the Maxima session is persistent in the background. There are pros and cons with that approach.
indefinite integral.sm (7.02 KiB) downloaded 47 time(s).

                    You can avoid the message using assume().
In the maple plugin this would require to inject assume and the integration in a single maple call, as the maple session does not persist between the calls, while the Maxima session is persistent in the background. There are pros and cons with that approach.
indefinite integral.sm (7.02 KiB) downloaded 47 time(s).

Martin KraskaPre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
3 users liked this post
Alvaro Diaz Falconi 10/18/2025 9:04:09 PM, SERGIO MARQUES DE SOUZA 10/19/2025 10:48:38 AM, sergio 10/19/2025 2:36:31 PM
                #4 Posted: 10/18/2025 9:57:15 PM
            
        4 users liked this post
sergio 10/19/2025 2:36:39 PM, SERGIO MARQUES DE SOUZA 10/19/2025 10:48:49 AM, NDTM Amarasekera 10/19/2025 1:08:26 AM, Alvaro Diaz Falconi 10/19/2025 12:39:04 AM
                #5 Posted: 10/19/2025 10:57:13 AM
            
        Hello
It really was enough to change Optimization > None for the result to appear correctly.
Thank you very much, everyone!
            It really was enough to change Optimization > None for the result to appear correctly.
Thank you very much, everyone!
        1 Pages (5 items)
    
- New Posts
- No New Posts
 
                