Maple Tools

Maple Tools - Symbolic engine for SMath Studio. - Poruke

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

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

1.558 svidjanja u 1.868 postova.

Grupa: 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) preuzeto 1673 put(ova).
Russia ☭ forever, Viacheslav N. Mezentsev
#442 Objavljeno: 28. 4. 2023. 15:52:06
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Here is log file.

Prikaži spoiler

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

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

1.558 svidjanja u 1.868 postova.

Grupa: 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 Objavljeno: 29. 4. 2023. 02:38:38
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Click to enlarge

maple-system-tools.sm (17,04 KiB) preuzeto 2332 put(ova).
Russia ☭ forever, Viacheslav N. Mezentsev
1 korisnika je svidelo ovu objavu
Alvaro 29. 4. 2023. 08:10:00
#445 Objavljeno: 29. 4. 2023. 13:41:22
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Click to enlarge

maple-system-tools-with-TextRegion.sm (16,09 KiB) preuzeto 1736 put(ova).
Russia ☭ forever, Viacheslav N. Mezentsev
1 korisnika je svidelo ovu objavu
Alvaro 30. 4. 2023. 01:40:00
#446 Objavljeno: 30. 4. 2023. 01:49:29
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: 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) preuzeto 1794 put(ova).

Best regards.
Alvaro.
2 korisnika je svidelo ovu objavu
churichuro 4. 5. 2023. 14:35:00, Вячеслав Мезенцев 30. 4. 2023. 05:53:00
#447 Objavljeno: 30. 4. 2023. 07:34:33
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Gnuplot.

You can install it using scoop: scoop install gnuplot

Click to enlarge

maple-system-gnuplot.sm (14,04 KiB) preuzeto 1712 put(ova).
Russia ☭ forever, Viacheslav N. Mezentsev
#448 Objavljeno: 4. 5. 2023. 09:46:38
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

For better use Text Region uncheck this menu item.

Click to enlarge
Russia ☭ forever, Viacheslav N. Mezentsev
1 korisnika je svidelo ovu objavu
churichuro 4. 5. 2023. 14:49:00
#449 Objavljeno: 5. 5. 2023. 04:31:58
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: 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 Objavljeno: 5. 5. 2023. 05:07:27
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Now let's add modes.

Click to enlarge

maple-python-mode.sm (11,58 KiB) preuzeto 1693 put(ova).
Russia ☭ forever, Viacheslav N. Mezentsev
1 korisnika je svidelo ovu objavu
churichuro 6. 5. 2023. 15:53:00
#451 Objavljeno: 5. 5. 2023. 14:34:22
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Click to enlarge

MapleToolsVersion.sm (15,84 KiB) preuzeto 1818 put(ova).
Russia ☭ forever, Viacheslav N. Mezentsev
1 korisnika je svidelo ovu objavu
churichuro 6. 5. 2023. 15:53:00
#452 Objavljeno: 5. 5. 2023. 17:13:31
charlamb

charlamb

1 svidjanja u 16 postova.

Grupa: User

Hi, Uni.

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

smath.jpg

1 korisnika je svidelo ovu objavu
Oscar Campo 8. 5. 2023. 16:45:00
#453 Objavljeno: 6. 5. 2023. 00:27:58
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: 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 korisnika je svidelo ovu objavu
Oscar Campo 8. 5. 2023. 16:45:00, churichuro 6. 5. 2023. 15:53:00
#454 Objavljeno: 7. 5. 2023. 18:25:50
charlamb

charlamb

1 svidjanja u 16 postova.

Grupa: User

Thanks, Uni.

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

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Simplified (complicated).

Click to enlarge

maple-python-mode.sm (11,89 KiB) preuzeto 1733 put(ova).
Russia ☭ forever, Viacheslav N. Mezentsev
2 korisnika je svidelo ovu objavu
churichuro 11. 5. 2023. 19:20:00, NDTM Amarasekera 12. 5. 2023. 02:24:00
#456 Objavljeno: 28. 10. 2023. 14:26:31
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: 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 korisnika je svidelo ovu objavu
sergio 28. 10. 2023. 15:08:00
#457 Objavljeno: 29. 10. 2023. 16:59:39
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: 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 korisnika je svidelo ovu objavu
Alvaro 29. 10. 2023. 21:30:00, Oscar Campo 30. 10. 2023. 04:06:00
#458 Objavljeno: 29. 10. 2023. 21:30:56
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

Wrote

... Try this



Thanks, Viacheslav! convert fractional works fine.

Best regards.
Alvaro.

#459 Objavljeno: 26. 12. 2024. 09:13:52
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: 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 korisnika je svidelo ovu objavu
Oscar Campo 26. 12. 2024. 09:25:00
#460 Objavljeno: 26. 12. 2024. 14:33:11
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: 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 korisnika je svidelo ovu objavu
Oscar Campo 26. 12. 2024. 20:52:00
  • Novi postovi
  • Nema novih postova