How to show value of other quantity in caption?

Hayat shared this question 2 months ago
Answered

I draw and point(A) line segment(m).

I want length of line segment in caption of point.

$\text{A = %v}$ gives me the value of point itself. How to add value of line segment.

Comments (5)

photo
1

B = (0, 2)
C = (3, 0)
f = Segment(B, C)
A = Point( f )
text1 = Text("" + f, (x(A) + 0.1, y(A) + 0.1))

photo
1

another possibility with SetCaption()-script

photo
1

Thanks for the reply rami.

photo
1

Is the same way as in the example SetCaption01.

SetCaption(a, "..."m"..."theta"...") sript onUpdate m

photo
1

yes rami thanks for the support as always.

photo
© 2019 International GeoGebra Institute