Complex Number Addition When Evaluating Natural Log

Complex Number Addition When Evaluating Natural Log - Сообщения

#1 Опубликовано: 29.07.2015 20:52:53
Chris McNamara

Chris McNamara

0 сообщений из 5 понравились пользователям.

Группа: 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 Опубликовано: 30.07.2015 04:45:42
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 31.07.2015 03:03:25
Chris McNamara

Chris McNamara

0 сообщений из 5 понравились пользователям.

Группа: 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.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений