Question
Make a program in Visual studio ( C++ project / the form is .C) that takes in matrices A, B and X. and find the
Make a program in Visual studio ( C++ project / the form is .C) that takes in matrices A, B and X.
and find the solution for X=inv(A) * B using CRAMER'S RULE. see the image below.
1. you have to take in matrices A B and X in the main function
The size of Matrix A may vary from 2x2 to 5x5 and so does size of B and X
instead of inputting the elements of A B and X
the inputs are taken as the equations in the form of STRINGS
the elements of A B and X are extracted from the input strings
in this case the characters input for each element of A and B are in the from of sTTTT.VVV
where, s is - for negative number and + for positive number
T are digits before decimal
V are digits after decimal
the equation entered MUST be like
+1023.557a -22.005A +2.0M = 0.004
2. A and B can be float/double numbers
3. X is a vector with all inputs as characters
4. Use Cramer's rule to find the solution.
make a separate function for finding determinant of the matrix.
check if det(A)==0 to determine the solution is possible or not.
display your results for the characters in vector X
roject BASIC REQUIREMENTS 1 you have to take itn 4. Use Cramers nule to find the solution make a separate tunction for finding determinant of the matrix. check if det(A)-0 to determine the soltion is possible or not. 1 instead of inputting the elements of A B and X the inputs are taken as the equations in the form of STRINGS in this case the characters inpus for each element of A and B are in the from of sTTTT VVV T are digts betore decimal V are dgts aner decimal the equation entered MUST be like +1023557a-22.005A +2.0M 0.004 roject BASIC REQUIREMENTS 1 you have to take itn 4. Use Cramers nule to find the solution make a separate tunction for finding determinant of the matrix. check if det(A)-0 to determine the soltion is possible or not. 1 instead of inputting the elements of A B and X the inputs are taken as the equations in the form of STRINGS in this case the characters inpus for each element of A and B are in the from of sTTTT VVV T are digts betore decimal V are dgts aner decimal the equation entered MUST be like +1023557a-22.005A +2.0M 0.004
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started