Simple calculation is producing the wrong answer

Simple calculation is producing the wrong answer - Adding up negative an positive numbers - Сообщения

#1 Опубликовано: 01.05.2012 07:42:08
lcesero

lcesero

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

Группа: User

Hello,

I have come across an error when doing the folowing calculation.

-5.00+.85+.85+3.30=-4.44*10^-16 ( decimal places are set to 2)

The above equation should equal zero.

I am using the portable version .93 (build 4466 ) on Windows 7 Pro 64bit.




Thanks in advance.



#2 Опубликовано: 01.05.2012 14:11:55
lcesero

lcesero

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

Группа: User

Hello,

I was wondering if anyone else can reproduce this symptom.


Thanks,
#3 Опубликовано: 01.05.2012 14:21:12
Andrey Ivashov

Andrey Ivashov

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

Группа: Super Administrator

Hello lcesero.

Yes, I've reproduced it. The only thing I can do here is to add an ability to replace answer with 0 if the result accuracy is less then or equal [MATH]10^-16[/MATH]. This way used by Mathcad as an option of every equation. Will think about it.

Best regards, Andrey Ivashov.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений