Maple Tools

Maple Tools - Symbolic engine for SMath Studio. - Сообщения

#101 Опубликовано: 04.05.2013 17:38:36
Вячеслав Мезенцев

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

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

Группа: Moderator

Updated.

Maple doesn't support the expression of a subscript in the form of text. So you can't use such an expression. Dot (comma) between the identifier and other identifier (or number) is ignored. It reminds me a Lisp.

[albumimg]108[/albumimg]

Russia ☭ forever, Viacheslav N. Mezentsev
#102 Опубликовано: 04.05.2013 17:59:57
Martin Kraska

Martin Kraska

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

Группа: Moderator



Perhaps an option to support text indices is to change the dot to underscore and vice versa in the interface. Maple can handle that, it the way it is done in latex and in SMath there is no reason for ugly variable names with underscores (except for compatibility with Mathcad ) If variables with underscores are esential, then replace the dot by two underscores or something else that hardly is expected to be used.

However, I have no idea, how essential that is for the users and if that is easy to do in the current interface concept. In general, I appreciate the plugins supporting the base features of SMath. OK, I am not expecting unit support to come soon...


maple.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#103 Опубликовано: 05.05.2013 07:04:40
Вячеслав Мезенцев

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

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

Группа: Moderator

Wrote

However, I have no idea, how essential that is for the users and if that is easy to do in the current interface concept. In general, I appreciate the plugins supporting the base features of SMath. OK, I am not expecting unit support to come soon...



Updated. I think I found a way. As for the units, I do not understand what you mean.

[albumimg]110[/albumimg]
Russia ☭ forever, Viacheslav N. Mezentsev
1 пользователям понравился этот пост
Martin Kraska 05.05.2013 07:21:00
#104 Опубликовано: 05.05.2013 07:46:20
Martin Kraska

Martin Kraska

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

Группа: Moderator

Again, great work, lots of thanks!

Now аll errors (mainly with parse and map) have gone.

The method for text indices that you found seems to be stable and cannot be tricked by numbers.

[MATH lang=ENG]maple(diff((x.1^3+x.2^3),x.1))=3*x.1^2@#[/MATH]


However, same procedure...
I found another localization issue. When function style is set to european, that makes trouble. I think it would be sensible if internally there was always the same representation, regardless of local settings. Then the plugin providers would not be forced to handle that on their own and could focus on the added features. However, it is as it is.

[MATH lang=ENG]maple(series(sh(x),x))[/MATH] results in "empty stack"

As for the units: for purely symbolical calculations that is not required. This is more of an issue for numeric procedures like definite integration, ode and equations solving. These work in SMath only for unit-free integration variable or unknown variable. An example for better unit handling is the NonLinearSolvers plugin. You can specify initial values or limits with units and get results with units at the price of that you have to think about the dimensions of error tolerances.



Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#105 Опубликовано: 05.05.2013 11:13:07
Вячеслав Мезенцев

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

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

Группа: Moderator

Updated. Added support for trigonometric functions.

It is should be done so:

[albumimg]113[/albumimg]
MapleWrapper_screen9.png
Russia ☭ forever, Viacheslav N. Mezentsev
#106 Опубликовано: 05.05.2013 14:05:28
Martin Kraska

Martin Kraska

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

Группа: Moderator

Thanks again for the update. Your examples work.

I've made a scanner for the series expansion example. It is, however, not entirely equivalent to direct non-optimized maple calls. What it can show, however, is that the function style settings sometimes work with "world" and sometimes with "europe" (the latter with arcsin, arccos). Perhaps maple names are a mix of both. Anyways, the scanner is demo for the power of the maplewrapper plugin combined with animation.
Seriestest.sm (9 КиБ) скачан 115 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#107 Опубликовано: 05.05.2013 14:36:27
Вячеслав Мезенцев

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

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

Группа: Moderator

Maple names. They will always work (in maple()), but the result will depend on the settings of the program. We need to use a Help to both programs to achieve adequate results.

[albumimg]114[/albumimg]
Russia ☭ forever, Viacheslav N. Mezentsev
2 пользователям понравился этот пост
ioan92 05.05.2013 14:59:00, Andrey Ivashov 05.05.2013 16:50:00
#108 Опубликовано: 14.05.2013 19:47:56
kaka

kaka

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

Группа: User

Hi uni,

the expand function doesn't work

expand((x+1)*(x-1));

should be x^2-1 as in maple dos

but in SMath maple it gives me (-1+x)*(1+x)

could you have a look, thank you.
1 пользователям понравился этот пост
#109 Опубликовано: 14.05.2013 20:02:51
Вячеслав Мезенцев

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

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

Группа: Moderator

Wrote

Hi uni,

the expand function doesn't work

