Solve equations with substitution method: Difference between revisions
Solve equations with substitution method (view source)
Revision as of 22:54, 8 November 2021
, 2 years ago→{{header|Julia}}
mNo edit summary |
|||
Line 29:
a1, b1, c1 = parselinear(s1)
a2, b2, c2 = parselinear(s2)
▲ return X, Y
end
@show solvetwolinear("3x + y = -1", "2x - 3y = -19") # solvetwolinear("3x + y = -1", "2x - 3y = -19") = (-2.0, 5.0)
</lang>
=={{header|Raku}}==
|