Author Topic: relations between displacement and velocity X(t)/V(t)  (Read 40046 times)

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
relations between displacement and velocity X(t)/V(t)
« on: May 23, 2005, 02:55:46 pm »
Registed user can get files related to this applet for offline access.
Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
If java program did not show up, please download and install latest Java RUN TIME

Drag the blue dot on the left side to change its initial position.
Drag the blue dots in the V-t disgram to set up velocity as function of time: v(t)
Press play to watch how the particle moves: x(t)

You can change to another V(t) setting when the animation paused.
(Set up another V(t) relation, press "initialize" then press "play" to for another run)
The simulation will keep up to 11 different traces.


Registed user can get files related to this applet for offline access.
Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
If java program did not show up, please download and install latest Java RUN TIME

lookang

  • Hero Member
  • *****
  • Posts: 1774
  • http://weelookang.blogspot.com
    • lookang web
Re: relations between displacement and velocity X(t)/V(t)
« Reply #1 on: January 15, 2008, 12:04:02 am »
hihi prof. :)

long time no chat!

i am trying to collaborate with you, taking your applet as the foundation to meet these objectives

 (f) *deduce from the shape of a distance-time graph when a body is:
(i) at rest
(ii) moving with uniform speed
(iii) moving with non-uniform speed

Question:

how to make the 10 dots on the v - t graph to snap to integer values ?


i will see what i can do soon :)


may i have your permission to modify your existing codes ?

i will of course post back here to give back to the community here, but can i use it to share with others in Singapore officially, as a collaborated work provide acknowledgement is made of the here the source?
« Last Edit: January 15, 2008, 12:18:30 am by lookang »

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: relations between displacement and velocity X(t)/V(t)
« Reply #2 on: January 15, 2008, 12:45:01 am »
You are always welcomed to modify any ejs source code in this web site for your own use.
That is the purpose why I make all the ejs source available to users.
Because use might need to change it to their own need.

I do not fully understand what do you mean by:
 make the 10 dots on the v - t graph to snap to integer values ?

But you can use
intv=(int)v; // intv is an integer, to get the integer value for v;
doublev1= floor(v) ;
doublev2=ceil(v);
to get the closest integer value but in the variable type of double.

double v3= (int)(v+0.5)*1.0; // or may be something like this! (if v>0)

lookang

  • Hero Member
  • *****
  • Posts: 1774
  • http://weelookang.blogspot.com
    • lookang web
Re: relations between displacement and velocity X(t)/V(t)
« Reply #3 on: January 15, 2008, 11:41:49 am »
i understand the intent of your actions to share and help others like me to learn something we find personal meaningful, like making applets for our students.

but i plan to submit the applets made with acknowledgement (prof. hwang and prof. paco) in this website under http://www.moe.gov.sg/edumall/tl/digital_resources/physics.htm

you have some requirements before allowing organization to edit and add on to your source codes?

is your codes copyright or do you apply creative common license ?


these kind of question will turn up so do you have creative common license ?

http://creativecommons.org/license/
Allow commercial uses of your work?
Allow modifications of your work?
With a Creative Commons license, you keep your copyright but allow people to copy and distribute your work provided they give you credit — and only on the conditions you specify here.

thanks!
« Last Edit: January 15, 2008, 05:20:00 pm by lookang »

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: relations between displacement and velocity X(t)/V(t)
« Reply #4 on: January 15, 2008, 04:13:59 pm »
Thank you for your information. I just add CCL license to all my applet.
All the ejs files [in category Easy Java Simulations (2001- ) ] are free for all cases provided they give me proper credit,
 but java applets I have created before 2001 are free for non-commercial use [in category JDK1.0.2 simulations (1996-2001) ].

You are welcomed to post our applets or modified applets on other server, as long as you add link back to the original web  url or give us proper credit.

lookang

  • Hero Member
  • *****
  • Posts: 1774
  • http://weelookang.blogspot.com
    • lookang web
Re: relations between displacement and velocity X(t)/V(t)
« Reply #5 on: January 15, 2008, 05:22:28 pm »
wow!! you work fast!!!

by the way, how you add the code for the CC on every page so quickly?

you ran a script? or manually click and modify the posts ? :)

i also want CC but the Singapore version not out yet.

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: relations between displacement and velocity X(t)/V(t)
« Reply #6 on: January 15, 2008, 05:25:04 pm »
Because all the web pages are generated by php code. So it is easy to add extra information to original message.
I just found out, wrong images were added to the message. This one should not have a "nc" mark.
It will be corrected soon!

benkwang

  • Newbie
  • *
  • Posts: 2
Re: relations between displacement and velocity X(t)/V(t)
« Reply #7 on: January 15, 2008, 05:28:18 pm »
Hi,
Can we view the .java file? I saw it generated but it disappears..
Thanks

lookang

  • Hero Member
  • *****
  • Posts: 1774
  • http://weelookang.blogspot.com
    • lookang web
Re: relations between displacement and velocity X(t)/V(t)
« Reply #8 on: January 15, 2008, 05:34:02 pm »
wow!! you can edit the php code, i not at that level yet  ;D

benkwang is my frd, trying to get him interested in EJS hahahah

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: relations between displacement and velocity X(t)/V(t)
« Reply #9 on: January 15, 2008, 05:45:46 pm »
Hi,
Can we view the .java file? I saw it generated but it disappears..
Thanks

If you did not find .java code under the generated directory (subdirectory under Simulations with the same name as your ejs source code plus ".app"), you need to change the ejs option.
Click the "Edit option" button (the one before the last button at the right edge)
You will find a popup window.  Almost at the end: un-check "remove java files after compiling" option.
Then, you should be able to find two generated .java files for each ejs source if you re-compiled the ejs source again.

lookang

  • Hero Member
  • *****
  • Posts: 1774
  • http://weelookang.blogspot.com
    • lookang web
Re: relations between displacement and velocity X(t)/V(t)
« Reply #10 on: February 01, 2008, 04:35:26 pm »
cool, thanks!
Quote
Almost at the end: un-check "remove java files after compiling" option.