NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
September 17, 2014, 02:22:43 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
"Nothing in life is to be feared, it is only to be understood." ..."Marie Curie 1867-1934, Polish born French Physicist, Twice Nobel Prize Winner- Physics and Chemistry)"
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: relations between displacement and velocity X(t)/V(t)  (Read 26568 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3054



WWW
«
Embed this message
on: May 23, 2005, 01: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
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #1 on: January 14, 2008, 11:04:02 pm » posted from:Mountain View,California,United States

hihi prof. Smiley

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 Smiley


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 14, 2008, 11:18:30 pm by lookang » Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3054



WWW
«
Embed this message
Reply #2 on: January 14, 2008, 11:45:01 pm »

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)
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #3 on: January 15, 2008, 10:41:49 am » posted from:SINGAPORE,SINGAPORE,SINGAPORE

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, 04:20:00 pm by lookang » Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3054



WWW
«
Embed this message
Reply #4 on: January 15, 2008, 03:13:59 pm » posted from:Taipei,T\'ai-pei,Taiwan

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.
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #5 on: January 15, 2008, 04:22:28 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

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 ? Smiley

i also want CC but the Singapore version not out yet.
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3054



WWW
«
Embed this message
Reply #6 on: January 15, 2008, 04:25:04 pm » posted from:Taipei,T\'ai-pei,Taiwan

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!
Logged
benkwang
Newbie
*
Offline Offline

Posts: 2

«
Embed this message
Reply #7 on: January 15, 2008, 04:28:18 pm »

Hi,
Can we view the .java file? I saw it generated but it disappears..
Thanks
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #8 on: January 15, 2008, 04:34:02 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

wow!! you can edit the php code, i not at that level yet  Grin

benkwang is my frd, trying to get him interested in EJS hahahah
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3054



WWW
«
Embed this message
Reply #9 on: January 15, 2008, 04:45:46 pm » posted from:Taipei,T\'ai-pei,Taiwan

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.
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #10 on: February 01, 2008, 03:35:26 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

cool, thanks!
Quote
Almost at the end: un-check "remove java files after compiling" option.
Logged
Pages: [1]   Go Up
  Print  
"Nothing in life is to be feared, it is only to be understood." ..."Marie Curie 1867-1934, Polish born French Physicist, Twice Nobel Prize Winner- Physics and Chemistry)"
 
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.17 seconds with 22 queries.since 2011/06/15