Jump to content

Solve equations with substitution method: Difference between revisions

Added Easylang
(Added Easylang)
 
Line 531:
Elapsed Time: 21.255 ms.
 
</pre>
 
=={{header|EasyLang}}==
<syntaxhighlight>
func[] solve a[] b[] .
r[] &= (b[2] * a[3] - a[2] * b[3]) / (b[2] * a[1] - a[2] * b[1])
r[] &= (a[1] * r[1] - a[3]) / -a[2]
return r[]
.
print solve [ 3 1 -1 ] [ 2 -3 -19 ]
</syntaxhighlight>
{{out}}
<pre>
[ -2 5 ]
</pre>
 
Line 565 ⟶ 579:
}
</pre>
 
 
=={{header|Julia}}==
2,078

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.