how to use the "system of equations" function

how to use the "system of equations" function - 消息

#1 已发布: 2021/12/31 22:44:30
John

John

0个赞,共12个帖子。

组: 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 已发布: 2022/1/1 07:59:32
overlord

overlord

600个赞,共1,381个帖子。

组: 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)已下载 1317 次。

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

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2022/1/1 11:22:51
John

John

0个赞,共12个帖子。

组: 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 已发布: 2022/1/1 11:25:11
John

John

0个赞,共12个帖子。

组: 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 已发布: 2022/1/1 15:38:12
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2022/1/1 20:24:17
John

John

0个赞,共12个帖子。

组: User

Thanks! Jean
  • 有新帖
  • 无新帖