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 - 消息

#1 已发布: 2024/10/14 18:21:07
Cornel

Cornel

2个赞,共78个帖子。

组: 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 已发布: 2024/10/14 18:24:40
Cornel

Cornel

2个赞,共78个帖子。

组: User

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

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

1,558个赞,共1,868个帖子。

组: 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.66 KiB)已下载 1766 次。
Russia ☭ forever, Viacheslav N. Mezentsev
#4 已发布: 2024/10/14 18:47:14
overlord

overlord

600个赞,共1,381个帖子。

组: 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位用户喜欢此帖子
#5 已发布: 2024/10/14 19:15:59
Cornel

Cornel

2个赞,共78个帖子。

组: 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 已发布: 2024/10/14 19:22:09
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: 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 已发布: 2024/10/14 20:32:24
overlord

overlord

600个赞,共1,381个帖子。

组: 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.97 KiB)已下载 1746 次。

2024-10-14_16-31.png
1位用户喜欢此帖子
churichuro 2024/10/14 21:44:00
#8 已发布: 2024/10/14 23:46:58
Stuart Bruff Y

Stuart Bruff Y

0个赞,共4个帖子。

组: 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 已发布: 2024/10/15 00:17:05
overlord

overlord

600个赞,共1,381个帖子。

组: 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 已发布: 2024/10/15 00:30:55
Stuart Bruff Y

Stuart Bruff Y

0个赞,共4个帖子。

组: 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 已发布: 2024/10/15 13:58:25
Cornel

Cornel

2个赞,共78个帖子。

组: 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 已发布: 2024/10/15 14:05:02
Cornel

Cornel

2个赞,共78个帖子。

组: 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 已发布: 2024/10/15 16:00:37
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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.27 KiB)已下载 1700 次。
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#14 已发布: 2024/10/15 18:58:07
overlord

overlord

600个赞,共1,381个帖子。

组: 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
  • 有新帖
  • 无新帖