Pascal's Triangle

leonardozanatta shared this question 4 months ago
Answered

Hello i need help.

My triangle is left aligned, i need it to be centered, with the first line on the center os my construction and the other lines symmetrical to the first one.

https://www.geogebra.org/gr...

Comments (2)

photo
2

See attachment.

The basic principle is simple.

Create a point for each number in a nested list and assign the Pascal values to each of these points.

.AND:

The assignment to the point must be centered. That's a bit more complicated:

Centered use the command TableText().

All table element always has the same dimension and this dimension is the same as in the object Sample (2 lines and the first line has 10 blanks there are longer then the longest value)

In Sample, the vector for moving the right-justified text is formed. Because all elements have the same dimension as Sample the move vector is always the same (as in Sample). It is used when assigning point and value (in l2)

.

Extension possibility: consideration of pixel sizes and zoom.

photo
1

Thank you very much, you help me a lot.

© 2020 International GeoGebra Institute