[size=150]Then we need to define a new tool in GeoGebra to apply recursion.[/size]
[b][size=200][size=150]In GeoGebra Classic 5, desktop version:[/size][/size][/b]
Menu > Tools > Create Tool[br][br][img]https://www.geogebra.org/resource/m823cz5g/bxwRsS78r9O1FIW7/material-m823cz5g.png[/img]
Output Objects > Select [b]ListOutPut[br][br][/b][img]https://www.geogebra.org/resource/fwhvej9m/NWma3j352h0XqqAG/material-fwhvej9m.png[/img][br]
Input Objects > Select original [b]segment[br][/b][br][img]https://www.geogebra.org/resource/gsddgtvd/b7wdgyc2y9vlcBlq/material-gsddgtvd.png[/img][br][b][br][/b]Click on [b]Next[/b][b][br][/b][br]
Name the tool and command. Add help, if needed.[br][br][img]https://www.geogebra.org/resource/aq6gdvua/fbITJlHbfXqEuLrX/material-aq6gdvua.png[/img][br][br]Click on [b]Finish [/b]to create tool.
[b][size=150]In [url=https://www.geogebra.org/classic]GeoGebra classic[/url] online version, or also GeoGebra 6 for desktop:[/size][/b]
[img]https://www.geogebra.org/resource/n9mt9zs6/h05dBmGXbnp59wou/material-n9mt9zs6.png[/img]
[img]https://www.geogebra.org/resource/wkephd7j/O7yQOoQydAky5x29/material-wkephd7j.png[/img]
[img]https://www.geogebra.org/resource/dmpaerwx/RYW01w0AXNaT4e5m/material-dmpaerwx.png[/img]
[img]https://www.geogebra.org/resource/sefdtmbu/qetwcmiB7lY1VrzQ/material-sefdtmbu.png[/img]
[img]https://www.geogebra.org/resource/fwnu4uhs/Kt3M6Lx0S5qvhsys/material-fwnu4uhs.png[/img]