I need some help trying to make automatic geometric constructions

Arturo shared this question 5 months ago
Answered

Greetings, I hope the community could help me with this project I'm doing,


I'm trying to create a nxn grid where at the center of each square of 1x1 there must be a number which is calculated using congruence mod n.


My questions are as follow:

1.- Can I create ,given a number n from an input box, any number of constructions using that number? For example if I enter 3 in the input box, it will create 3 lines, circles, etc.


2.- It is possible to create an animation after the calculations of the n^2 have been calculated? That is the animations doesn't have a set number of steps until the user puts the information in an input box.

I had the idea of using scripts or the javascript integration but, I can't see any command for creating objects from the scripts rather than only manipulate them.

Best Answer
photo

The grid is an easy one using the Sequence command. The same way you can create points and texts positioned at defined positions, but your description is not very concrete.

chris

Files: grid.ggb

Comments (3)

photo
1

The grid is an easy one using the Sequence command. The same way you can create points and texts positioned at defined positions, but your description is not very concrete.

chris

Files: grid.ggb
photo
1

This is exactly what I have been looking for, thank you very much you are savior, I'm sorry for not looking enough into all the commands geogebra has, I thought it could be done trough scripting but with what you have said It's a lot easier.


Can I store the results of the sequence command in order to use them for the next part of doing an animation where I put them at the center of each square?


Thank you for everything Chris.

photo
1

It's not clear for me what you mean, but you might as well use a similar sequence command to create the points at the center of the squares. Note that in fact there are no squares, just lines.

Sequence(Sequence((.5+nn,.5+mm), nn, 0, n-1), mm, 0, n-1)

photo
© 2021 International GeoGebra Institute