Here we are now going to solve equations.
1.Solving an equation with one variable:
solve('equation') will solve the equation(linear or non-linear) for the given variable.
eg., solve('5*x+x^2=9') gives the answers
-5/2+1/2*61^(1/2)
-5/2-1/2*61^(1/2)
2.Solving equations with more than one variables
eg.,simultaneous equations with two variables x,y
[x,y]=solve('equation_1','equation_2')
This solves the two equations(linear or non-linear). two the results of the two variables.If there are more than one solutions for each variable,eg.
x=
5
6
y=
7
8
then (5,7) and (6,8) are the two solutions of the equations.
3.Expressing one variable in terms of the other:
solve('equation','subjective variable')
eg. solve('5*x-1=y','x') expresses x in terms of y
therefore the solution is:
ans =
1/5+1/5*y
1.Solving an equation with one variable:
solve('equation') will solve the equation(linear or non-linear) for the given variable.
eg., solve('5*x+x^2=9') gives the answers
-5/2+1/2*61^(1/2)
-5/2-1/2*61^(1/2)
2.Solving equations with more than one variables
eg.,simultaneous equations with two variables x,y
[x,y]=solve('equation_1','equation_2')
This solves the two equations(linear or non-linear). two the results of the two variables.If there are more than one solutions for each variable,eg.
x=
5
6
y=
7
8
then (5,7) and (6,8) are the two solutions of the equations.
3.Expressing one variable in terms of the other:
solve('equation','subjective variable')
eg. solve('5*x-1=y','x') expresses x in terms of y
therefore the solution is:
ans =
1/5+1/5*y
PLEASE LEAVE A COMMENT :)
0 comments:
Post a Comment