Complex Number Addition When Evaluating Natural Log

Complex Number Addition When Evaluating Natural Log - Messages

#1 Posted: 7/29/2015 8:52:53 PM
Chris McNamara

Chris McNamara

0 likes in 5 posts.

Group: User

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?


#2 Posted: 7/30/2015 4:45:42 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

I can't replicate the issue. Maybe you have something different in SMath settings (Tools > Settings... > Calculation > Answer).
2015-07-30 08_22_43-SMath Studio Desktop - [Verifica sezioni senza armatura a taglio - S200-300 - se.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Posted: 7/31/2015 3:03:25 AM
Chris McNamara

Chris McNamara

0 likes in 5 posts.

Group: User

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.
  • New Posts New Posts
  • No New Posts No New Posts