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 Опубликовано: 14.10.2024 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 Опубликовано: 14.10.2024 18:24:40
Cornel

Cornel

2 сообщений из 78 понравились пользователям.

Группа: User

Will be good if somebody can announce the owner of SMath Studio...
#3 Опубликовано: 14.10.2024 18:44:24
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: 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 КиБ) скачан 29 раз(а).
Russia ☭ forever, Viacheslav N. Mezentsev
#4 Опубликовано: 14.10.2024 18:47:14
overlord

overlord

547 сообщений из 1330 понравились пользователям.

Группа: 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 Опубликовано: 14.10.2024 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 Опубликовано: 14.10.2024 19:22:09
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: 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 Опубликовано: 14.10.2024 20:32:24
overlord

overlord

547 сообщений из 1330 понравились пользователям.

Группа: 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 КиБ) скачан 28 раз(а).

2024-10-14_16-31.png
1 пользователям понравился этот пост
churichuro 14.10.2024 21:44:00
#8 Опубликовано: 14.10.2024 23:46:58
Stuart Bruff Y

Stuart Bruff Y

0 сообщений из 2 понравились пользователям.

Группа: 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 Опубликовано: 15.10.2024 00:17:05
overlord

overlord

547 сообщений из 1330 понравились пользователям.

Группа: 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 Опубликовано: 15.10.2024 00:30:55
Stuart Bruff Y

Stuart Bruff Y

0 сообщений из 2 понравились пользователям.

Группа: 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 Опубликовано: 15.10.2024 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 Опубликовано: 15.10.2024 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 Опубликовано: 15.10.2024 16:00:37
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 КиБ) скачан 26 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#14 Опубликовано: 15.10.2024 18:58:07
overlord

overlord

547 сообщений из 1330 понравились пользователям.

Группа: 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
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений