Maple Tools

Maple Tools - Symbolic engine for SMath Studio. - Messages

#81 Posted: 4/24/2013 4:38:40 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

You can use only one command as a parameter to a function maple(). So you can't use the command with(). I have added to the archive file with.inc, it will connect every time when you run maple().
Archive: MapleWrapper_20130425.zip

P.S. Another way.

[albumimg]73[/albumimg] [albumimg]74[/albumimg] [albumimg]75[/albumimg]
Russia ☭ forever, Viacheslav N. Mezentsev
#82 Posted: 4/24/2013 6:14:55 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

One example.

with.inc:
restart:with(linalg):with(inttrans):

[albumimg]71[/albumimg] [albumimg]72[/albumimg]
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
Radovan Omorjan 4/25/2013 4:57:00 AM, Oscar Campo 4/24/2013 6:43:00 PM
#83 Posted: 4/25/2013 4:59:38 PM
kaka

kaka

1 likes in 25 posts.

Group: User

Hi Uni, Thank you but it doesn't work for me. I can see the correct answer in mvr5.txt but Smath showed this error, s is not defined.

[albumimg]70[/albumimg]

Wrote

One example.

with.inc:

restart:with(linalg):with(inttrans):



#84 Posted: 4/25/2013 5:48:56 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Wrote

Hi Uni, Thank you but it doesn't work for me. I can see the correct answer in mvr5.txt but Smath showed this error, s is not defined.



Have you used the symbolic evaluation? Right-button mouse click and set the optimization option to "Symbolic"


regards,

w3b5urf3r
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#85 Posted: 4/26/2013 2:16:23 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Yes, you must use the symbolic evaluation ( -> ) but not numerical ( = ). In my examples used symbolic evaluation, it is not visible because I changed the view of symbol (from -> to =).

P.S. I can't find now how to change the view of the equal sign. Apparently it was removed in newer versions. For symbolic output you need to press [Ctrl] + [.].
Russia ☭ forever, Viacheslav N. Mezentsev
#86 Posted: 4/26/2013 7:48:53 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Wrote

P.S. I can't find now how to change the view of the equal sign. Apparently it was removed in newer versions. For symbolic output you need to press [Ctrl] + [.].



The arrow was removed in the 0.91 relase; I think that would be useful to visually distinguish between optimiztions, maybe with a little "S" in the top-right corner or over the equal sign....
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#87 Posted: 4/26/2013 2:30:59 PM
kaka

kaka

1 likes in 25 posts.

Group: User

Wrote

Yes, you must use the symbolic evaluation ( -> ) but not numerical ( = ). In my examples used symbolic evaluation, it is not visible because I changed the view of symbol (from -> to =).

P.S. I can't find now how to change the view of the equal sign. Apparently it was removed in newer versions. For symbolic output you need to press [Ctrl] + [.].



Finally it works now
#88 Posted: 5/2/2013 8:54:37 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Wrote

Hello,

the maple plugin seems to be partially incompatible with ; and , settings. For me, with , and . the examples work, with ; and , see attached image (generated with plugin version 2012 10 06). Unfortunately I can't remember if I had that problem earlier. Browsing the forum topic I found that there were times that ; and , was the default setting, that seems to have changed.

Switching to , and . is an option in particular cases, but I am writing a handbook in german that entirely demands and assumes ; and , settings.

Best regards, Martin Kraska



Updated. Try again.
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
Martin Kraska 5/2/2013 5:58:00 PM, Radovan Omorjan 5/2/2013 10:12:00 AM
#89 Posted: 5/2/2013 2:15:41 PM
Janusz

Janusz

7 likes in 48 posts.

Group: User

Hello Uni,

Finally the MapleWrapper_20130502 works for me. Thank you for this new version.

Greetings!
#90 Posted: 5/2/2013 5:57:00 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote


Updated. Try again.



Much better than before. Thank you for the great work.

I tried the examples:
parse.sm generates formatting problems, the error message says that "Index and length have to refer to a position in the string"

in MapleWrapper_Examples, all functions involving strings fail with the same error message, everything else is fine.



maple_examples.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#91 Posted: 5/2/2013 6:10:54 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Wrote

Wrote


Updated. Try again.



Much better than before. Thank you for the great work.

I tried the examples:
parse.sm generates formatting problems, the error message says that "Index and length have to refer to a position in the string"

in MapleWrapper_Examples, all functions involving strings fail with the same error message, everything else is fine.


Yes, this problem is present. I haven't found a good way to make the parsing more flexible. Working on it.
Russia ☭ forever, Viacheslav N. Mezentsev
#92 Posted: 5/3/2013 6:35:30 PM
Janusz

Janusz

7 likes in 48 posts.

Group: User

Hello!

I got an error like in this example below:

Error:

Regards,

Janusz

[Moderator]: Moved.
#93 Posted: 5/3/2013 6:55:36 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello Janusz,

That's strange. I can not reproduce this. It works for me.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#94 Posted: 5/3/2013 7:00:43 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

I confirm that. The error message is "Error, (in smath_diff) wrong number (or type) of parameters in function diff|ans"
This error does not happen with . as dec separator and , as arg separator. Thus we have still localization problems with maplewrapper.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#95 Posted: 5/3/2013 7:09:47 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Wrote

I confirm that. The error message is "Error, (in smath_diff) wrong number (or type) of parameters in function diff|ans"
This error does not happen with . as dec separator and , as arg separator. Thus we have still localization problems with maplewrapper.



It seems you are right Martin. One more confirmation that this problem still persist, in spite of unis' efforts.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#96 Posted: 5/3/2013 7:18:27 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

I specially do output to a log file. It is desirable in all such cases to show the contents of the file \plugins\mvr5\mvr5.txt.
Russia ☭ forever, Viacheslav N. Mezentsev
#97 Posted: 5/3/2013 7:21:37 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

I specially do output to a log file. It is desirable in all such cases to show the contents of the file \plugins\mvr5\mvr5.txt.


Here you are.

maple-prob.png
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#98 Posted: 5/3/2013 7:28:03 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

I think that the latest posts should be moved in the MapleWrapper thread to avoid confusion for Andrey on debugging SMath.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
#99 Posted: 5/3/2013 7:36:16 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Try to use the el() function instead of a point: [MATH]maple(diff(diff(f(x);el(x;1));el(x;2)))[/MATH].
maple(diff(diff(f(x);el(x;1));el(x;2))) - copy and paste to SMath Studio
In log file you will see:
[->] smath_diff(smath_diff(smath_el(x,1)^3+smath_el(x,2)^2,smath_el(x,2)),smath_el(x,1))

P.S. I didn't know that Maple understands this entry. I didn't plan to support this form of the equation.

[albumimg]104[/albumimg]
Russia ☭ forever, Viacheslav N. Mezentsev
#100 Posted: 5/4/2013 5:59:40 AM
Janusz

Janusz

7 likes in 48 posts.

Group: User

Hello!

Quote

I confirm that. The error message is "Error, (in smath_diff) wrong number (or type) of parameters in function diff|ans"
This error does not happen with . as dec separator and , as arg separator. Thus we have still localization problems with maplewrapper.



Martin, thank you for your explanations concerning this error, I made the change in settings SMath Studio - according to your advices, and all is already well.

Regards,

Janusz
  • New Posts New Posts
  • No New Posts No New Posts