how to use the "system of equations" function

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

#1 Publicado: 31/12/2021 22:44:30
John

John

0 me gusta en 12 mensajes.

Grupo: 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 Publicado: 1/1/2022 7:59:32
overlord

overlord

600 me gusta en 1.381 mensajes.

Grupo: 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) descargado 1300 vez(es).

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

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 1/1/2022 11:22:51
John

John

0 me gusta en 12 mensajes.

Grupo: 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 Publicado: 1/1/2022 11:25:11
John

John

0 me gusta en 12 mensajes.

Grupo: 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 Publicado: 1/1/2022 15:38:12
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 1/1/2022 20:24:17
John

John

0 me gusta en 12 mensajes.

Grupo: User

Thanks! Jean
  • Nuevos mensajes
  • Sin mensajes nuevos