NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Easy Java Simulations (2001- ) => misc => Topic started by: Fu-Kwun Hwang on March 24, 2009, 08:02:50 am



Title: Solving linear equations
Post by: Fu-Kwun Hwang on March 24, 2009, 08:02:50 am
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: Solution for two linear equations (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1150.0)