how to use the "system of equations" function

how to use the "system of equations" function - Messages

#1 Posted: 12/31/2021 10:44:30 PM
John

John

0 likes in 12 posts.

Group: User

Hi, guys:

I'm a new one to SMath. and have a question on system of equations.

here is a simple question

smath soe.png

how to get the result of x, y without using the matrix? I tried solve and findroot, but can't get the value of x, y.

Thank you for the help

Happy New Year!
#2 Posted: 1/1/2022 7:59:32 AM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

how to get the result of x, y without using the matrix? I tried solve and findroot, but can't get the value of x, y.


You can't use solve() for nonlinear equations. (more than one unknowns)
You can use roots(), FindRoot() or al_nleqsolve().
Here is your equation solved in various ways.

Regards

solvers.sm (10 KiB) downloaded 44 time(s).

2022-01-01_13-58.png
#3 Posted: 1/1/2022 10:17:57 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

how to get the result of x, y without using the matrix ?


Matrix style is more commonly encountered in Engineering projects.
That add-on will enrich your future projects.

Jacobi.PNG

#4 Posted: 1/1/2022 11:22:51 AM
John

John

0 likes in 12 posts.

Group: User

Excellent reply!

FindRoot is better for my condition, I need units.

Thanks Overlord!

2022-01-01_222042.png

Wrote

Wrote

how to get the result of x, y without using the matrix? I tried solve and findroot, but can't get the value of x, y.


You can't use solve() for nonlinear equations. (more than one unknowns)
You can use roots(), FindRoot() or al_nleqsolve().
Here is your equation solved in various ways.

Regards


#5 Posted: 1/1/2022 11:25:11 AM
John

John

0 likes in 12 posts.

Group: User

Thank you, Jean, you're right, I need more practice.

Wrote

Wrote

how to get the result of x, y without using the matrix ?


Matrix style is more commonly encountered in Engineering projects.
That add-on will enrich your future projects.



#6 Posted: 1/1/2022 3:38:12 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Matrix style is more commonly encountered in Engineering projects.


That example has only one CAS route ... naturally 15 D.

Solve Tridiagonal.PNG
#7 Posted: 1/1/2022 8:24:17 PM
John

John

0 likes in 12 posts.

Group: User

Thanks! Jean
  • New Posts New Posts
  • No New Posts No New Posts