SMath Studio Forum
»
SMath Studio
»
Questions
»
Complex Number Addition When Evaluating Natural Log
Rank: Newbie
Groups: Registered
Joined: 23/11/2013(UTC) Posts: 5
|
Hi,
I have noticed an issue when evaluating a natural log as a function, I am getting seemingly random additions of a multiple of i.
If I evaluate the expression, it for some reason adds a multiple of i to the correct, real portion of that.
For example suppose I have the function f(a)=ln((a-1)/(a+1)). If I evaluate this at a=1.3921, I should get the answer f(1.3921)=-1.8084. But the function returns f(1.3921) = -1.8085+3.1416*i. It appears to be adding 3.1416*i (pi*i). I have to get around this by using Re(). Am I missing something or is this an error?
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,654 Location: Italy Was thanked: 1340 time(s) in 879 post(s)
|
I can't replicate the issue. Maybe you have something different in SMath settings (Tools > Settings... > Calculation > Answer). Edited by user 30 July 2015 10:48:04(UTC)
| Reason: Not specified Davide Carpi attached the following image(s): |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Newbie
Groups: Registered
Joined: 23/11/2013(UTC) Posts: 5
|
Thank you for your reply. I have tried to replicate it again myself but I have been unable to as well. I will find the worksheet it originally happened in and will try to post the issue.
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
Complex Number Addition When Evaluating Natural Log
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.