jiggzson / nerdamer

a symbolic math expression evaluator for javascript
http://www.nerdamer.com
MIT License
517 stars 82 forks source link

Matrix scalar multiplication does not work #538

Closed FredericMrozinski closed 4 years ago

FredericMrozinski commented 4 years ago

matrix([1,2],[3,4])*2 gives the result matrix([1,2],[3,4]) instead of matrix([2,4],[6,8]) (at least in the website demo version). Likewise, matrix([1,2],[3,4])^2 or matrix([1,2],[3,4])^(-1) does not alter the matrix, either.

(PS: Sorry for reporting so much, I just love Nerdamer and hope that I can contribute a little through that :-) )

jiggzson commented 4 years ago

@FredericMrozinski, I suspect that scalar operations with matrices was never completed. I'll complete those since this should be fairly easy. Also, you're not over-reporting at all. In fact, thank you for doing so. I really appreciate that.

jiggzson commented 4 years ago

@FredericMrozinski, fixed.