Vandermonde matrix: how to keep the power layout?

hjbortol shared this question 1 year ago
Answered

I'm trying to define a Vandermonde matrix (https://en.wikipedia.org/wi...) in CAS:


Sequence(Sequence(i^j, j, 0, 9), i, 1, 10)


CAS expands i^j so, for instance, 2^3 is expanded to 8. I would like to keep the format 2^3.


I tried a matrix of texts instead:


Sequence(Sequence(Text[i + "^" + j], j, 0, 9), i, 1, 10)


But this command returns an array of "?".

How to generate a Vandermonde matrix (numerical or as text) keeping the power layout?

Comments (3)

photo
1

How about

TableText(Sequence(Sequence(Text[i + "^" + j], j, 0, 9), i, 1, 10),"()")

photo
1

(in the Algebra View)

photo
1

Oh, thank you!

© 2022 International GeoGebra Institute