Simple example to calculate system of two linear equations with two variables x, y:
2. First of all you need to declare variables x and y. The initial values will taken as first approach.
Type:
x=0
y=0
3. Than you can write the system of equations
Type:
3*x-2*y=9
8*x+4*y=-10
We have two variables an two equations. It is important, because number of equations cannot be less than number of variables. If number of equations more than number of variables, the solver will assumed only N of last equations, where N is the number of unknown variables.
4. Type solve directive:
solve(x,y)
This is need to define the list of unknown varibles for which the system should be solved.
5. Press the Solve button.
6. In output field you see now the result of calculations.
x = 0,5714
Комментариев нет:
Отправить комментарий