Small imaginary number in result

Small imaginary number in result - Сообщения

#1 Опубликовано: 25.03.2010 13:51:39
maweilian

maweilian

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

Группа: User

I am using version 0.87.3728. I performed the calculation below:


As you can see the answer should be simply -0.4063804, but Smath added an unwarranted, very small imaginary number to the answer.
Will Massie Mechanical Engineer Oregon, USA
#2 Опубликовано: 25.03.2010 17:49:31
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Hello Will,

I tried this on 0.87 stable (0.87.3692)

Could you double check it. This looks to me Ok, although quite different from your result.
I again forgot to bring 0.87 Beta with me, sorry. I'll check this out tomorow.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Опубликовано: 25.03.2010 20:01:50
maweilian

maweilian

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

Группа: User

Wrote

Hello Will,

I tried this on 0.87 stable (0.87.3692)

Could you double check it. This looks to me Ok, although quite different from your result.
I again forgot to bring 0.87 Beta with me, sorry. I'll check this out tomorow.

Regards,
Radovan



I downloaded and installed the stable version (0.87) and it also worked fine for me.

So this must be a bug in 0.87 Beta.

Thanks for the help.
Will Massie Mechanical Engineer Oregon, USA
#4 Опубликовано: 25.03.2010 21:19:50
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

You are welcome ,

You might be right. I mentioned some odd behavior wnen using trigonometric fuctions with units arguments in the first Beta. Andrey fixed that. It might remain some unfinished work on the same issue.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#5 Опубликовано: 26.03.2010 07:24:13
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Hello Will,

Here is the 0.87_3728 version of your example made on my computer.

It is again different than yours but closer to mine previously made on 0.87 Stable.
I think that the imaginary part could be freely neglected here (less than 10^(-15). If the SMath would have had the system of representing results with the given precision, this imaginary part would have not been presented here. Therefore, I suggest you to use just the real part of the results.

On the other hand I am not sure why our results are so different?

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#6 Опубликовано: 26.03.2010 15:46:04
captainblack

captainblack

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

Группа: User

Wrote

Wrote

Hello Will,

I tried this on 0.87 stable (0.87.3692)

Could you double check it. This looks to me Ok, although quite different from your result.
I again forgot to bring 0.87 Beta with me, sorry. I'll check this out tomorow.

Regards,
Radovan



I downloaded and installed the stable version (0.87) and it also worked fine for me.

So this must be a bug in 0.87 Beta.

Thanks for the help.



Note that you had the angle mode set to degrees and omorr has his set to radians (0.87 seems to return a real result in either mode)

CB
#7 Опубликовано: 26.03.2010 16:21:19
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Oh yes, thank you captainblack. I just forgot to check that out . It did not come to my mind, sorry.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#8 Опубликовано: 29.03.2010 15:26:47
maweilian

maweilian

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

Группа: User

Wrote

Hello Will,
If the SMath would have had the system of representing results with the given precision, this imaginary part would have not been presented here. Therefore, I suggest you to use just the real part of the results.



Radovan,

As CB said, I was performing the calculation in degrees, but, as you have demonstrated, the inclusion of an imaginary component occurs regardless of whether degrees or radians are used. In this case, I did end up using the real component. However, since I use Smath to clearly document calculations, the results produced by Smath in this case are unacceptable since it introduces unnecessary clutter to what should be a straightforward calculation. So, I would most certainly add this problem to the "to be fixed" list for 0.87 Beta.

Sincerely,
Will
Will Massie Mechanical Engineer Oregon, USA
#9 Опубликовано: 29.03.2010 15:50:04
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Hello Will,

I suppose that SMath should have Zero and Complex treshold in order to avoid these situations. This way would overcome the mentioned problems.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#10 Опубликовано: 29.03.2010 18:02:03
Andrey Ivashov

Andrey Ivashov

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

Группа: Super Administrator

Wrote

I suppose that SMath should have Zero and Complex treshold in order to avoid these situations. This way would overcome the mentioned problems.


Agree with you. Will implement this.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений