Maple Tools

Maple Tools - Symbolic engine for SMath Studio. - Messages

#441 Posted: 4/28/2023 2:22:34 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

You need to show me MapleTools.log file inside MapleTools directory. It appears then you close the SMath and set Debug to True in MapleTools.config file.

maple-system-python-math.png

maple-system-python-math.sm (5 KiB) downloaded 37 time(s).
Russia ☭ forever, Viacheslav N. Mezentsev
#442 Posted: 4/28/2023 3:52:06 PM
overlord

overlord

547 likes in 1330 posts.

Group: Moderator

Here is log file.

Show Spoiler

#443 Posted: 4/28/2023 3:59:15 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Try to add full path to python. I think the problem is in the paths. You need to understand how the python is called and what path to the script file is passed to it.

python.png
Russia ☭ forever, Viacheslav N. Mezentsev
#444 Posted: 4/29/2023 2:38:38 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Click to enlarge

maple-system-tools.sm (17 KiB) downloaded 181 time(s).
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Alvaro Diaz Falconi 4/29/2023 8:10:00 AM
#445 Posted: 4/29/2023 1:41:22 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Click to enlarge

maple-system-tools-with-TextRegion.sm (16 KiB) downloaded 40 time(s).
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Alvaro Diaz Falconi 4/30/2023 1:40:00 AM
#446 Posted: 4/30/2023 1:49:29 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

This requires install numpy and matplotlib under python. Code of the example from here. A lot of examples for matplotlib here. Also, notice that the python window is interactive.

Click to enlarge

matplotlib.sm (5 KiB) downloaded 53 time(s).

Best regards.
Alvaro.
2 users liked this post
Вячеслав Мезенцев 4/30/2023 5:53:00 AM, churichuro 5/4/2023 2:35:00 PM
#447 Posted: 4/30/2023 7:34:33 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Gnuplot.

You can install it using scoop: scoop install gnuplot

Click to enlarge

maple-system-gnuplot.sm (14 KiB) downloaded 53 time(s).
Russia ☭ forever, Viacheslav N. Mezentsev
#448 Posted: 5/4/2023 9:46:38 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

For better use Text Region uncheck this menu item.

Click to enlarge
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
churichuro 5/4/2023 2:49:00 PM
#449 Posted: 5/5/2023 4:31:58 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Theoretically, we can connect ngspice for the calculation of electrical circuits.

Links:

1. ngspice - open source spice simulator
2. Ngspice example using py4spice package
Russia ☭ forever, Viacheslav N. Mezentsev
#450 Posted: 5/5/2023 5:07:27 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Now let's add modes.

Click to enlarge

maple-python-mode.sm (11 KiB) downloaded 36 time(s).
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
churichuro 5/6/2023 3:53:00 PM
#451 Posted: 5/5/2023 2:34:22 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Click to enlarge

MapleToolsVersion.sm (15 KiB) downloaded 44 time(s).
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
churichuro 5/6/2023 3:53:00 PM
#452 Posted: 5/5/2023 5:13:31 PM
charlamb

charlamb

1 likes in 16 posts.

Group: User

Hi, Uni.

This is just a newbie question but how do I insert the code from your last post?

smath.jpg

1 users liked this post
Oscar Campo 5/8/2023 4:45:00 PM
#453 Posted: 5/6/2023 12:27:58 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Wrote

Hi, Uni.

This is just a newbie question but how do I insert the code from your last post?

smath.jpg



Use Text Region and Mathcad Block. Uncheck menu items with auto helpers and past the code from example. Set the operation for Mathcad Block to mat from the context menu. The Mathcad Block should cover the Text Region. In other words, the Text Region should be inside the frame of the Mathcad Block. It is important.

Click to enlarge text-inside-block.png
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
churichuro 5/6/2023 3:53:00 PM, Oscar Campo 5/8/2023 4:45:00 PM
#454 Posted: 5/7/2023 6:25:50 PM
charlamb

charlamb

1 likes in 16 posts.

Group: User

Thanks, Uni.

It worked!
#455 Posted: 5/11/2023 10:03:27 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Simplified (complicated).

Click to enlarge

maple-python-mode.sm (11 KiB) downloaded 47 time(s).
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
churichuro 5/11/2023 7:20:00 PM, NDTM Amarasekera 5/12/2023 2:24:00 AM
#456 Posted: 10/28/2023 2:26:31 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi. Usually, evalf (eval as float number) returns wrong results. Is there some workaround, like getting the string, or is it a bug which needs some solution?

Clipboard01.png

Thanks in advance.
Alvaro.
1 users liked this post
sergio 10/28/2023 3:08:00 PM
#457 Posted: 10/29/2023 4:59:39 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

SMath can't convert a string to a number.

maple-evalf.png

Try this

maple-evalf-convert.png
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
Alvaro Diaz Falconi 10/29/2023 9:30:00 PM, Oscar Campo 10/30/2023 4:06:00 AM
#458 Posted: 10/29/2023 9:30:56 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote

... Try this



Thanks, Viacheslav! convert fractional works fine.

Best regards.
Alvaro.

#459 Posted: 12/26/2024 9:13:52 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi.Perhaps a simple way to handle the different names between SMath and Maple could be to use "alias", and without much effort translate functions like arcsin, argument, Bessel and whatever you consider appropriate. If I'm not mistaken, you would only have to define the aliases before reading the SMath input, and it would not require any post-processing. Or maybe more adequate could be "macro". The list of Maple mathematical functions is this one. Others are under packages, like linalg.

Best regards.
Alvaro.
1 users liked this post
Oscar Campo 12/26/2024 9:25:00 AM
#460 Posted: 12/26/2024 2:33:11 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

In addition to names, parameter types also need to be converted. They need to be supported in both directions. As for trigonometric functions, the SMath tries to automatically work with names, which prevents them from being supported in the plugin in a controlled way.
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Oscar Campo 12/26/2024 8:52:00 PM
  • New Posts New Posts
  • No New Posts No New Posts