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

## Easy Java Simulations (2001- ) => misc => Topic started by: ahmedelshfie on May 21, 2010, 07:26:01 pm

 Title: EJS version of Vector addition (sum of two vectors) Post by: ahmedelshfie on May 21, 2010, 07:26:01 pm This following applet is EJS version of Vector addition (sum of two vectors)Created by prof Hwang Modified by AhmedOriginal project EJS version of Vector addition (sum of two vectors) (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1247.0)The applet shows how vector $\vec{C}=\vec{A}+\vec{B}$ was calculated.1. Calculate X,Y components of vector $\vec{A}$,$\vec{B}$,   $\vec{C}_x=\vec{A}_x+\vec{B}_x and \vec{C}_y=\vec{A}_y+\vec{B}_y$2. If you un-check x-y mode:  The sum is equal to sum of parallel components of $\vec{A}$,$\vec{B}$ in the direction of $vec{C}$,   $\vec{C}=\vec{A}_p +\vec{B}_p$  and the normal component of \vec{A},\vec{B} always cancel out with each other. i.e.  $\vec{A}_n+\vec{B}_n=0 or \vec{A}_n= -\vec{B}_n$You can select to operate in C=A+B , A=C-B or B=C-A mode. Title: Re: EJS version of Vector addition (sum of two vectors) Post by: ahmedelshfie on October 09, 2010, 02:38:40 am This applet design by prof Hwang using JDK1.0.2Original URL Vector Addition (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=51.0)