How to label the length of segments and vectors sequential at the midpoint?

jospercomp shared this question 3 months ago
Answered

I create vectors and segments in sequence with the sequence command but the object does not allow the elements to be labeled in the sequence command. So how could you label the length each segment or vector in the array of segments and vectors at each of its midpoints.

https://www.geogebra.org/m/tbzzgfcz

Best Answer
photo

See attachment (sample for l4).

Note: it does not work using the vectors in l4 (tested with ggb5.0, maybe a bug). Use l2 instead.

Comments (3)

photo
1

How about something like Sequence(Text( <Object>, <Point> ), ...

photo
2

See attachment (sample for l4).

Note: it does not work using the vectors in l4 (tested with ggb5.0, maybe a bug). Use l2 instead.

photo
1

Thank you!!!

Sequence(Text("" + (Length(Segment(l2(n), l2(n + 1)))), (-0.9, 0.2) + Midpoint(l2(n), l2(n + 1))), n, 1, Length(l2) - 1)

photo
© 2020 International GeoGebra Institute