Simple calculation is producing the wrong answer

Simple calculation is producing the wrong answer - Adding up negative an positive numbers - Mensajes

#1 Publicado: 1/5/2012 7:42:08
lcesero

lcesero

0 me gusta en 8 mensajes.

Grupo: 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 Publicado: 1/5/2012 14:11:55
lcesero

lcesero

0 me gusta en 8 mensajes.

Grupo: User

Hello,

I was wondering if anyone else can reproduce this symptom.


Thanks,
#3 Publicado: 1/5/2012 14:21:12
Andrey Ivashov

Andrey Ivashov

2.343 me gusta en 4.056 mensajes.

Grupo: 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.
  • Nuevos mensajes
  • Sin mensajes nuevos