Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2010-05-12 12:47:59

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Matrix Calculator

A bit primitive, but what do you think? Works?

Matrix Calculator


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#2 2010-05-12 14:34:09

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Matrix Calculator

Hi MathsisFun;

Cool! Can you get it to output in latex if I want it that way? Also how about in addition to the sliders you have size input boxes too.

Here is a problem,

for this one I am getting.

The det(A) is 0 not 3.199999999

Also because the determinant is 0 this matrix is singular, no inverse.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#3 2010-05-13 04:56:28

mathsyperson
Moderator
Registered: 2005-06-22
Posts: 4,900

Re: Matrix Calculator

Nice page!

Two things:
- When you click on the cell of a matrix, I think it'd be good if the current contents got highlighted so you can type over them.

- When a result has a big negative number (big in size, so -0.00001 would count) then trying to transcribe the result over to a matrix makes that cell only display "-". The value is stored properly though, so it's just a visual thing.


Why did the vector cross the road?
It wanted to be normal.

Offline

#4 2010-05-13 05:14:47

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Matrix Calculator

Hi MathsisFun;

I notice you can directly edit the answer matrix but you cannot store it back into A or B.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#5 2010-05-13 09:40:23

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: Matrix Calculator

Thanks for the feedback! It may take me a while to work on it. First up: the det(A) bug.


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#6 2010-05-13 16:58:19

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: Matrix Calculator

OK, got most of your requests done I think:

* determinant now right for "1 2 3 ..." matrix
* there is now a "latex" option for output. Should work inside a math tag
* use Tab key: it selects entire next cell
* input cells text is now on one line (so "-" should stay attached to text)
* output is now not editable (no time at the moment to handle "parsing" text input ... maybe in future)

(use refresh and look for v0.52 at bottom)


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#7 2010-05-13 17:33:55

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Matrix Calculator

Hi MathsisFun;

I am happy. Worked fine. Tried it out on inverting the 5 x 5 Hilbert matrix, this has a condition number of around 500 000 to 1 000 000 ( ratio between the largest and smallest eigenvalue). Numerical stability of your method to invert wasn't bad. Incidentally it got the determinant of the the 5 x 5 Hilbert matrix correct.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#8 2010-05-13 21:12:27

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: Matrix Calculator

That's a mean matrix.


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#9 2010-05-13 22:38:07

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Matrix Calculator

Funny thing is I have never seen them used in any application other than for proving how hard they are to invert.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#10 2010-05-19 13:48:56

simron
Real Member
Registered: 2006-10-07
Posts: 237

Re: Matrix Calculator

The only complaint I can think of probably doesn't apply to many people here, but if both matrices are 10x10, then B gets cut off.


Linux FTW

Offline

#11 2015-10-26 09:03:53

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: Matrix Calculator

Now rewritten in JavaScript:  Matrix Calculator

Would be nice if you guys could check it for errors.

(Also have not converted the Latex formatting yet, sorry.)


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#12 2015-10-26 13:46:49

Jai Ganesh
Administrator
Registered: 2005-06-28
Posts: 48,384

Re: Matrix Calculator

Hi MathsIsFun,

JavaScript:  Matrix Calculator : I checked Matrix Calculator of A +B, A - B, AB, det(A), and inv (A). Works fine, MathsIsFun!


It appears to me that if one wants to make progress in mathematics, one should study the masters and not the pupils. - Niels Henrik Abel.

Nothing is better than reading and gaining more and more knowledge - Stephen William Hawking.

Offline

#13 2015-10-26 18:09:28

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Matrix Calculator

Hi;

Nifty little calculator!


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

Board footer

Powered by FluxBB