Sequence Syntax

BEMath shared this question 3 months ago
Answered

I wish to find the distances between a selection of points, A_1 through A_100, and a polyline, f. How should I correct this code?


Sequence(Distance(A_{n}, f), n, 1, 100)


Thanks!

Comments (3)

photo
1

Sequence(Distance(Object("A_{"+n+"}"), f), n, 2, 3)

photo
1

an alternative concept for the names of the points

and thus an alternative solution.

photo
1

Thanks to Rami and Noel for exceptional answers! Both are very clever and leave the door open to other options! Thank you both! :-D

© 2020 International GeoGebra Institute