Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline agungsetyod  
#1 Posted : 06 November 2014 10:24:32(UTC)
agungsetyod

Rank: Newbie

Groups: Registered
Joined: 06/11/2014(UTC)
Posts: 2

I calculate determinant of a 6x6 matrix with smath and Excel, but the results are different. Whats the problem?
File Attachment(s):
Question1.sm (4kb) downloaded 115 time(s).

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline mikekaganski  
#2 Posted : 06 November 2014 11:40:19(UTC)
mikekaganski


Rank: Advanced Member

Groups: Registered
Joined: 17/01/2013(UTC)
Posts: 296
Man
Russian Federation
Location: Khabarovsk, Russia

Was thanked: 151 time(s) in 107 post(s)
SMath gives -5.6406E-7
MS Excel/LibreOffice gives -1.7486E-7

If you use some online solvers, they give you other different results:
http://matrix.reshish.com gives -3.497202527569246e-7
http://www.bluebit.gr/matrix-calculator gives 0.000000437150316

...and so on...

Finally, WolframAlpha gives zero.

It is floating-point error side-effect, so this result should not be considered "erroneous"; when doing floating-point math you always should be prepared to such things. See relevant Wikipedia article, and especially this brilliant series: http://randomascii.wordp...category/floating-point/

Edited by user 06 November 2014 11:42:32(UTC)  | Reason: Not specified

Best regards,
Mike Kaganski
thanks 3 users thanked mikekaganski for this useful post.
on 06/11/2014(UTC),  on 06/11/2014(UTC),  on 06/11/2014(UTC)
Offline mkraska  
#3 Posted : 06 November 2014 12:44:55(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
Maxima gives the exact answer.
File Attachment(s):
detmaxima.sm (7kb) downloaded 46 time(s).
mkraska attached the following image(s):
maxdet.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 06/11/2014(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.