Three equations and more unknown variables

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

#1 Pubblicato: 25/11/2023 21:33:51
Sarvesh Ambekar

Sarvesh Ambekar

0 apprezzamenti in 5 post.

Gruppo: 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?
File non trovato.[aFile non trovato.ttach]48521[/attach]File non trovato.
Best Regards
Saviind
#2 Pubblicato: 25/11/2023 23:14:54
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: 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 Pubblicato: 25/11/2023 23:40:21
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: 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) scaricato 1791 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#4 Pubblicato: 30/11/2023 02:08:00
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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) scaricato 1682 volta(e).

Best regards.
Alvaro.
#5 Pubblicato: 01/12/2023 19:40:17
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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) scaricato 1835 volta(e).
  • Nuovi post
  • Nessun nuovo post