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

Easy Java Simulations (2001- ) => Questions related to EJS => Topic started by: ahmedelshfie on November 24, 2010, 12:54:00 am



Title: Funcation mathmatic
Post by: ahmedelshfie on November 24, 2010, 12:54:00 am
Hello prof
I need help about applet i try to mix your code in applet to me get what applet i want but
No have succeed, however i need your help to applet become like flash applet that i will attach.
I will attach flash applet and i will attach too  the applet jar file to you watch what i done and what need
More to become like in flash SWF movie that i attach.
PLS: i will attach SWF applet is by portages language, and i will attach jar file to you see what i different and how you can help me
And please version of flash is old so i will change path of flash applet from exe to swf just for accept attach after you download and change path again from swf to exe for work with you,
Just change last 3 letters from swf to exe and will work normally.
In flash applet 3 cases sin,cosin,tangente, you need to choose what case you want after down you will find 4 words First one is Iniciar=play by english so click inciar applet will work
What i have problem to done is last case name is tangente and grafic of applet not right because must be mixmum 1 and minimum -1
Please Waiting Answer
Thanks


Title: Re: Funcation mathmatic
Post by: ahmedelshfie on November 25, 2010, 06:00:59 am
Hello prof
I tried mix your design in applet is relations between simple harmonic motion and circular motion (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=348.0) to me design mathematic applet Sine, Cosine and Tangent have example design by walter fendt
The URL http://www.walter-fendt.de/m14e/sincostan_e.htm
I attach picture to applet that design by walter fendt  i try design the same applet by EJS using your code,
But have many wrongs, could you help me to me design the applet please.
I also attach the EJS jar applet that i done for you can see my wrongs.
I change language from portages to English in second jar file
Thanks


Title: Re: Funcation mathmatic
Post by: lookang on November 25, 2010, 10:55:08 pm
closer now.
it is possible now


Title: Re: Funcation mathmatic
Post by: ahmedelshfie on November 26, 2010, 06:57:14 am
I agree is very close,but tangente is seems move fast and the graphic is not totally right,
Because The max must be 1 and the minimum -1 but the line of sin,cosine and tangente not give this value.
Prof Hwang:
How i make tangente and graphic right?
What code i need to add to speed of tangente and to graphic become completely right.
thanks    


Title: Re: Funcation mathmatic
Post by: Fu-Kwun Hwang on November 26, 2010, 03:54:45 pm
Here is another version I just created!
You can drag the blue arrow to change angle when the state is paused.


Title: Re: Funcation mathmatic
Post by: ahmedelshfie on November 26, 2010, 07:21:30 pm
No comment,excellent applet prof.
I look to code of applet to see what different,however i find many things different and not complete.
Thanks for help  :)
 


Title: Re: Funcation mathmatic
Post by: lookang on November 27, 2010, 09:14:09 pm
simply awesome!
good job guys  ;D