Properties
Category
English
Similar Topics
Statistics
Comments
7
Participants
4
Subscribers
4
Votes
1
Views
118
Share
How to create a table of values from an animation
Answered
Greetings!
Could anybody help me how to create a table of values based on position of a point that is animating.
My sense is that I would like to do something along the lines of:
* Create a line segment AB that is 10 units
* Animate a point P (increasing once) from A to B
* For point P, in Scripting (On update), use a command of the form (below) for each distance from 1 to 10:
If(Distance(P,B)=5,<<insert instruction to record the value of a variable that is linked to P in the next line of a table>> )
Any suggestions?
Stay safe and healthy!
 GeoGebra
 Help
 Partners

Contact us
 Feedback & Questions
 This email address is being protected from spambots. You need JavaScript enabled to view it.
 +43 677 6137 2693
© 2020 International GeoGebra Institute
See the annex for one of the possible solutions.
I used a fundamentally different approach:
The table and the graphic are completely independent regarding the values (exception: constants in l1 or T_{Area}. The animation is done with the point P_n in the graphic and in the table with the PosP_n derived from P_n.
The graphic follows (with P_n and P_1) a list (l1) of points (along the diagonal through the rectangles). These correspond to the root of normalized area (maxArea =1) on the Segment(A,B). The calculation of list l1 is the central approach of this solution.
The values in the graphic (not in the table) are calculated from the ratio of the two rectangles (q_1, q_n). The lengths in Sx, Cx and the area in Aq_n
open spreadsheet
right click in the point
trace to spreadsheet
See the annex for one of the possible solutions.
I used a fundamentally different approach:
The table and the graphic are completely independent regarding the values (exception: constants in l1 or T_{Area}. The animation is done with the point P_n in the graphic and in the table with the PosP_n derived from P_n.
The graphic follows (with P_n and P_1) a list (l1) of points (along the diagonal through the rectangles). These correspond to the root of normalized area (maxArea =1) on the Segment(A,B). The calculation of list l1 is the central approach of this solution.
The values in the graphic (not in the table) are calculated from the ratio of the two rectangles (q_1, q_n). The lengths in Sx, Cx and the area in Aq_n
Comments have been locked on this page!