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
Guest  
#1 Posted : 11 January 2011 04:47:49(UTC)
Guest

Rank: Guest

Groups: Guests
Joined: 11/07/2008(UTC)
Posts: 27

problem lies in the parsing of t[1,2] * t[2,1] while being used inside sum and also product functions.

It's fine if either term has both indices the same, but if both have different indices, it squares the first term.

Hence, in the example, 8*8 = 64 leading to the error in the output of the sum.


Result is ok if you use determinant(t) instead of specifying individual terms.

Edited by moderator 11 January 2011 14:36:53(UTC)  | Reason: Title modification (because such title is already exists)

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

Offline omorr  
#2 Posted : 11 January 2011 12:33:37(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,

It seems you are right (I check that out) but I think this is definitely a bug. The summation operator should not work this way.
Here is another example:
t←mat(1,2,1,0,2,2)
el(t,1,1)/{el(t,1,2)*el(t,2,1)}=0.5
sum((el(t,1,1)/{el(t,1,2)*el(t,2,1)}),n,1,1)=0.25
Andrey should clarify this behavior as soon as he can.

Regards,
Radovan

Edited by user 11 January 2011 12:41:14(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline PaoloM  
#3 Posted : 12 January 2011 18:20:55(UTC)
PaoloM

Rank: Newbie

Groups: Registered
Joined: 11/01/2011(UTC)
Posts: 5
Location: Brescia Italy

I am also experiencing problems with the summation (function in the summation)




Offline omorr  
#4 Posted : 12 January 2011 19:46:50(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,
PaoloM wrote:
I am also experiencing problems with the summation (function in the summation)

What did you mean by that? Could you explain please.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline PaoloM  
#5 Posted : 13 January 2011 10:47:37(UTC)
PaoloM

Rank: Newbie

Groups: Registered
Joined: 11/01/2011(UTC)
Posts: 5
Location: Brescia Italy

Hi Radovan,

Thanks for your help. I am a Mathcad user. I am trying to see if it is possible to swap on SMathStudio.
Yesterday I made a test with a simple Mathcad file.
Please give me your mail address and I will send you both Mathcad and SMathStudio files.

Thks, bye
Offline omorr  
#6 Posted : 13 January 2011 11:04:07(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,
PaoloM wrote:
Hi Radovan,Please give me your mail address and I will send you both Mathcad and SMathStudio files.

You can see the e-mail in my profile.

Regards,
Radovan
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.