Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline johnpan  
#1 Posted : 01 January 2022 04:44:30(UTC)
johnpan


Rank: Member

Groups: Registered
Joined: 01/01/2022(UTC)
Posts: 12
China

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!

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline overlord  
#2 Posted : 01 January 2022 13:59:32(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 509 time(s) in 339 post(s)
Originally Posted by: johnpan Go to Quoted Post
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 (11kb) downloaded 18 time(s).

2022-01-01_13-58.png

Edited by user 01 January 2022 14:14:27(UTC)  | Reason: Not specified

Offline Jean Giraud  
#3 Posted : 01 January 2022 16:17:57(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: johnpan Go to Quoted Post
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

Offline johnpan  
#4 Posted : 01 January 2022 17:22:51(UTC)
johnpan


Rank: Member

Groups: Registered
Joined: 01/01/2022(UTC)
Posts: 12
China

Excellent reply!

FindRoot is better for my condition, I need units.

Thanks Overlord!

2022-01-01_222042.png

Originally Posted by: overlord Go to Quoted Post
Originally Posted by: johnpan Go to Quoted Post
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


Offline johnpan  
#5 Posted : 01 January 2022 17:25:11(UTC)
johnpan


Rank: Member

Groups: Registered
Joined: 01/01/2022(UTC)
Posts: 12
China

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

Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: johnpan Go to Quoted Post
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.



Offline Jean Giraud  
#6 Posted : 01 January 2022 21:38:12(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Matrix style is more commonly encountered in Engineering projects.

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

Solve Tridiagonal.PNG
Offline johnpan  
#7 Posted : 02 January 2022 02:24:17(UTC)
johnpan


Rank: Member

Groups: Registered
Joined: 01/01/2022(UTC)
Posts: 12
China

Thanks! Jean
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.