Three equations and more unknown variables

Three equations and more unknown variables - Can Findroot solve three equations with more than three unknown variables? - Poruke

#1 Objavljeno: 25. 11. 2023. 21:33:51
Sarvesh Ambekar

Sarvesh Ambekar

0 svidjanja u 5 postova.

Grupa: User

Hello All,
I have four unknowns in three linear equations. In this setup, can the FindRoot function get values for these variables?
I tried the same in MathCAD and could get the solution, but it is not working in Smath.
Can someone guide me, please?
Are there other possible solving methods for handling such equations with 6 or 8 unknowns?
Fajl nije pronađen.[aFajl nije pronađen.ttach]48521[/attach]Fajl nije pronađen.
Best Regards
Saviind
#2 Objavljeno: 25. 11. 2023. 23:14:54
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Usually al_nleqsolve() is more capable at this kind of situations.
Also your functions shouldn't have boolean operations.

Regards

2023-11-25_18-01.png
#3 Objavljeno: 25. 11. 2023. 23:40:21
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

Solve() from the Maxima plugin can handle under-determined systems of equations. In such cases, the solution contains a free variable. The name changes every time the sheet is recalculated. If you want to rely on that name, insert a MaximaControl("restart" ) command to reset the Maxima session and the counter.

2023-11-25 16_32_27-SMath Solver - [Trial.sm_].png
Trial_Kr.sm (41,8 KiB) preuzeto 1837 put(ova).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#4 Objavljeno: 30. 11. 2023. 02:08:00
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

Wrote

... I tried the same in MathCAD and could get the solution, but it is not working in Smath....



Hi. Can you share the Mathcad result? This page is the help for matlab techniques for handling underdetermined systems: https://www.mathworks.com/help/matlab/math/systems-of-linear-equations.html#bt7ov7u

Writing the system as a linear one, SMath have some functions for work with those systems, like this one

sys.png

Trial.sm (61,84 KiB) preuzeto 1723 put(ova).

Best regards.
Alvaro.
#5 Objavljeno: 1. 12. 2023. 19:40:17
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

For your f(x,y,z) ... I get two sets of solved [x,y,z].
Smath solves the Mathsoft example, 4 unknowns.
Smath Butller is lot more advanced/difficult.
Jean.

Solve FindRoot f(x,y,z) ITERATIVE.sm (103,87 KiB) preuzeto 1880 put(ova).
  • Novi postovi
  • Nema novih postova