Re: cumsum bug or Matlab rounding problem ?
- From: "Jerome Hennet" <jerome.prog@xxxxxxxxx>
- Date: Mon, 10 Nov 2008 12:56:02 +0000 (UTC)
"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.
.
- Follow-Ups:
- Re: cumsum bug or Matlab rounding problem ?
- From: John D'Errico
- Re: cumsum bug or Matlab rounding problem ?
- References:
- cumsum bug or Matlab rounding problem ?
- From: Jerome Hennet
- Re: cumsum bug or Matlab rounding problem ?
- From: markym
- Re: cumsum bug or Matlab rounding problem ?
- From: Jerome Hennet
- Re: cumsum bug or Matlab rounding problem ?
- From: Jos
- Re: cumsum bug or Matlab rounding problem ?
- From: Jerome Hennet
- Re: cumsum bug or Matlab rounding problem ?
- From: John D'Errico
- cumsum bug or Matlab rounding problem ?
- Prev by Date: Re: color plot in a rose
- Next by Date: Re: read ascii file
- Previous by thread: Re: cumsum bug or Matlab rounding problem ?
- Next by thread: Re: cumsum bug or Matlab rounding problem ?
- Index(es):
Relevant Pages
|