Cramer's rule: Difference between revisions
Content added Content deleted
m (→{{header|Go}}: update for library changes) |
No edit summary |
||
Line 1,047: | Line 1,047: | ||
w = 2.0, x = -12.0, y = -4.0, z = 1.0 |
w = 2.0, x = -12.0, y = -4.0, z = 1.0 |
||
</pre> |
</pre> |
||
=={{header|Maple}}== |
|||
<lang Maple>A := Matrix([[2,-1,5,1],[3,2,2,-6],[1,3,3,-1],[5,-2,-3,3]]): |
|||
w := LinearAlgebra:-Determinant(Matrix([[-3,-1,5,1],[-32,2,2,-6],[-47,3,3,-1],[49,-2,-3,3]]))/ LinearAlgebra:-Determinant(A); |
|||
x := LinearAlgebra:-Determinant(Matrix([[2,-3,5,1],[3,-32,2,-6],[1,-47,3,-1],[5,49,-3,3]]))/LinearAlgebra:-Determinant(A); |
|||
y := LinearAlgebra:-Determinant(Matrix([[2,-1,-3,1],[3,2,-32,-6],[1,3,-47,-1],[5,-2,49,3]]))/LinearAlgebra:-Determinant(A); |
|||
z := LinearAlgebra:-Determinant(Matrix([[2,-1,5,-3],[3,2,2,-32],[1,3,3,-47],[5,-2,-3,49]]))/LinearAlgebra:-Determinant(A);</lang> |
|||
{{Out|Output}} |
|||
<pre>w := 2 |
|||
x := -12 |
|||
y := -4 |
|||
z := 1</pre> |
|||
=={{header|Mathematica}}== |
=={{header|Mathematica}}== |