Three equations and more unknown variables

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

#1 Posted: 11/25/2023 9:33:51 PM
Sarvesh Ambekar

Sarvesh Ambekar

0 likes in 5 posts.

Group: 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 not found.[aFile not found.ttach]48521[/attach]File not found.
Best Regards
Saviind
#2 Posted: 11/25/2023 11:14:54 PM
overlord

overlord

554 likes in 1333 posts.

Group: 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 Posted: 11/25/2023 11:40:21 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: 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 KiB) downloaded 64 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#4 Posted: 11/30/2023 2:08:00 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: 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 KiB) downloaded 63 time(s).

Best regards.
Alvaro.
#5 Posted: 12/1/2023 7:40:17 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 68 time(s).
  • New Posts New Posts
  • No New Posts No New Posts