Maple Tools

Maple Tools - Symbolic engine for SMath Studio. - 消息

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

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

1,558个赞,共1,868个帖子。

组: 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)已下载 1642 次。
Russia ☭ forever, Viacheslav N. Mezentsev
#442 已发布: 2023/4/28 15:52:06
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Here is log file.

显示剧透

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

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

1,558个赞,共1,868个帖子。

组: 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 已发布: 2023/4/29 02:38:38
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

Click to enlarge

maple-system-tools.sm (17.04 KiB)已下载 2289 次。
Russia ☭ forever, Viacheslav N. Mezentsev
1位用户喜欢此帖子
Alvaro 2023/4/29 08:10:00
#445 已发布: 2023/4/29 13:41:22
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

Click to enlarge

maple-system-tools-with-TextRegion.sm (16.09 KiB)已下载 1709 次。
Russia ☭ forever, Viacheslav N. Mezentsev
1位用户喜欢此帖子
Alvaro 2023/4/30 01:40:00
#446 已发布: 2023/4/30 01:49:29
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: 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)已下载 1766 次。

Best regards.
Alvaro.
2位用户喜欢此帖子
churichuro 2023/5/4 14:35:00, Вячеслав Мезенцев 2023/4/30 05:53:00
#447 已发布: 2023/4/30 07:34:33
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

Gnuplot.

You can install it using scoop: scoop install gnuplot

Click to enlarge

maple-system-gnuplot.sm (14.04 KiB)已下载 1678 次。
Russia ☭ forever, Viacheslav N. Mezentsev
#448 已发布: 2023/5/4 09:46:38
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

For better use Text Region uncheck this menu item.

Click to enlarge
Russia ☭ forever, Viacheslav N. Mezentsev
1位用户喜欢此帖子
churichuro 2023/5/4 14:49:00
#449 已发布: 2023/5/5 04:31:58
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: 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 已发布: 2023/5/5 05:07:27
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

Now let's add modes.

Click to enlarge

maple-python-mode.sm (11.58 KiB)已下载 1657 次。
Russia ☭ forever, Viacheslav N. Mezentsev
1位用户喜欢此帖子
churichuro 2023/5/6 15:53:00
#451 已发布: 2023/5/5 14:34:22
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

Click to enlarge

MapleToolsVersion.sm (15.84 KiB)已下载 1787 次。
Russia ☭ forever, Viacheslav N. Mezentsev
1位用户喜欢此帖子
churichuro 2023/5/6 15:53:00
#452 已发布: 2023/5/5 17:13:31
charlamb

charlamb

1个赞,共16个帖子。

组: User

Hi, Uni.

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

smath.jpg

1位用户喜欢此帖子
Oscar Campo 2023/5/8 16:45:00
#453 已发布: 2023/5/6 00:27:58
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: 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位用户喜欢此帖子
Oscar Campo 2023/5/8 16:45:00, churichuro 2023/5/6 15:53:00
#454 已发布: 2023/5/7 18:25:50
charlamb

charlamb

1个赞,共16个帖子。

组: User

Thanks, Uni.

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

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

1,558个赞,共1,868个帖子。

组: Moderator

Simplified (complicated).

Click to enlarge

maple-python-mode.sm (11.89 KiB)已下载 1691 次。
Russia ☭ forever, Viacheslav N. Mezentsev
2位用户喜欢此帖子
churichuro 2023/5/11 19:20:00, NDTM Amarasekera 2023/5/12 02:24:00
#456 已发布: 2023/10/28 14:26:31
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: 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位用户喜欢此帖子
sergio 2023/10/28 15:08:00
#457 已发布: 2023/10/29 16:59:39
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: 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位用户喜欢此帖子
Alvaro 2023/10/29 21:30:00, Oscar Campo 2023/10/30 04:06:00
#458 已发布: 2023/10/29 21:30:56
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Wrote

... Try this



Thanks, Viacheslav! convert fractional works fine.

Best regards.
Alvaro.

#459 已发布: 2024/12/26 09:13:52
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: 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位用户喜欢此帖子
Oscar Campo 2024/12/26 09:25:00
#460 已发布: 2024/12/26 14:33:11
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: 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位用户喜欢此帖子
Oscar Campo 2024/12/26 20:52:00
  • 有新帖
  • 无新帖