Solve() function with units

Solve() function with units - Solve() with units - Mensajes

#1 Publicado: 27/1/2023 8:51:24
Thomy

Thomy

0 me gusta en 5 mensajes.

Grupo: User

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
#2 Publicado: 27/1/2023 11:19:01
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Wrote

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.

#3 Publicado: 27/1/2023 12:11:37
Thomy

Thomy

0 me gusta en 5 mensajes.

Grupo: User

Hello
You can find the file in the attachment
#4 Publicado: 27/1/2023 12:27:22
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: User

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
#5 Publicado: 27/1/2023 12:39:17
Thomy

Thomy

0 me gusta en 5 mensajes.

Grupo: User

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

Thanks you very much
#6 Publicado: 27/1/2023 12:55:43
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: User

Wrote

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



Hi. I can't find the file.

Best regards.
Alvaro.

#7 Publicado: 27/1/2023 13:00:31
Thomy

Thomy

0 me gusta en 5 mensajes.

Grupo: User

Fixpunkte LIWA.sm (4,24 MiB) descargado 1567 vez(es).
#8 Publicado: 27/1/2023 13:04:41
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: User

Wrote

Fixpunkte LIWA.sm (4,24 MiB) descargado 1567 vez(es).



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

Clipboard01.png

Best regards.
Alvaro.
#9 Publicado: 27/1/2023 14:37:16
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Wrote

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


NO file attached !!!
#10 Publicado: 27/1/2023 19:20:52
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: Moderator

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
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#11 Publicado: 3/2/2023 12:27:57
Thomy

Thomy

0 me gusta en 5 mensajes.

Grupo: User

How can i install the MaximaPlugin. Do i have to integrate the maxima folder in the plugin subfolder from SMath?
#12 Publicado: 3/2/2023 15:20:16
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: Moderator

Wrote

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.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
  • Nuevos mensajes
  • Sin mensajes nuevos