|
"rahul " <rahuliitk@gmail.com> wrote in message <j4m04c$58i$1@newscl01ah.mathworks.com>...
> TideMan <mulgor@gmail.com> wrote in message <8ee7d936-4d5c-4705-82a6-28ef0231eb45@u7g2000pro.googlegroups.com>...
> > On Sep 13, 9:39 am, "rahul " <rahuli...@gmail.com> wrote:
> > > copied from matlab screen :
> > >
> > > a=10^5;
> > > b=10^5+10^-11;
> > > b-a
> > >
> > > ans =
> > >
> > > 1.4552e-011
> > >
> > > could anyone please tell me how to get rid of this problem? I guess that maltab uses fourier transform for adding two numbers and this happens due to gibbs phenomena.
> >
> > No, it's nothing so complicated.
> > See 6.1 here:
> > http://matlab.wikia.com/wiki/FAQ
>
> Tideman,
> thanks for the reply, but i coiuldn't find anything which explains this in the link you posted. did you mean section 6.1? there isn't any.
Rahul,
Take a look at this: http://www.mathworks.com/support/tech-notes/1100/1108.html
hth,
ScottB
|