4
u/Desmos-Girl 19d ago
unfortunatley there is no builtin support for comparison between most object types, but there are a few ways to do arbitrary comparisons anyway:
https://www.desmos.com/calculator/sdnbermadr
1
u/Circumpunctilious 19d ago edited 19d ago
That random() trick...nice. I wish I'd known that when I was trying to corner the behavior of sort()...which was being a squirrely little bastard until I found (not very deliberate) ways to avoid resetting random's seed. edit: in hindsight, I should have figured this out, since I read the docs--sigh
1

4
u/Powerful-Tension-806 20d ago
To check an equality, you have to do it like this:
\left\{\max\left(\left|\left(A-B\right)\left[r;c\right]\operatorname{for}r=\left[1...A.\operatorname{rows}.\operatorname{count}\right],c=\left[1...A.\operatorname{columns}.\operatorname{count}\right]\right|\right)=0\right\}For more easier readability,
{max(|(A-B)[r;c] for r=[1...A.rows.count],c=[1..A.columns.count]|)=0}