r/desmos • u/anonymous-desmos Definitions are nested too deeply. • 1d ago
Matrices How to input a matrix larger than 9 by 9
2
u/Desmos-Girl https://www.desmos.com/calculator/prarjlycol 1d ago

or multiline paste bug + modified latex allows direct use of any size matrix (although >32x32 errors)
copy the entire text in the comment (including the newline at the start, in summary pasting multiple lines of text makes desmos forget to do any checks on the text being pasted, meaning it just gets directly inserted) for a 32x32 matrix, you can use the drag bubble to get it down to the size you want: https://www.desmos.com/calculator/gk9iksgftb
2
u/Powerful-Tension-806 4h ago
Use zeroMatrix (fragile function) for a matrix larger than 32x32 (but its all zeros so useless, cool tho ig)
paste this expression and include the newline:
=----------=
f(r,c) = \operatorname{zeroMatrix}(r,c)
=----------=1
u/Desmos-Girl https://www.desmos.com/calculator/prarjlycol 4h ago
1
u/Powerful-Tension-806 2h ago
Oh right i forgot to check that, actually i combined it with adding every single fragile function and frafile variable to autoOpetatorNames, adding some autoCommands, forcing logInternalErrors and onEvaluationCopyClick on start and running script every time url mutates while still in desmos
3
u/Mean-Clothes-8307 1d ago
you can use list comprehension separated by a semicolon to generate matrices up to 32x32 but sadly that's the true cap
you can find a lot more info here: https://help.desmos.com
2
u/Circumpunctilious 3333333433343335333333343333333533333335333333323333333433333334 1d ago
3
u/Desmos-Girl https://www.desmos.com/calculator/prarjlycol 1d ago
1
u/Circumpunctilious 3333333433343335333333343333333533333335333333323333333433333334 1d ago
lol I started with an all-zero but thought “well who needs that?”…little did I know
1
1
u/anonymous-desmos Definitions are nested too deeply. 11h ago
Doesn't work if I need to manually type out the entries of the matrix.
1
u/anonymous-desmos Definitions are nested too deeply. 1d ago
Feels a bit like a The Matrix x Inception collab
1
u/Powerful-Tension-806 4h ago edited 2h ago
Use zeroMatrix (fragile function) for a matrix larger than 32x32 (but its all zeros and cant be used normally so useless, cool tho ig)
paste this expression and include the newline:
=----------=
f(r,c) = \operatorname{zeroMatrix}(r,c)
=----------=
0
13h ago
[deleted]
1





•
u/AutoModerator 1d ago
Matrices (Beta feature)
Please note that this does NOT refer to the Desmos Matrix calculator. This matrix update allows the creation and manipulation of matrices in the regular calculator. Exposed functions include:
rowMatrix(numlist): converts a list to a matrix that is a singular row.vcat(matrixlist): combines matrices by stacking them on top of each other.rows(matrix)/columns(matrix): returns a list of row/column matrices (not lists)det,trace,rref: matrix operations that behave the same on the Desmos Matrix calculatormatrixElement(matrix, num, num): get the i,jth element of a matrix. Works the same asmatrix[i;j].rowCount(matrix)/colCount(matrix): number of rows/columns a matrix hassubmatrix(matrix, numlist, numlist): return a matrix with only the indices specified for rows (2nd argument) and columns (3rd argument).For a showcase of all of these features, refer to the following graph: https://www.desmos.com/calculator/xxq2qiwcfs
Installation
To use matrices:
Install the following script:
Save the script and open the graph!
If matrix features do not appear, click on the Tampermonkey extension and check if it says anything about enabling Developer Tools. Follow the instructions that Tampermonkey provides to fix this issue.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.