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 rsunny  
#1 Posted : 13 February 2011 16:20:45(UTC)
rsunny

Rank: Newbie

Groups: Registered
Joined: 13/02/2011(UTC)
Posts: 2
Location: Germany

Hello,

I am new to sMath. During my first steps on playing around with matrices and summation of matrices I found the following bug:

Open in SMath Cloud

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

Offline omorr  
#2 Posted : 13 February 2011 19:36:28(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,

I agree, it is a bit unusual. Perhaps it is the result of Andrey's efforts regarding the introduction of block (nested) matrices.
I←mat(1,0,0,0,1,0,0,0,1,3,3)C←mat(0,0,1,3,1)
sum((I*C),i,1,2)=mat(0,0,2,3,1)
sum((I*mat(0,0,1,3,1)),i,1,2)=mat(0,0,mat(2,0,0,0,2,0,0,0,2,3,3),3,1)
sum((mat(1,0,0,0,1,0,0,0,1,3,3)*C),i,1,2)=mat(mat(0,0,2,3,1),0,0,0,mat(0,0,2,3,1),0,0,0,mat(0,0,2,3,1),3,3)

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline rsunny  
#3 Posted : 13 February 2011 21:16:04(UTC)
rsunny

Rank: Newbie

Groups: Registered
Joined: 13/02/2011(UTC)
Posts: 2
Location: Germany

Hello Radovan,

thank you for your quick reply! It sounds very interesting, these block (nested) matrices.
How do I have to interpret the results?

Open in SMath Cloud
Offline omorr  
#4 Posted : 13 February 2011 22:35:17(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,

In my opinion, this should be interpreted as a bug - as you mentioned in the first place. Until Andrey gives the final answer, we should be aware of this behavior that you've find out.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline omorr  
#5 Posted : 15 February 2011 10:22:31(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,

Here is more about block matrices:
A←mat(1,0,0,0,1,0,0,0,1,3,3)B←mat(0,0,1,3,1)
mat(A,A,A,A,2,2)*mat(B,B,2,1)=mat(mat(0,0,2,3,1),mat(0,0,2,3,1),2,1)mat(A,A,A,A,2,2)*mat(0,1,2,1)=mat(mat(1,0,0,0,1,0,0,0,1,3,3),mat(1,0,0,0,1,0,0,0,1,3,3),2,1)
sum((mat(A,A,A,A,2,2)*mat(B,B,2,1)),i,1,2)=mat(mat(0,0,4,3,1),mat(0,0,4,3,1),2,1)sum((mat(A,A,A,A,2,2)*mat(0,1,2,1)),i,1,2)=mat(mat(2,0,0,0,2,0,0,0,2,3,3),mat(2,0,0,0,2,0,0,0,2,3,3),2,1)
sum((A*mat(0,1,2,1)),i,1,2)=mat(0,mat(2,0,0,0,2,0,0,0,2,3,3),2,1)
but this, of course, is not allowed:
A*mat(0,1,2,1)=#

I think that Andrey did not finish all the issues regarding block matrices yet.

Regards,
Radovan

Edited by user 15 February 2011 10:29:00(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
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.