SMath Studio gives wrong result for this integral; BUG in SMath

SMath Studio gives wrong result for this integral; BUG in SMath - Numeric integration, Symbolic calculation - Messages

#1 Posted: 10/14/2024 6:21:07 PM
Cornel

Cornel

2 likes in 78 posts.

Group: User

Hi,

Why SMath studio does not give at least the correct result which is 0.263 for this integral?


Mathcad Prime 10:

int1mathcad10.png

-1.849 result is comming from symbolic result calculation, which is wrong in this case, but numeric result 0.263 is correct here also in mathcad prime 10.

Mathcad Prime 6:

int1mathcad6.png


SMath Studio:

int1smath.png

Wolfram mathematica:

int1wolfram.png
#2 Posted: 10/14/2024 6:24:40 PM
Cornel

Cornel

2 likes in 78 posts.

Group: User

Will be good if somebody can announce the owner of SMath Studio...
#3 Posted: 10/14/2024 6:44:24 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

You must clear previous results (implicit definitions). If you do not, the task statement may change. To be sure, do each check separately in a new document.

maple-int-arcsin.png

maple-int-arcsin.sm (7 KiB) downloaded 72 time(s).
Russia ☭ forever, Viacheslav N. Mezentsev
#4 Posted: 10/14/2024 6:47:14 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

It gives correct results, even with embedded or maple.
You need to change arcsin() function to asin() however.

Regards

2024-10-14_14-44.png
1 users liked this post
Вячеслав Мезенцев 10/14/2024 6:48:00 PM
#5 Posted: 10/14/2024 7:15:59 PM
Cornel

Cornel

2 likes in 78 posts.

Group: User

Wrote

It gives correct results, even with embedded or maple.
You need to change arcsin() function to asin() however.

Regards

2024-10-14_14-44.png




Could you post also the worksheet? As I do not know why my function arcsin(x) definition is not taken into account

not.png
#6 Posted: 10/14/2024 7:22:09 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

There may be different regional settings here. What you see as a plugin error is not always a plugin error. It may be an error in interpreting the results from the plugin or an error in the program itself. A little investigation is needed to clarify the details of the crime.
Russia ☭ forever, Viacheslav N. Mezentsev
#7 Posted: 10/14/2024 8:32:24 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

Could you post also the worksheet? As I do not know why my function arcsin(x) definition is not taken into account


Here it is, regards

int-embedded_maple.sm (6 KiB) downloaded 69 time(s).

2024-10-14_16-31.png
1 users liked this post
churichuro 10/14/2024 9:44:00 PM
#8 Posted: 10/14/2024 11:46:58 PM
Stuart Bruff Y

Stuart Bruff Y

0 likes in 2 posts.

Group: User

I tried to run this worksheet, and was asked to install Maple Tools. I tried to do this twice and both times, SMath crashed during the install - just vanished into the thin electron cloud, without so much as a goodbye or reason for leaving.

This is on a fresh install of SMath on a new Windows 11 PC that has never had SMath installed before.
#9 Posted: 10/15/2024 12:17:05 AM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

I tried to run this worksheet, and was asked to install Maple Tools. I tried to do this twice and both times, SMath crashed during the install - just vanished into the thin electron cloud, without so much as a goodbye or reason for leaving.

This is on a fresh install of SMath on a new Windows 11 PC that has never had SMath installed before.


I believe there is a problem with smath servers.
It gives the error if you try to install plugin.
Please be patient, it will be fixed soon I guess.
#10 Posted: 10/15/2024 12:30:55 AM
Stuart Bruff Y

Stuart Bruff Y

0 likes in 2 posts.

Group: User

Wrote

Wrote

I tried to run this worksheet, and was asked to install Maple Tools. I tried to do this twice and both times, SMath crashed during the install - just vanished into the thin electron cloud, without so much as a goodbye or reason for leaving.

This is on a fresh install of SMath on a new Windows 11 PC that has never had SMath installed before.


I believe there is a problem with smath servers.
It gives the error if you try to install plugin.
Please be patient, it will be fixed soon I guess.



OK, that sounds feasible. I did have some trouble downloading SMath, with multiple requests to retry the download.

It would be nice if SMath handled the installation failure with an error message rather than just disappearing.
#11 Posted: 10/15/2024 1:58:25 PM
Cornel

Cornel

2 likes in 78 posts.

Group: User

Wrote

Wrote

I tried to run this worksheet, and was asked to install Maple Tools. I tried to do this twice and both times, SMath crashed during the install - just vanished into the thin electron cloud, without so much as a goodbye or reason for leaving.

This is on a fresh install of SMath on a new Windows 11 PC that has never had SMath installed before.


I believe there is a problem with smath servers.
It gives the error if you try to install plugin.
Please be patient, it will be fixed soon I guess.



Yes, so it seems to me that SMath has stability problems. By now SMath can give you the answer/correct answer, and after few moments later it can give you incorect answer or SMath to not work properly. Strange things happen with SMath from what I see so far regarding the stability of functionalities or how stable is smath...If today I reach the correct answer, and tomorrow I need to show to other people the results I obtained and then I found that tomorrow SMath did not want to calculate the answer from previos day or to show the answer which I reached a previous day ago, I will be in an embarrassing situation in front of other people
#12 Posted: 10/15/2024 2:05:02 PM
Cornel

Cornel

2 likes in 78 posts.

Group: User

I see also the difference between Maxima engine and maple version 6 engine (in symbolic answer). With maxima engine the result is more a rational approximation of an irrational result. I would expected something similar as maple engine give when evaluating integral symbolically.

int2.png
#13 Posted: 10/15/2024 4:00:37 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Maxima can't handle the integral. It returns a slightly modified symbolic representation. This is hidden by SMath postprocessing of the symbolic results (which doesn't seem to be suppressed for Optimization> None.

There seems to be a problem in preprocessing/translation when using the Int() function.

Worksheet20.png
Worksheet20.sm (7 KiB) downloaded 65 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#14 Posted: 10/15/2024 6:58:07 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

There seems to be a problem in preprocessing/translation when using the Int() function.


There is a load("abs_integrate)$ statement for these kind of situations.
If not used, maxima can't parse absolute integrals as I have understood.
https://maxima.sourceforge.io/docs/manual/de/maxima_181.html
It doesn't work on my linux commandline maxima however.
Possibly missing the module.

Regards
  • New Posts New Posts
  • No New Posts No New Posts