000
11-11-2017, 01:14 PM
Post: #1
qwen2000 Junior Member Posts: 1 Joined: Nov 2017
Solving a system of equations
The problem I have is the following:
I have a system of equations:
x^2 + y^2 = 25
2x - y = 3
I need to use the solve command to solve the system but I am not sure how to write it. I have tried:
solve({x^2 + y^2 = 25, 2x - y = 3}, {x, y});
But I am getting an error.
What is the correct way to write the solve command to solve a system of equations?
Thanks.
11-11-2017, 02:05 PM
Post: #2
parisse Options Below Posts: 1,140 Joined: Dec 2013
RE: Solving a system of equations
solve expects a list of equation as first argument, and a list of variable as second argument.
So you should write:
solve({x^2 + y^2 = 25, 2*x - y = 3}, {x, y});
or
solve({x^2 + y^2 - 25, 2*x - y - 3}, {x, y});
11-11-2017, 02:40 PM
Post: #3
qwen2000 Junior Member Posts: 1 Joined: Nov 2017
RE: Solving a system of equations
Thanks for the help! I will give it a try.
11-11-2017, 04:04 PM
Post: #4
parisse Options Below Posts: 1,140 Joined: Dec 2013
RE: Solving a system of equations
You can also write:
solve({x^2 + y^2 = 25, 2*x - y = 3}, x, y);
It is not mandatory to write the second argument as a list.
« Next Oldest | Next Newest »
User(s) browsing this thread: 1 Guest(s)