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 pajik  
#1 Posted : 02 March 2011 19:13:24(UTC)
pajik

Rank: Newbie

Groups: Registered
Joined: 02/03/2011(UTC)
Posts: 1
Location: czech

I have problem with comlex calculate...

l←(1+795.7747*i)*(1+795.7747*i)
l=-6.3326*10^5+1591.5494*i

BUT

el(a,1,2)=1+795.7747*i
el(a,2,1)=1+795.7747*i
m←el(a,1,2)*el(a,2,1)
m=6.3326*10^5-1591.5494*i

full program:
http://matros.comehere.cz/tmp/problem.zip
download


printscreen:
http://img828.imageshack.us/i/38752541.png/

Edited by user 02 March 2011 19:40:56(UTC)  | Reason: Not specified

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

Offline omorr  
#2 Posted : 02 March 2011 23:50:35(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,

You can see the symbolic representation of your matrix elements:
el(a,1,2)—{2500+i*π}/{i*π}el(a,1,2)—{2500+i*π}/{i*π}
They are the same. Now, get their product and see the symbolical result:
m←el(a,1,2)*el(a,2,1)
m—{(2500+i*π)^2}/{π^2}
and the numerical value would be:
m=6.3326*10^5+1591.5494*i
Change the Optimization of calculating "m" Into Optimization|None or Optimization|Numeric and see the numerical value. The numerical result will be:
m=-6.3326*10^5-1591.5494*i

I do not get it? Could anyone explain this?

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline TheWizEd  
#3 Posted : 05 March 2011 20:18:35(UTC)
TheWizEd


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2010(UTC)
Posts: 178
Man
United States

Was thanked: 19 time(s) in 13 post(s)
Pecular, I tried to duplicate the equations in the original post and no matter what I do I get the same and correct results. I'm using SMath 0.89 Win7.



However, when I duplicate the equations from the attached zip file I do get incorrect results but I noted that the (i*pi)^2 in the denominator does not calculate correctly. The result is 1/pi^2. It should be -1/pi^2. Something happened to the i^2 in the denominator.

When I change optimization to Numeric in the last set of equations, then I get the correct result.



Just by looking at the results without optimization changed, you'ld have a hard time finding this discrepency.
Ed
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.