Live data from Hacker News

Matrix Calculus

matrixcalculus.org

11–20 of 53 posts

Re: Matrix Calculus

#12
post #9
post #4

Along the same lines, does there exist an "algebra checker" that could, say, take in two successive lines of latex, with perhaps a hint of how to get from one to the other, and confirm that there are no algebra errors?

I think there used to be a open source tool called Maxima or something that would simplify equations. Havent used it for the last 10 years and never used it much anyway.

I can recommended Maxima too. It's useful for checking for obvious errors and for simplifying expressions. It can be used for more advanced stuff, but I found it has a steep learning curve.

Re: Matrix Calculus

#14
post #4

Along the same lines, does there exist an "algebra checker" that could, say, take in two successive lines of latex, with perhaps a hint of how to get from one to the other, and confirm that there are no algebra errors?

SymPy does not take Latex as input, but it has symbolic equivalence checkers.

Methods are highly heuristic, and some languages (all expressions with,say, \pi, and exp function, or something similar) are in general undecidable.

Re: Matrix Calculus

#16

I can see that x' means $x^T$ (x transposed) but it's not mentioned in the documentation — where does this notation come from?

From http://mathworld.wolfram.com/Transpose.html :

Unfortunately, several other notations are commonly used, as summarized in the following table. The notation Aᵀ is used in this work.

Aᵀ — This work; Golub and Van Loan (1996), Strang (1988)

à — Arfken (1985, p. 201), Griffiths (1987, p. 223)

A' — Ayres (1962, p. 11), Courant and Hilbert (1989, p. 9)

Re: Matrix Calculus

#17
post #4

Along the same lines, does there exist an "algebra checker" that could, say, take in two successive lines of latex, with perhaps a hint of how to get from one to the other, and confirm that there are no algebra errors?

Mathematica can probably do that

Correct:

    Implies[x^2 + 2 x + 1 == 0, x == -1] // FullSimplify

Re: Matrix Calculus

#18

I can see that x' means $x^T$ (x transposed) but it's not mentioned in the documentation — where does this notation come from?

Matlab/octave

With caveat that A' is Hermitian transpose (transpose + complex conjugate) when A has complex entities, and you need A.' if you want the real transpose. For matrix A with real coefficients both operations are the same.

Re: Matrix Calculus

#19
post #4

Along the same lines, does there exist an "algebra checker" that could, say, take in two successive lines of latex, with perhaps a hint of how to get from one to the other, and confirm that there are no algebra errors?

I'm with cosmic_ape regarding the recommendation for SymPy. Write the two lines as symbolic expressions `expr1` and `expr2` then run `simplify(expr1-expr2)` to check if the answer is zero.

If you want to start with LaTeX then the parser from this library might be useful: https://github.com/Khan/KAS

Post reply on HN