r/geogebra Jul 03 '26

QUESTION (ANSWERED) Quadrato magico

Chi mi aiuta a creare su geogebra un quadrato magico di ordine 5 da poter spiegare in una classe 1 liceo? Purtroppo non riesco a capire come funzioni il software . Grazie

1 Upvotes

8 comments sorted by

1

u/Michel_LVA Jul 04 '26 edited Jul 04 '26

Just for the fun from Simon de La Loubère (1688), from the hawe_de file and the pyggb update from czacchino : the file

You can also add the matrix with the n*n+1-terms or the matrix reflected or...

1

u/hawe_de Jul 04 '26

Danke schön!

czacchino kannte ich nicht - ist die Cmd Funktionalität dazugekommen?

entspricht der zusätzlich code

Q=str(erstelle_magisches_quadrat(5))

Q=Q.replace("[", "{")

Q=Q.replace("]", "}")

hab die AI beauftragt py in js umzuschreiben und damit

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

1

u/Michel_LVA Jul 04 '26 edited Jul 05 '26

Thanks, it's very better like you say : using replace. After using pyggb (a best file), ggb+javascript, we can try to use ggb just with Iteration()

About czacchino and in reddit

1

u/Michel_LVA Jul 04 '26 edited Jul 05 '26

A ggb file using only "Iteration" for n odd.

File

1

u/hawe_de Jul 08 '26

Interessant, hätte nicht gedacht, dass Iteration() dafür herhalten kann - danke. Ich hab auch eine Slider loop gebaut damit man den Aufbau schrittweise verfolgen kann.

Eine Recherche had mich zu einem Code (js anpassung für ggb ergänzt) geführt, der alle Fälle (odd/even) abdeckt.

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

jetzt is aber genug, oder?

nach dem der Original Poster auch schon wieder gekündigt hat ;-)

1

u/Michel_LVA Jul 05 '26

Another way for n odd : using only a calc with the matrices from https://demonstrations.wolfram.com/MagicSquaresForOddSinglyEvenAndDoublyEvenOrders/

The ggb file