SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
Problem with complex number (SMath v0.89)
Rank: Newbie
Groups: Registered
Joined: 02/03/2011(UTC) Posts: 1 Location: czech
|
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 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!" |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 04/07/2010(UTC) Posts: 178 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 |
|
|
|
SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
Problem with complex number (SMath v0.89)
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.