Properties
Category
English
Similar Topics
Statistics
Comments
3
Participants
4
Subscribers
29
Votes
1
Views
150
Share
How to make a line with more than two points?
Answered
I try to make a function where I make a line with more than two points, the problem is that I do not know what it would be like for a third point to be related to the line.
doing it throug geogebra is something like this
A = (0, 4)
B = (2, 2)
h = (A, B)
C = Point (f) // This is what I do not know how to do it using javascript code
> (1, 1)
 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
© 2018 International GeoGebra Institute
Hi,
You may try
ggbApplet.evalCommand("C=Point(f)");
in javascript.
Mathieu
maybe you are looking for this:
A= (0,4)
B= (2,2)
h = Line(A, B)
a is a slider or a fixvalue and is the xvalue of point C
then give as JSScript onUpdate in object a
ggbApplet.evalCommand("C=(a, h(a))")
.
Note: for me is not clear what is here the added value in JS
you can define C in the algebraview with C=(a, h(a))
pienso que más bien quiere C=midpoint(A,B) pero él no lo sabe
y que luego preguntará por sequence(A+k/n (BA),k,1,n1) pero todavía no lo sabe
Comments have been locked on this page!