expand((x+1)*(x-1));

should be x^2-1 as in maple dos

but in SMath maple it gives me (-1+x)*(1+x)

could you have a look, thank you.


Updated. Fixed. It seems that there is an internal function expand().
Russia ☭ forever, Viacheslav N. Mezentsev
#110 Опубликовано: 24.05.2013 01:34:13
Вячеслав Мезенцев

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

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

Группа: Moderator

Updated. Added experimental option to display 3D graphs (Maple Plot in the Insert list items).

[albumimg]155[/albumimg]
Russia ☭ forever, Viacheslav N. Mezentsev
#111 Опубликовано: 24.05.2013 03:23:43
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

I could not read your MaplePlot.Example-1.sm. Nothing appeared

I could get the plots by myself . The slight inconvenience is that as soon as I choose the Insert|Maple Plot I must insert something into the plot placeholder. If I just click outside the empty plot, SMath crashes (Win7(64))

Regards,
Radovan



MaplePlot.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#112 Опубликовано: 24.05.2013 10:43:41
Janusz

Janusz

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

Группа: User

Hi Uni!

Thank you for the splendid MapleWrapper plugin. It is particularly useful because SMath Studio does not have yet it's own engine to symbolic calculations. Thank you once again.

However I have a small problem which I cannot dissolve. Below there are two images. First pictures is the situation before the record of the file - calculations were performed, and second one after the disk recording and the renewed opening of the file in SMath Studio. As it is visible after the renewed opening of the file calculation were not executed. Unfortunately I do not know why? I tried to reproduce this situation on many files and different calculations. Unfortunately always with the same result. Probably there is something wrong with the command "desolve"?

Heartily please all for the help in solution of this problem. From above thank you and I greet you very much.

P.S.

Maybe somebody would be able to place on the forum the example-file *.sm on how the use of commands "plot" and "plot3d" in MapleWrapper? Thank you.

No error before recording

Error after recording and the renewed opening .sm file
#113 Опубликовано: 24.05.2013 13:19:06
Martin Kraska

Martin Kraska

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

Группа: Moderator

maple() seems to have problems with matrix expressions. Direct usage of SMath expressions can give wrong results. Translation using maple's matrix operations fails as well (perhaps just a problem with multiply() ).
Matrix.sm (9 КиБ) скачан 100 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
2 пользователям понравился этот пост
Вячеслав Мезенцев 24.05.2013 14:47:00, Radovan Omorjan 24.05.2013 13:57:00
#114 Опубликовано: 24.05.2013 13:54:33
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Hello,
Wrote

Hi Uni!...Probably there is something wrong with the command "desolve"?


I could reproduce this.

By the way, it seems you do not have to use maple() for the assignments - uni told me that . See the first picture please.

I think the problem here is the two equal signs. If you recalculate page, or save the file and reopen, this will get lost. In the case of recalculation, the region will be messed up (see the second picture). If you try to select it and move it a bit - it will reappear but without the symbolical result. Just do the calculation manually again (CTRL+.).
It seems that the problem is in this particular recalculation of maple() SMath region with two equal signs.

Regards,
Radovan
maple-proba2.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 пользователям понравился этот пост
#115 Опубликовано: 24.05.2013 14:30:54
Janusz

Janusz

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

Группа: User

Hi Radovan!

Heartily thank you for your detailed explanation. I greet heartily.

Regards,
Janusz
#116 Опубликовано: 24.05.2013 14:46:42
Вячеслав Мезенцев

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

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

Группа: Moderator

Updated. Yes, Radovan rights. You must manually retrieve the desired result.

[albumimg]158[/albumimg]

Maple. Example 1.sm (4 КиБ) скачан 104 раз(а).
Russia ☭ forever, Viacheslav N. Mezentsev
#117 Опубликовано: 24.05.2013 14:51:57
Janusz

Janusz

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

Группа: User

Hello,

I do another example:

No error in this example

In this case after the renewed opening of the file calculation were executed. Why?

Regards,
Janusz
#118 Опубликовано: 24.05.2013 14:59:26
Janusz

Janusz

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

Группа: User

Hello Uni,

Thank you for new update.

Regards,
Janusz
#119 Опубликовано: 24.05.2013 15:00:29
Вячеслав Мезенцев

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

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

Группа: Moderator

Wrote

Hello,

I do another example:

No error in this example

In this case after the renewed opening of the file calculation were executed. Why?

Regards,
Janusz


Try this with newer version.

[albumimg]160[/albumimg]
Russia ☭ forever, Viacheslav N. Mezentsev
#120 Опубликовано: 24.05.2013 15:04:40
Janusz

Janusz

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

Группа: User

Uni,

Thank you for your answer. OK I will do.

Regards,
Janusz
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений