Roots of a nonlinear equations system

1 view (last 30 days)
Cynthia Lilian
Cynthia Lilian on 16 Nov 2022
Commented: Star Strider on 16 Nov 2022
I’m trying to solve a nonlinear equations system that works with symbolic variables
I have found some solutions that require turning the symbolic variables to indexed variables (x changes to x(1), y changes to x(2)) but I don’t know how to do that.
Can someone please help me? Also if you have any suggestion for finding the roots of the equations I would appreciate it.
  2 Comments
John D'Errico
John D'Errico on 16 Nov 2022
Unless you can be more specific, it is difficult to help you.
Cynthia Lilian
Cynthia Lilian on 16 Nov 2022
I have the following equations system where x&y are symbolic variables
And I want to find the solution to it.
Some solutions I've found show how to solve it when the system is in terms of a single variable, so my system would be
But I don't know how to change the system I have to the system I need.

Sign in to comment.

Answers (1)

Star Strider
Star Strider on 16 Nov 2022
Use the solve function —
syms x y
fcn = [-4*y^2 + 4*x - 4 == 0; 16*y^2 - 8*x*y ==0]
fcn = 
S = solve(fcn)
S = struct with fields:
x: [2×1 sym] y: [2×1 sym]
x = S.x
x = 
y = S.y
y = 
.
  2 Comments
Star Strider
Star Strider on 16 Nov 2022
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.

Sign in to comment.

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!