Assume there are two linear equations:

a1*x+b1*y=c1
a2*x+b2*y=c2

x=\frac{\begin{vmatrix}c_1 & b_1\\ c_2 & b_2 \end{vmatrix}}{\begin{vmatrix} a_1 & b_1 \\ a_2 & b_2 \end{vmatrix}}=\frac{c_1*b_2-c_2*b_1}{a_1*b_2-a_2*b_1},
y=\frac{\begin{vmatrix}a_1 & c_1 \\ a_2 & c_2 \end{vmatrix}}{\begin{vmatrix}a_1 & b_1 \\a_2 & b_2\end{vmatrix}}=\frac{a_1*c_2-a_2*c_1}{a_1*b_2-a_2*b_1}


This applet demostrate EJS GUI possibility: Solving linear equations and display it the solution graphically.

There is a similar applet: [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1150.0]Solution for two linear equations[/url]

/htdocs/ntnujava/ejsuser/2/users/ntnu/fkh/linearequations_pkg/linearequations.propertiesFull screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
Download EJS jar file(1235.7kB):double click downloaded file to run it. (14 times by 11 users) , Download EJS source (5 times by 5 users) View EJS source