Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Thomy  
#1 Posted : 27 January 2023 14:51:24(UTC)
Thomy

Rank: Newbie

Groups: Registered
Joined: 27/01/2023(UTC)
Posts: 5
Location: Schweiz

Hello,

I can't find the error. I want to solve a simple linear equation for a static problem. But with the solve() function i can't enter units. Problem.JPG
it says not real roots.

Thanks for help
Offline Jean Giraud  
#2 Posted : 27 January 2023 17:19:01(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 928 time(s) in 756 post(s)
Originally Posted by: Thomy Go to Quoted Post
I can't find the error. I want to solve a simple linear equation for a static problem. But with the solve() function I can't enter units.

Generally, solve blocs aren't units compatible.
Attach the document for possible doctoring.

Offline Thomy  
#3 Posted : 27 January 2023 18:11:37(UTC)
Thomy

Rank: Newbie

Groups: Registered
Joined: 27/01/2023(UTC)
Posts: 5
Location: Schweiz

Hello
You can find the file in the attachment
Offline Razonar  
#4 Posted : 27 January 2023 18:27:22(UTC)
Razonar


Rank: Advanced Member

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

Was thanked: 630 time(s) in 397 post(s)
There is no "solve block" there. For the real ones there is a plugin. In any case, there is a function to find roots, which is compatible with the use of units, you just have to know how to use it and in what cases. For this function, the roots function seems more suitable instead of solve. Try with this, for example

Clipboard01.png

Best regards.
Alvaro
Offline Thomy  
#5 Posted : 27 January 2023 18:39:17(UTC)
Thomy

Rank: Newbie

Groups: Registered
Joined: 27/01/2023(UTC)
Posts: 5
Location: Schweiz

Doesn't work. The File is in the attatchment.

Thanks you very much
Offline Razonar  
#6 Posted : 27 January 2023 18:55:43(UTC)
Razonar


Rank: Advanced Member

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

Was thanked: 630 time(s) in 397 post(s)
Originally Posted by: Thomy Go to Quoted Post
Doesn't work. The File is in the attachment. ...


Hi. I can't find the file.

Best regards.
Alvaro.

Offline Thomy  
#7 Posted : 27 January 2023 19:00:31(UTC)
Thomy

Rank: Newbie

Groups: Registered
Joined: 27/01/2023(UTC)
Posts: 5
Location: Schweiz

Fixpunkte LIWA.sm (4,343kb) downloaded 14 time(s).
Offline Razonar  
#8 Posted : 27 January 2023 19:04:41(UTC)
Razonar


Rank: Advanced Member

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

Was thanked: 630 time(s) in 397 post(s)
Originally Posted by: Thomy Go to Quoted Post
Fixpunkte LIWA.sm (4,343kb) downloaded 14 time(s).


Hi. It works in my environment. Try with F9 for update the calculation.

Clipboard01.png

Best regards.
Alvaro.
Offline Jean Giraud  
#9 Posted : 27 January 2023 20:37:16(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 928 time(s) in 756 post(s)
Originally Posted by: Thomy Go to Quoted Post
Doesn't work. The File is in the attatchment.

NO file attached !!!
Offline mkraska  
#10 Posted : 28 January 2023 01:20:52(UTC)
mkraska


Rank: Advanced Member

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

Was thanked: 988 time(s) in 631 post(s)
In your initial post, just replace solve() by Solve(). This requires the Maxima Plugin being installed.
It is a symbolic solver, which has generic unit handling, i.e. the unit of the result is determined by the solver.

An alternative is the FindRoot function, where you have to provide an initial guess (starting point for the numeric solver) and the result is automatically assigned to the variable.

The maxima solver returns an equation variable=solution, which can be converted into an assignment by the Assign() function. More details to be found in the handbook (Google SMath Handbuch).

2023-01-27 23_20_25-SMath Solver - [Fixpunkte LIWA.sm_].png
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
Offline Thomy  
#11 Posted : 03 February 2023 18:27:57(UTC)
Thomy

Rank: Newbie

Groups: Registered
Joined: 27/01/2023(UTC)
Posts: 5
Location: Schweiz

How can i install the MaximaPlugin. Do i have to integrate the maxima folder in the plugin subfolder from SMath?
Offline mkraska  
#12 Posted : 03 February 2023 21:20:16(UTC)
mkraska


Rank: Advanced Member

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

Was thanked: 988 time(s) in 631 post(s)
Originally Posted by: Thomy Go to Quoted Post
How can i install the MaximaPlugin. Do i have to integrate the maxima folder in the plugin subfolder from SMath?


Follow the link in my signature (points to the wiki). There you find instructions.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
Users browsing this topic
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.