# 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: Fu-Kwun Hwang on June 25, 2005, 10:45:35 am

 Title: Summation of vectors Post by: Fu-Kwun Hwang on June 25, 2005, 10:45:35 am This applet shows how to add several vectors together.You can change the number of vecotrs with slider bar.You are welcomed to check out related applet: How to do summation of three vectors (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=2018) Title: summation of vectors Post by: sreejat on January 05, 2006, 09:15:35 pm Plz send me the xml file of this to:sreejat@it.iitb.ac.in Title: topic216 Post by: Fu-Kwun Hwang on January 06, 2006, 09:47:08 am You should have received xml file in your email account. Title: Re: Summation of vectors Post by: lookang on May 02, 2008, 11:02:12 am working on a similar appletfor learning:Add two vectors to determine a resultant by a graphical methodtaken from http://www.seab.gov.sg/SEAB/oLevel/syllabus/2009_GCE_O_Level_Syllabuses/5058_2009.pdfwork in progress.....and then for add and subtract coplanar vectors.taken from http://www.seab.gov.sg/SEAB/aLevel/syllabus/2008_GCE_A_Level_Syllabuses/8866_2008.pdf Title: Re: Summation of vectors Post by: lookang on May 07, 2008, 08:42:22 am another work in progress, but i think u will like it.enjoy ;D Title: Re: Summation of vectors Post by: lookang on May 07, 2008, 11:02:07 am question:how did u make the resultant to be drawn using the array?i can't figure out the variable assigned to the resultant?i tried PX[2] and PY[2] thinking that is how u loop the adding but the display shows zero. Title: Re: Summation of vectors Post by: Fu-Kwun Hwang on May 07, 2008, 12:14:16 pm for example:define n=30; R=100.; and declear xp[n],yp[n] at Variable PanelThen I can add the following code at Initialize Panel to draw a circle.Code:double dc=Math.PI/n,c;for(int i=0;i