NTNUJAVA Virtual Physics Laboratory (Java Simulaions in Physics)
July 25, 2008, 11:02:54 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Switch to this new system on 2007/02/14. (previous system2001-2007, 1996-2001) ,Chinese forum more simulations and resources in Chinese.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Vector Addition  (Read 103216 times)
0 Members and 3 Guests are viewing this topic.
Fu-Kwun Hwang
Administrator
Hero Member
*****
Posts: 1031



WWW
« on: January 29, 2004, 11:16:34 PM »

Registed user can get files related to this applet for offline access.
If java program did not show up, please download and install latest Java RUN TIME
There are 2 translations,
or


This java applets try to show : How to add two vector A and Binto vector C
    C = A + B = B + A
How to play:
     
  1. There are two methods to form a vector
  2.   1. Vector A/B originate from center of the window
     
      Left click anywhere inside the window to form vector A or B
      2. Vector A/B originate from where you first  click the button
     
      Drag and lift the left mouse button to form vector A or B  Vector will move to center of the window.

 
  • The program will show you how to add two vector A and B into C

  •    
     
    C = A + BorC = B+ A
    C = A - BorC= -B + A
     
    A - B can be transformed to A + (-B)
     
     
  • press reset button or right click the mouse button to reset.
  •  
        Parameters are reset to default values. 
     
  • select info checkbox to show more information.
  •  
        X,Y components of each vector ... 
      How to process more than two vectors :
                                     
    SUM= A + B + C + D
    = (A + B) + (C+D)
    = E+ F
    E = A + B and F= C + D
      Could you figure out how to process SUM = A + B + C ?
    3-D version


    The following is a flash demo for the above java applet.
             


    How to form a 3_D vector
      Move the mouse with the window will establish a vector at X-Y plane.  Left click the mouse, then drags it up/down to change the Z components. Then release the mouse button

     When you form two vector A and B
      Another vector C = A + B will show up.
    Drag the right mouse button to change the viewing angle. Drag near the origin to change the its position.(displacement)


    Registed user can get files related to this applet for offline access.
    If java program did not show up, please download and install latest Java RUN TIME
    There are 2 translations,
    or
    « Last Edit: November 01, 2007, 12:35:55 AM by Fu-Kwun Hwang » Logged
    Guest
    « Reply #1 on: January 30, 2004, 11:18:43 AM »

    Subject: thanks!
    Date: Wed, 21 Oct 1998 21:21:49 -0400
    From: dgoodwin <dgoodwin@1st.net>
    To: hwang@phy03.phy.ntnu.edu.tw
    We were reviewing vector addition this evening at a study session.
    Someone asked about help from the internet, so we searched and happened
    to find your page. There were a few "ah-ha's" when the program showed
    the parallelogram method for adding vectors so clearly. Thanks.
    Logged
    Guest
    « Reply #2 on: January 30, 2004, 11:28:18 AM »

    Subject:
    Date: Tue, 2 Feb 1999 22:39:22 -0200
    From: "Marcilio Carneiro" <marcilio_roberto@uol.com.br>
    To: <hwang@phy03.phy.ntnu.edu.tw>
    Hi Mr Hwang:
     
      I?m from Brazil I worked as Physics about 10 years ago and since
    that time I had a desire : to make softwares for Physics teaching.
    The DOS interfaces I used to have forced me to give up. Last year
    (after spendig some time learning Windows based programming) I
     restarted the project but once again I didn?t like the results. I
    used Delphi 3.0 (Pascal Object Language) and made about 100 programs
    ( mechanics and eletricity) but when I saw your programs I felt even
    more disappointed with the ones i had done . Yours are brilliant ,
    fantastic . Don?t you sell them ? I?m interested in many of them.
    One : sugestion: Don?t use weak green colors I hardly can see them .
    For instance the one you used in Vactor addition,
    Thank you and congratulations for your excellent work (I wish I was
    talented as you are)
    Marcilio Carneiro
    Logged
    Fu-Kwun Hwang
    Administrator
    Hero Member
    *****
    Posts: 1031



    WWW
    « Reply #3 on: March 31, 2005, 04:52:05 PM »

    Registed user can get files related to this applet for offline access.
    If java program did not show up, please download and install latest Java RUN TIME


    You can change the number of vectors (drag the bar up and down),
      drag each vector (starting position, length, or direction)
    Click play to add those vectors automatically.
    Click "showsum" to view vector for the sum of those vectors.


    Registed user can get files related to this applet for offline access.
    If java program did not show up, please download and install latest Java RUN TIME
    « Last Edit: May 05, 2008, 06:59:46 PM by Fu-Kwun Hwang » Logged
    Ahmad
    Newbie
    *
    Posts: 1


    « Reply #4 on: October 23, 2005, 12:36:07 AM »

    Hi can i have the source code of the first applet
    [/b]
    Logged
    repsol_23
    Newbie
    *
    Posts: 2


    « Reply #5 on: November 13, 2005, 01:31:25 PM »

    I am a graduate student at New Mexico State University working on my PhD in Physics Education. I just came across your site and wanted to just make a comment. I found this site GREAT and I am sure there is a number of applets that you have created that I would like to make use of. I hope that this will be okay with you since you are the author of the applets. I have tried to make my own but have had some trouble getting them to function properly.

    Thanks
    Logged
    Fu-Kwun Hwang
    Administrator
    Hero Member
    *****
    Posts: 1031



    WWW
    « Reply #6 on: November 14, 2005, 09:49:41 AM »

    You are welcomed to use our java applets for non-profit educational purpose.
    You will be able to get files related to any java applets at our web site
    if you are a registered user at http://www.phy.ntnu.edu.tw/ntnujava/
    Just look for a button(with label: GET APPLET FILES) at the end of the first java applet message
    (You need to login to the forum).
    If you click the button, files related to that applet will be sent to your email account automatically.

    Fu-Kwun Hwang
    Logged
    repsol_23
    Newbie
    *
    Posts: 2


    « Reply #7 on: November 16, 2005, 08:05:48 AM »

    I finally was able to get the codes sent to my email, the problem was in the security that our university uses. But now, I am having some other issues. I unzipped the files to my computer and when I open them they look all garbled. The graphs and animations work perfectly fine, but the letters look like a bunch of gibberish. Is this something to do with the files or am I doing something incorrectly? I was hoping to just extract the vectors animation and write them into a practice quiz that I am working on but am unsure of what the code is due to the weird lettering?
    Logged
    Fu-Kwun Hwang
    Administrator
    Hero Member
    *****
    Posts: 1031



    WWW
    « Reply #8 on: November 16, 2005, 08:48:00 AM »

    There are several html files for different language version.
    Vector.html is the english version.

    If it is still not working, may be it is due to two lines I forgot to remove in the html file
    Please remove the following two lines:

      <meta http-equiv="Content-Type" content="text/html; charset=big5">
      <meta name="GENERATOR" content="Mozilla/4.7 [en] (Win98; I) [Netscape]">

    And it should work fine.

    I have change the ZIP files so there should be no problem if you ask the ZIP file again.
    Logged
    Sivasayanth
    Newbie
    *
    Posts: 3


    « Reply #9 on: July 14, 2007, 11:10:12 AM »

    dear Fu-Kwun Hwang

    i like your simulation
    Logged

    v.sivasayanth
    kinematix_playa
    Newbie
    *
    Posts: 1


    « Reply #10 on: October 31, 2007, 06:47:16 AM »

    This simulation completes me.

    *moist*
    Logged
    Physicsmaster
    Newbie
    *
    Posts: 2


    « Reply #11 on: October 31, 2007, 07:54:40 AM »

    Fu-Kwun Hwang, you are an inspiration to us all.
    Logged
    Physicsmaster
    Newbie
    *
    Posts: 2


    « Reply #12 on: October 31, 2007, 07:27:00 PM »

    I am a school teacher and have modeled this simulation with my students and they have learned lot from this.
    Logged
    Fu-Kwun Hwang
    Administrator
    Hero Member
    *****
    Posts: 1031



    WWW
    « Reply #13 on: November 01, 2007, 12:13:25 AM »

    I am glad to hear that it is useful.  Grin
    Logged
    lookang
    Full Member
    ***
    Posts: 223


    http://sgeducation.co.nr


    WWW
    « Reply #14 on: April 15, 2008, 04:41:04 PM »

    change log.

    change the color for show component for better color association.

    change position of letters to the vector

    added tooltips for the buttons

    added autoscale for bigger view pleasure

    i will make some change , and post it back !
    Logged
    lookang
    Full Member
    ***
    Posts: 223


    http://sgeducation.co.nr


    WWW
    « Reply #15 on: May 05, 2008, 04:34:17 PM »

    i have some work in progress.

    so difficult to make a powerful applet. need a lot of time
    Logged
    lookang
    Full Member
    ***
    Posts: 223


    http://sgeducation.co.nr


    WWW
    « Reply #16 on: May 05, 2008, 05:18:13 PM »

    improving and adapting your applet to fit my teaching needs.
    Logged
    zeyad80
    Newbie
    *
    Posts: 1


    « Reply #17 on: May 31, 2008, 04:48:35 AM »

    I want to say thank you Mr Hwang

    God bless you
    Logged
    mavito
    Newbie
    *
    Posts: 3


    « Reply #18 on: July 05, 2008, 06:01:43 AM »

    Hello, professor.

    I really loved your java applets, especially the one's about mathematics (I'm student of mathematics).
    If you can, please send me java code for vector application on nidzge@gmail.com I would really be grateful.

    I have three other applets that I really like:
    1. sine and cosine (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=634.0),
    2. quadratic function (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=526.0)
    3. cross product (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=406.0).

    So I would need java codes for that examples as well, if I'm not asking too much.

    Thanks in advance.
    Logged
    Fu-Kwun Hwang
    Administrator
    Hero Member
    *****
    Posts: 1031



    WWW
    « Reply #19 on: July 05, 2008, 09:23:20 AM »

    Source code for vector addition has been sent to your email address.
    Another 3 applets were created with EJS . The EJS source code are all available when you view those web page (just below the simulation if you login to this forum). If you want to check the java code , you can run EJS and open ejs source code, Click RUN to compile it  and you will find generated java code. EJS have many pre-build library for scientific simulation. I do not need to write code line by line. I just need to define variables, provide equation / differential equations and create graphic user interface with mouse drag an drop (then set up properties --related to variables) and EJS will generate java code and compile it. If you are interested in EJS please check out related forum at this web site  or visit EJS official web site.
    Logged
    mavito
    Newbie
    *
    Posts: 3


    « Reply #20 on: July 05, 2008, 04:30:05 PM »

    Thank you sir. You have been most helpful.
    Logged
    mavito
    Newbie
    *
    Posts: 3


    « Reply #21 on: July 08, 2008, 01:53:18 AM »

    I was trying to upgrade this applet so it can do scalar product of vectors, but I haven't had any luck nor knowledge. Is there anyone who figured this out how to do it? Professor Hwang, any ideas?
    Logged
    Fu-Kwun Hwang
    Administrator
    Hero Member
    *****
    Posts: 1031



    WWW
    « Reply #22 on: July 08, 2008, 08:01:05 AM »

    Registed user can get files related to this applet for offline access.
    If java program did not show up, please download and install latest Java RUN TIME

    I just created another applet to show the scalar product between two vector A, B.

    You can drag those vectors to change location and length (orientation).



    Registed user can get files related to this applet for offline access.
    If java program did not show up, please download and install latest Java RUN TIME
    « Last Edit: July 08, 2008, 08:50:44 AM by Fu-Kwun Hwang » Logged
    Pages: [1]
      Print  
     
    Jump to:  

    Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!