saving . . . saved How to solve two equations in Scilab? has been deleted. How to solve two equations in Scilab? has been hidden .
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 23-08-20, 3:59 p.m. trulyajays

Answers:

First of all rearrange these two equations.
5.6*a - 3.2*b = 2.9
-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
16-09-20, 5:27 p.m. rashpat93


Log-in to answer to this question.