A student aims to use Cramer’s rule to find a solution for a homogeneous system. But while finding the solution, he observes that he is

A student aims to use Cramer’s rule to find a solution for a homogeneous system. But while finding the solution, he observes that he is getting infinity as a solution. The code is
Code:
p=X.\C
X is the matrix created by replacing a column with constant co-efficients in the equation.
C is the co-efficient matrix
P is one of the variables in the system
Is this a proper justification?
A. Yes
B. No
C. Maybe
D. It is not possible to find solutions in MATLAB
 
Answer: b
Explanation: The code should have been p=X./C. Since the system is homogeneous, X is always 0. So, applying Cramer’s rule will always yield a trivial solution. But here the student gets or ‘Inf’ as an answer since according to his code, C will be divided by 0- this isn’t really the case. Hence, this is not a proper justification.
 

Tìm kiếm

Back
Top