Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

23 Pages«<212223
Options
Go to last post Go to first unread
Offline uni  
#441 Posted : 28 April 2023 20:22:34(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,619
Man
Russian Federation

Was thanked: 1381 time(s) in 806 post(s)
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 (6kb) downloaded 14 time(s).

Edited by user 28 April 2023 21:23:41(UTC)  | Reason: Not specified

Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
Offline overlord  
#442 Posted : 28 April 2023 21:52:06(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,173
Turkey

Was thanked: 534 time(s) in 358 post(s)
Here is log file.

Offline uni  
#443 Posted : 28 April 2023 21:59:15(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,619
Man
Russian Federation

Was thanked: 1381 time(s) in 806 post(s)
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

Edited by user 28 April 2023 22:02:59(UTC)  | Reason: Not specified

Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
Offline uni  
#444 Posted : 29 April 2023 08:38:38(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,619
Man
Russian Federation

Was thanked: 1381 time(s) in 806 post(s)
Click to enlarge

maple-system-tools.sm (18kb) downloaded 144 time(s).
Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 29/04/2023(UTC)
Offline uni  
#445 Posted : 29 April 2023 19:41:22(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,619
Man
Russian Federation

Was thanked: 1381 time(s) in 806 post(s)
Click to enlarge

maple-system-tools-with-TextRegion.sm (17kb) downloaded 21 time(s).
Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 30/04/2023(UTC)
Offline Razonar  
#446 Posted : 30 April 2023 07:49:29(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,473
Uruguay

Was thanked: 925 time(s) in 588 post(s)
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 (6kb) downloaded 32 time(s).

Best regards.
Alvaro.
thanks 2 users thanked Razonar for this useful post.
on 30/04/2023(UTC),  on 04/05/2023(UTC)
Offline uni  
#447 Posted : 30 April 2023 13:34:33(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,619
Man
Russian Federation

Was thanked: 1381 time(s) in 806 post(s)
Gnuplot.

You can install it using scoop: scoop install gnuplot

Click to enlarge

maple-system-gnuplot.sm (15kb) downloaded 25 time(s).
Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
Offline uni  
#448 Posted : 04 May 2023 15:46:38(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,619
Man
Russian Federation

Was thanked: 1381 time(s) in 806 post(s)
For better use Text Region uncheck this menu item.

Click to enlarge
Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 04/05/2023(UTC)
Offline uni  
#449 Posted : 05 May 2023 10:31:58(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,619
Man
Russian Federation

Was thanked: 1381 time(s) in 806 post(s)
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 (git.io/vOZo0)
Viacheslav N. Mezentsev
Offline uni  
#450 Posted : 05 May 2023 11:07:27(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,619
Man
Russian Federation

Was thanked: 1381 time(s) in 806 post(s)
Now let's add modes.

Click to enlarge

maple-python-mode.sm (12kb) downloaded 16 time(s).

Edited by user 05 May 2023 16:13:47(UTC)  | Reason: Not specified

Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 06/05/2023(UTC)
Offline uni  
#451 Posted : 05 May 2023 20:34:22(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,619
Man
Russian Federation

Was thanked: 1381 time(s) in 806 post(s)
Click to enlarge

MapleToolsVersion.sm (16kb) downloaded 25 time(s).
Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 06/05/2023(UTC)
Offline charlamb  
#452 Posted : 05 May 2023 23:13:31(UTC)
charlamb


Rank: Member

Groups: Registered
Joined: 02/06/2022(UTC)
Posts: 14
Brazil

Was thanked: 1 time(s) in 1 post(s)
Hi, Uni.

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

smath.jpg

thanks 1 user thanked charlamb for this useful post.
on 08/05/2023(UTC)
Offline uni  
#453 Posted : 06 May 2023 06:27:58(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,619
Man
Russian Federation

Was thanked: 1381 time(s) in 806 post(s)
Originally Posted by: charlamb Go to Quoted Post
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

Edited by user 06 May 2023 08:28:11(UTC)  | Reason: Not specified

Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 2 users thanked uni for this useful post.
on 06/05/2023(UTC),  on 08/05/2023(UTC)
Offline charlamb  
#454 Posted : 08 May 2023 00:25:50(UTC)
charlamb


Rank: Member

Groups: Registered
Joined: 02/06/2022(UTC)
Posts: 14
Brazil

Was thanked: 1 time(s) in 1 post(s)
Thanks, Uni.

It worked!
Offline uni  
#455 Posted : 11 May 2023 16:03:27(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,619
Man
Russian Federation

Was thanked: 1381 time(s) in 806 post(s)
Simplified (complicated).

Click to enlarge

maple-python-mode.sm (12kb) downloaded 28 time(s).
Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 2 users thanked uni for this useful post.
on 12/05/2023(UTC),  on 12/05/2023(UTC)
Offline Razonar  
#456 Posted : 28 October 2023 20:26:31(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,473
Uruguay

Was thanked: 925 time(s) in 588 post(s)
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.
thanks 1 user thanked Razonar for this useful post.
on 28/10/2023(UTC)
Offline uni  
#457 Posted : 29 October 2023 22:59:39(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,619
Man
Russian Federation

Was thanked: 1381 time(s) in 806 post(s)
SMath can't convert a string to a number.

maple-evalf.png

Try this

maple-evalf-convert.png
Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 2 users thanked uni for this useful post.
on 30/10/2023(UTC),  on 30/10/2023(UTC)
Offline Razonar  
#458 Posted : 30 October 2023 03:30:56(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,473
Uruguay

Was thanked: 925 time(s) in 588 post(s)
Originally Posted by: uni Go to Quoted Post
... Try this


Thanks, Viacheslav! convert fractional works fine.

Best regards.
Alvaro.

Users browsing this topic
23 Pages«<212223
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.