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 mkraska  
#1 Posted : 03 July 2012 10:22:52(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)
Hi,

I get the following with build 4559

trace(mat(1,3,2,4,2,2))=1@#

I need the trace function to fake the also broken norme() function using

M:mat(1,2,3,4,2,2)@#

norm_e(M):sqrt(trace(transpose(M)*M))

Best regards, Martin Kraska

Edited by moderator 04 July 2012 01:00:28(UTC)  | Reason: Not specified

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx

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

Offline kmihaylovich  
#2 Posted : 03 July 2012 11:18:12(UTC)
kmihaylovich


Rank: Member

Groups: Registered
Joined: 22/06/2010(UTC)
Posts: 13
Location: Питер

Was thanked: 5 time(s) in 4 post(s)
Hmm, what results do you expect?
Offline omorr  
#3 Posted : 03 July 2012 12:00:09(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello,
Originally Posted by: mkraska Go to Quoted Post

I get the following with build 4559

trace(mat(1,3,2,4,2,2))=1@#

BTW., trace() is reserved function for debugging purpose - trace evaluations through Output window - see trace()

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline mkraska  
#4 Posted : 03 July 2012 20:58:26(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)
Hi,

ok, that is just my fault, I expected trace to be the trace of a matrix, i.e. the sum of the diagonal elements. In fact, I have to use tr(), than everything works as expected:

M=mat(1,2,3,4,2,2)@#

sqrt(tr(transpose(M)*M))=sqrt(30)@#

Thanks for the hints!

Best regards, Martin Kraska

Originally Posted by: omorr Go to Quoted Post
Hello,
Originally Posted by: mkraska Go to Quoted Post

I get the following with build 4559

trace(mat(1,3,2,4,2,2))=1@#

BTW., trace() is reserved function for debugging purpose - trace evaluations through Output window - see trace()

Regards,
Radovan


Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
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.