We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b3723d commit ea44d57Copy full SHA for ea44d57
ex4.1,4.2SolvingLinearEquations.py
@@ -0,0 +1,10 @@
1
+# Write a function to solve linear equations.
2
+'''
3
+For any form of linear equation;
4
+ax + b = cx + d
5
+ax - cx = d - b
6
+x (a - c) = d - b
7
+x = (d - b) / (a - c)
8
9
+def linearEquation(a, b, c, d):
10
+ return (d-b)/(a-c)
0 commit comments