Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matrix exponentiation? #415

Open
Beakerboy opened this issue Apr 29, 2021 · 2 comments
Open

Matrix exponentiation? #415

Beakerboy opened this issue Apr 29, 2021 · 2 comments

Comments

@Beakerboy
Copy link
Contributor

I was watching a 3blue1brown video the other day where he was discussing raising e to the power of a matrix. While at first glance it does not make sense, apparently it's shorthand for applying the Taylor series expansion of eˣ to a matrix:
1+x/1! + x²/2! + x³/3! +... where x is a matrix in this case. Is this a feature worth implementing?

@markrogoyski
Copy link
Owner

Raising a matrix to a power seems straightforward (just multiplication with itself) and might be useful (maybe?). For the Taylor series, unless you have an urgent need to model the on-again-off-again romance of some couple that has the same romantic tendencies of cartoon mathematical symbols, I'm still not sure I understand what it is used for. But if you want to do it and it's well tested, sure, let's add it.

I refactored the Matrix classes quite a bit in the 2.0 branch. I'd recommend waiting until I release that before submitting any new PRs. I will try to release it soon.

@Beakerboy
Copy link
Contributor Author

Beakerboy commented Apr 30, 2021

Wikipedia has a pretty large article for a math topic that I never knew about. (https://en.wikipedia.org/wiki/Matrix_exponential). It sounds like convergence might be slow when using the Taylor Series, but there are other tricks. Could be fun to try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants