Re: cumsum bug or Matlab rounding problem ?



"John D'Errico" <woodchips@xxxxxxxxxxxxxxxx> wrote in message

I think we should have let him re-write cumsum.

Get rid of all of those floating point arithmetic
"bugs" in MATLAB. Sum has the problem too.
And get rid of those trig function problems too.
I mean what good is it that sin(100*pi) does not
give zero? Or this one?

sqrt(2)^2-2
ans =
4.4409e-16

So OP, please fix all of these "bugs" for us too.

Or, if you wish, just learn how to use floating
point arithmetic. It might be easier in the end
for you.

John

Ok, sorry John, I didn't want to offense anyone. Thanks for you help.
.



Relevant Pages

  • Re: cumsum bug or Matlab rounding problem ?
    ... Get rid of all of those floating point arithmetic ... Sum has the problem too. ... And get rid of those trig function problems too. ... please fix all of these "bugs" for us too. ...
    (comp.soft-sys.matlab)
  • Re: cumsum bug or Matlab rounding problem ?
    ... Get rid of all of those floating point arithmetic ... And get rid of those trig function problems too. ... please fix all of these "bugs" for us too. ...
    (comp.soft-sys.matlab)
  • Re: converting float to ascii w/o printf
    ... It will cause bugs. ... If you've got the code space and the CPU cycles, use floating ... Why not design your own CPU, fab your own chips, and write your ...
    (comp.arch.embedded)
  • Re: Crickets ?
    ... :) that will kill or get rid of them? ... Lighting is usually what attracts them...sodium based lighting really ... crickets..especially when the shop owners use the water hose to spray ... to email....get rid of the BUGS ...
    (alt.home.repair)
  • Re: 4 hundred quadrillonth?
    ... We now will have lots of subtle floating point bugs that people ... Ignorance is bliss and what you don't know about floating ... I'm not sure that the new repr ...
    (comp.lang.python)