Maple Tools

Maple Tools - Symbolic engine for SMath Studio. - Mensajes

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

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

1.558 me gusta en 1.868 mensajes.

Grupo: 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) descargado 1616 vez(es).
Russia ☭ forever, Viacheslav N. Mezentsev
#442 Publicado: 28/4/2023 15:52:06
overlord

overlord

600 me gusta en 1.381 mensajes.

Grupo: Moderator

Here is log file.

Mostrar spoiler

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

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

1.558 me gusta en 1.868 mensajes.

Grupo: 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 Publicado: 29/4/2023 2:38:38
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

Click to enlarge

maple-system-tools.sm (17,04 KiB) descargado 2265 vez(es).
Russia ☭ forever, Viacheslav N. Mezentsev
A 1 usuarios les gustó este mensaje
Alvaro 29/4/2023 8:10:00
#445 Publicado: 29/4/2023 13:41:22
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

Click to enlarge

maple-system-tools-with-TextRegion.sm (16,09 KiB) descargado 1693 vez(es).
Russia ☭ forever, Viacheslav N. Mezentsev
A 1 usuarios les gustó este mensaje
Alvaro 30/4/2023 1:40:00
#446 Publicado: 30/4/2023 1:49:29
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: 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) descargado 1745 vez(es).

Best regards.
Alvaro.
A 2 usuarios les gustó este mensaje
churichuro 4/5/2023 14:35:00, Вячеслав Мезенцев 30/4/2023 5:53:00
#447 Publicado: 30/4/2023 7:34:33
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

Gnuplot.

You can install it using scoop: scoop install gnuplot

Click to enlarge

maple-system-gnuplot.sm (14,04 KiB) descargado 1659 vez(es).
Russia ☭ forever, Viacheslav N. Mezentsev
#448 Publicado: 4/5/2023 9:46:38
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

For better use Text Region uncheck this menu item.

Click to enlarge
Russia ☭ forever, Viacheslav N. Mezentsev
A 1 usuarios les gustó este mensaje
churichuro 4/5/2023 14:49:00
#449 Publicado: 5/5/2023 4:31:58
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

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

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

Now let's add modes.

Click to enlarge

maple-python-mode.sm (11,58 KiB) descargado 1641 vez(es).
Russia ☭ forever, Viacheslav N. Mezentsev
A 1 usuarios les gustó este mensaje
churichuro 6/5/2023 15:53:00
#451 Publicado: 5/5/2023 14:34:22
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

Click to enlarge

MapleToolsVersion.sm (15,84 KiB) descargado 1768 vez(es).
Russia ☭ forever, Viacheslav N. Mezentsev
A 1 usuarios les gustó este mensaje
churichuro 6/5/2023 15:53:00
#452 Publicado: 5/5/2023 17:13:31
charlamb

charlamb

1 me gusta en 16 mensajes.

Grupo: User

Hi, Uni.

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

smath.jpg

A 1 usuarios les gustó este mensaje
Oscar Campo 8/5/2023 16:45:00
#453 Publicado: 6/5/2023 0:27:58
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: 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
A 2 usuarios les gustó este mensaje
Oscar Campo 8/5/2023 16:45:00, churichuro 6/5/2023 15:53:00
#454 Publicado: 7/5/2023 18:25:50
charlamb

charlamb

1 me gusta en 16 mensajes.

Grupo: User

Thanks, Uni.

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

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

Simplified (complicated).

Click to enlarge

maple-python-mode.sm (11,89 KiB) descargado 1674 vez(es).
Russia ☭ forever, Viacheslav N. Mezentsev
A 2 usuarios les gustó este mensaje
churichuro 11/5/2023 19:20:00, NDTM Amarasekera 12/5/2023 2:24:00
#456 Publicado: 28/10/2023 14:26:31
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: 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.
A 1 usuarios les gustó este mensaje
sergio 28/10/2023 15:08:00
#457 Publicado: 29/10/2023 16:59:39
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

SMath can't convert a string to a number.

maple-evalf.png

Try this

maple-evalf-convert.png
Russia ☭ forever, Viacheslav N. Mezentsev
A 2 usuarios les gustó este mensaje
Alvaro 29/10/2023 21:30:00, Oscar Campo 30/10/2023 4:06:00
#458 Publicado: 29/10/2023 21:30:56
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: User

Wrote

... Try this



Thanks, Viacheslav! convert fractional works fine.

Best regards.
Alvaro.

#459 Publicado: 26/12/2024 9:13:52
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: 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.
A 1 usuarios les gustó este mensaje
Oscar Campo 26/12/2024 9:25:00
#460 Publicado: 26/12/2024 14:33:11
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: 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
A 1 usuarios les gustó este mensaje
Oscar Campo 26/12/2024 20:52:00
  • Nuevos mensajes
  • Sin mensajes nuevos