Help to create a visual for "squaring of integers"

michelreed shared this question 6 years ago
Answered

I have watched the "visual of multiplication" (https://www.youtube.com/wat...) and tried to change it a bit to show the squaring of integers but I got lost trying to make the row slider dependent on the column slider.. thanks for any suggestions.

Comments (4)

photo
1

Hi,


If you want just to make the row slider dependent on the column slider :

in script OnUpDate of row slider :

SetValue[column,row]

in script OnUpDate of column slider :

SetValue[row,column]


without script :

use only one slider n, and use command :

Sequence[Sequence[Polygon[(i - 1, j), (i, j), 4], i, 1, n], j, 0, n - 1]


...

photo
1

thanks sir, i'll give it a try and let you know

photo
1

it worked perfectly, thanks. any idea of how to code a 3rd slider to show Sum of n terms? (1^2+2^2+3^2...+n^2)

photo
1

Go to View ... Algebra or press Ctrl+Shift+A.


In the Input Bar, type "sumofsquares=sum[sequence[Columns]^2]"

In the Algebra Window under "Numbers", you'll see sumofsquares. Drag sumofsquares into the main window, Graphics View 1.

© 2021 International GeoGebra Institute