How to solve two equations in Scilab?

##### Title

##### Question

I have two equations in my hand with unknowns.

2.1 + 5.6*a - 3.2*b = 5

3.9 -9.5*a - 7.6*b = 7

How to solve these equations in Scilab and get the values of a and b ?

Scilab Scripts-and-Functions 06-07 min 20-30 sec

__Answers:__

First of all rearrange these two equations.

5.6*a - 3.2*b = 2.9

-9.5*a - 7.6*b = 3.1

-9.5*a - 7.6*b = 3.1

In Scilab console type,

X=[5.6 -3.2; -9.5 -7.6], Y=[2.9;3.1]

z= inv(X)*Y

Login to add comment