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

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Giddyup  
#1 Posted : 03 January 2024 13:38:24(UTC)
Giddyup


Rank: Member

Groups: Registered
Joined: 15/03/2023(UTC)
Posts: 14

I updated to the latest version today.
When I start the program and a new document, I type a few equations and solve with Maple(Solve(,)). The solution is correct:
1.png

I then open a new document and try to solve different equations but I get the same result as the last equation from the first document:
2.png
The value and units are wrong. Also, the second equation requests a solution for x, but I did not include x in the equation. I still get a result (wrong) instead of an error.

I then open another new document and solve a different equation:
3.png
The solution is correct.
But when I go back to the second document, the value for both equations has updated to the value from the third document and the units have changed.

What is going on?

EDIT: I uninstalled the latest version and reinstalled the previous version but the problem persists.

EDIT 2: I reinstalled the latest version. The problem persists. I deleted the maple tools plugin then reinstalled it. Now I get an error that the ..\bin\tmp\out.tmp file cannot be found.

Edited by user 03 January 2024 15:23:25(UTC)  | Reason: Not specified

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline overlord  
#2 Posted : 03 January 2024 17:01:32(UTC)
overlord


Rank: Advanced Member

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

Was thanked: 509 time(s) in 339 post(s)
I can reproduce it.
This should be a bug.
Some units can not be solved.
And there is no consistency.
L is basically m^3.
While m^3 is solved correctly, L is not.
Inch, feet, yard can't be solved, lightyear can.
m^2 can be solved, acre can't. etc, etc...

Originally maple v6 doesn't work with units.
This ability is magick of uni, author of plugin.
He once said it was added to plugin by himself.
He may need to look this particular problem.

Regards

maple_units.sm (27kb) downloaded 5 time(s).

2024-01-03_05-58.png
Offline uni  
#3 Posted : 04 January 2024 07:43:52(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1274 time(s) in 745 post(s)
Yes, there are problems. A quick solution is not always possible due to the complexity of connecting two different programs.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline Giddyup  
#4 Posted : 04 January 2024 08:10:47(UTC)
Giddyup


Rank: Member

Groups: Registered
Joined: 15/03/2023(UTC)
Posts: 14

Am I even using Maple(solve) correctly?
I'm trying to solve for k, using this equation:
k.png
where Wn is sqrt(k/m).
If I only use solve(equation,k), I get a "no real roots" error. So I slap the Maple() command on it.
Is there a better way to solve for a variable?

Also, what's the solution for no "out.tmp" file?

Edited by user 04 January 2024 08:40:20(UTC)  | Reason: Not specified

Offline Jean Giraud  
#5 Posted : 05 January 2024 03:19:21(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Giddyup Go to Quoted Post
Am I even using Maple(solve) correctly ?

Not for solving your system respectively ... mutual Smath/Maple codes
Jean

Worksheet39.sm (5kb) downloaded 6 time(s).

Offline Giddyup  
#6 Posted : 05 January 2024 11:51:44(UTC)
Giddyup


Rank: Member

Groups: Registered
Joined: 15/03/2023(UTC)
Posts: 14

Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: Giddyup Go to Quoted Post
Am I even using Maple(solve) correctly ?

Not for solving your system respectively ... mutual Smath/Maple codes
Jean

Worksheet39.sm (5kb) downloaded 6 time(s).



I don't understand what you are showing me here. I don't understand the difference between your example and my usage of maple(solve).
The formula in your example works fine until you add (some) units. Then it fails without providing feedback that it failed.
The problem I'm trying to solve is of a vibrating machine. The k that I'm solving for is spring constant, and it will have units of force/distance. I'd like to be able to include units in my calculations so I can verify that my result is in the correct units and the correct scale.
Are you able to solve (and update with different values) your example with the following inputs?
k-units.png
Offline Jean Giraud  
#7 Posted : 06 January 2024 00:57:11(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
It solves your image.
Am I even using Maple(solve) correctly ?
I'm trying to solve for k, using this equation

Construct with units as you did,
select all ... ignore units.
If you have some result, append user unit
Jean
Offline mkraska  
#8 Posted : 06 January 2024 08:09:20(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
For units support you can use FindRoot() from the nonlinear solvers plugin and Solve() from the Maxima plugin.

Note that in the previous version of the worksheet omega and omega_n had the same value, creating a divide by zero problem.

Worksheet39_Kr.png Worksheet39_Kr.sm (9kb) downloaded 8 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 07/01/2024(UTC)
Offline Giddyup  
#9 Posted : 10 January 2024 09:35:57(UTC)
Giddyup


Rank: Member

Groups: Registered
Joined: 15/03/2023(UTC)
Posts: 14

Originally Posted by: mkraska Go to Quoted Post
For units support you can use FindRoot() from the nonlinear solvers plugin and Solve() from the Maxima plugin.

Note that in the previous version of the worksheet omega and omega_n had the same value, creating a divide by zero problem.

Worksheet39_Kr.png Worksheet39_Kr.sm (9kb) downloaded 8 time(s).


Thanks.
I'm trying to load your worksheet but I'm getting this error:
depend.png

Even though I have the Maxima plugin installed.

I also get this message:
maxima.png

What's in this bat file?

Any idea why am I getting these errors?
Offline mkraska  
#10 Posted : 10 January 2024 10:19:21(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
The plugin requires Maxima to be installed on the computer. See SMath with Maxima for instructions. With the latest version of the plugin, the user should be guided through the installation of Maxima.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Users browsing this topic
Guest
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.