how to use the "system of equations" function

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

#1 Posted: 2021/12/31 22:44:30
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: 2022/1/1 07:59:32
overlord

overlord

580 likes in 1,348 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.77 KiB) downloaded 695 time(s).

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

Jean Giraud

983 likes in 6,866 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: 2022/1/1 11:22:51
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: 2022/1/1 11:25:11
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: 2022/1/1 15:38:12
Jean Giraud

Jean Giraud

983 likes in 6,866 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: 2022/1/1 20:24:17
John

John

0 likes in 12 posts.

Group: User

Thanks! Jean
  • New Posts
  • No New Posts