APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

how to use the EJSS histogram for counting of a value say theta for Rutherford angle of deflection? post and replies

Return to the how to use the EJSS histogram for counting of a value say theta for Rutherford angle of deflection? thread
Login to post to this thread

how to use the EJSS histogram for counting of a value say theta for Rutherford angle of deflection?
lookang Avatar
lookang
222 Posts

Dear Prof Paco,

i am able to use the histogram in JavaScript flavor using the input as variable i defined as "theta". i am surprised that the y axis is counting the time value of theta, meaning if theta = 0.5 for t = 3.0 to 4.8 s, the histogram draws theta = 0.5 with a bin and the height of that bin is t = 1.8 s the duration of the value of which theta is at.

how do i make EJSS count it as a single value N =1?

the code didn't work //_view.histogram.append(theta);

attached is my source code example of Rutherford experiment, an original idea for a EJSS that i just created yesterday.

http://iwant2study.org/ospsg/index.php/interactive-resources/physics/06-quantum-physics/02-nuclear/324-rutherford-s-atomic-model

 

thank you very much for making EJSS my number one choice modeling tool!

Post edited December 17, 2015 at 8:14 PM EST.

Attached File: ejss_src_ruthorford.zip


OSP@SG blog
OSP@SG Digital Library

Replies to how to use the EJSS histogram for counting of a value say theta for Rutherford angle of deflection?

Re: how to use the EJSS histogram for counting of a value say theta for Rutherford angle of deflection? -
lookang Avatar
lookang
222 Posts

oh, i managed to solved it by introducing a histogramcounter for the active state of the histogram.

but now there a default value theta=0, N=1, at the beginning of the simulation, which i speculate is a bug in ejss?

please advise how to remove it?

the source can be download here

http://iwant2study.org/ospsg/index.php/interactive-resources/physics/06-quantum-physics/02-nuclear/324-rutherford-s-atomic-model

 

thanks!

Post edited December 20, 2015 at 8:57 PM EST.

Post edited December 20, 2015 at 8:58 PM EST.

Attached File: 2015-12-21_0952.png


OSP@SG blog
OSP@SG Digital Library


OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book