Maple Tools

Maple Tools - Symbolic engine for SMath Studio. - Messaggi

#441 Pubblicato: 28/04/2023 14:22:34
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: 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,9 KiB) scaricato 1622 volta(e).
Russia ☭ forever, Viacheslav N. Mezentsev
#442 Pubblicato: 28/04/2023 15:52:06
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Here is log file.

Mostra spoiler

#443 Pubblicato: 28/04/2023 15:59:15
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: 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 Pubblicato: 29/04/2023 02:38:38
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Click to enlarge

maple-system-tools.sm (17,04 KiB) scaricato 2270 volta(e).
Russia ☭ forever, Viacheslav N. Mezentsev
1 utenti hanno apprezzato questo post
Alvaro 29/04/2023 08:10:00
#445 Pubblicato: 29/04/2023 13:41:22
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Click to enlarge

maple-system-tools-with-TextRegion.sm (16,09 KiB) scaricato 1699 volta(e).
Russia ☭ forever, Viacheslav N. Mezentsev
1 utenti hanno apprezzato questo post
Alvaro 30/04/2023 01:40:00
#446 Pubblicato: 30/04/2023 01:49:29
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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,25 KiB) scaricato 1752 volta(e).

Best regards.
Alvaro.
2 utenti hanno apprezzato questo post
churichuro 04/05/2023 14:35:00, Вячеслав Мезенцев 30/04/2023 05:53:00
#447 Pubblicato: 30/04/2023 07:34:33
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Gnuplot.

You can install it using scoop: scoop install gnuplot

Click to enlarge

maple-system-gnuplot.sm (14,04 KiB) scaricato 1665 volta(e).
Russia ☭ forever, Viacheslav N. Mezentsev
#448 Pubblicato: 04/05/2023 09:46:38
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

For better use Text Region uncheck this menu item.

Click to enlarge
Russia ☭ forever, Viacheslav N. Mezentsev
1 utenti hanno apprezzato questo post
churichuro 04/05/2023 14:49:00
#449 Pubblicato: 05/05/2023 04:31:58
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: 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 Pubblicato: 05/05/2023 05:07:27
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Now let's add modes.

Click to enlarge

maple-python-mode.sm (11,58 KiB) scaricato 1646 volta(e).
Russia ☭ forever, Viacheslav N. Mezentsev
1 utenti hanno apprezzato questo post
churichuro 06/05/2023 15:53:00
#451 Pubblicato: 05/05/2023 14:34:22
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Click to enlarge

MapleToolsVersion.sm (15,84 KiB) scaricato 1777 volta(e).
Russia ☭ forever, Viacheslav N. Mezentsev
1 utenti hanno apprezzato questo post
churichuro 06/05/2023 15:53:00
#452 Pubblicato: 05/05/2023 17:13:31
charlamb

charlamb

1 apprezzamenti in 16 post.

Gruppo: User

Hi, Uni.

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

smath.jpg

1 utenti hanno apprezzato questo post
Oscar Campo 08/05/2023 16:45:00
#453 Pubblicato: 06/05/2023 00:27:58
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: 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 utenti hanno apprezzato questo post
Oscar Campo 08/05/2023 16:45:00, churichuro 06/05/2023 15:53:00
#454 Pubblicato: 07/05/2023 18:25:50
charlamb

charlamb

1 apprezzamenti in 16 post.

Gruppo: User

Thanks, Uni.

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

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Simplified (complicated).

Click to enlarge

maple-python-mode.sm (11,89 KiB) scaricato 1680 volta(e).
Russia ☭ forever, Viacheslav N. Mezentsev
2 utenti hanno apprezzato questo post
churichuro 11/05/2023 19:20:00, NDTM Amarasekera 12/05/2023 02:24:00
#456 Pubblicato: 28/10/2023 14:26:31
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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 utenti hanno apprezzato questo post
sergio 28/10/2023 15:08:00
#457 Pubblicato: 29/10/2023 16:59:39
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: 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 utenti hanno apprezzato questo post
Alvaro 29/10/2023 21:30:00, Oscar Campo 30/10/2023 04:06:00
#458 Pubblicato: 29/10/2023 21:30:56
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Wrote

... Try this



Thanks, Viacheslav! convert fractional works fine.

Best regards.
Alvaro.

#459 Pubblicato: 26/12/2024 09:13:52
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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 utenti hanno apprezzato questo post
Oscar Campo 26/12/2024 09:25:00
#460 Pubblicato: 26/12/2024 14:33:11
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: 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 utenti hanno apprezzato questo post
Oscar Campo 26/12/2024 20:52:00
  • Nuovi post
  • Nessun nuovo post