1 страниц (12 вхождений)
Solve() function with units - Solve() with units - Сообщения
#1 Опубликовано: 27.01.2023 08:51:24
#2 Опубликовано: 27.01.2023 11:19:01
WroteI 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 Опубликовано: 27.01.2023 12:11:37
Hello
You can find the file in the attachment
You can find the file in the attachment
#4 Опубликовано: 27.01.2023 12:27:22
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

Best regards.
Alvaro
Best regards.
Alvaro
#5 Опубликовано: 27.01.2023 12:39:17
Doesn't work. The File is in the attatchment.
Thanks you very much
Thanks you very much
#6 Опубликовано: 27.01.2023 12:55:43
WroteDoesn't work. The File is in the attachment. ...
Hi. I can't find the file.
Best regards.
Alvaro.
#7 Опубликовано: 27.01.2023 13:00:31
Fixpunkte LIWA.sm (4 МиБ) скачан 54 раз(а).
#8 Опубликовано: 27.01.2023 13:04:41
WroteFixpunkte LIWA.sm (4 МиБ) скачан 54 раз(а).
Hi. It works in my environment. Try with F9 for update the calculation.
Best regards.
Alvaro.
#9 Опубликовано: 27.01.2023 14:37:16
WroteDoesn't work. The File is in the attatchment.
NO file attached !!!
#10 Опубликовано: 27.01.2023 19:20:52
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](/ru-RU/file/cnKw7E/2023-01-27-23_20_25-SMath-Solver---_Fixpunkte-LIWA_sm___png)
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).
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#11 Опубликовано: 03.02.2023 12:27:57
How can i install the MaximaPlugin. Do i have to integrate the maxima folder in the plugin subfolder from SMath?
#12 Опубликовано: 03.02.2023 15:20:16
WroteHow 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/wiki/SMath%20with%20Plugins.ashx
1 страниц (12 вхождений)
-
Новые сообщения
-
Нет новых сообщений