...

/

Challenge: Linear System Solver

Challenge: Linear System Solver

Design a Python algorithm to solve a system of linear equations.

Statement

Given a system of two linear equations with two unknowns, w1w_1 and w2w_2, determine if there’s a potential solution. In the case of multiple solutions, return the string “There are infinitely many solutions” in the output. In the case of no solution, return the string “Intersection does not exist” in the output.

Example

Consider an example linear system:

2w14w2=92w_1-4w_2=9

3w1+7w2=33w_1+7w_2=3 ...