Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,986 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 |
|
|
|
|
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?
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Hello, Originally Posted by: mkraska 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!" |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,986 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 Hello, Originally Posted by: mkraska 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 |
|
|
|
|
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.