[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: How do you explain this?

The exact same thing occurs under my Linux. Maybe in command-line mode the
precision of the numbers is lower by default.

Roy

http://www.danielsorogon.com/Webmaster


"Adam West" <adam@batman.cave> wrote in message
news:47J1c.3962$Hl1.1337@tornado.fastwebnet.it...
> If I run the following instructions from the command line
>
> % -------------------------------
> clear
>
> i = 29;
> err = sqrt(10^(2*i))-10^i
> %--------------------------------
>
> I get
>
> err =
>
>       0
>
> while if I make an m-file with the same code I get
> a different result:
>
> err =
>
>       1.759218604441600e+13
>
> How to explain this?
>
> Thanks in adavance,
>
> Bat(e)man
>
> ps: Matlab Version 6.5.0.180913a Release 13 on
>
> # uname -a
>
> Linux 2.4.24-1.ll.rh90.ccrma #1 Mon Jan 5 14:06:11
> PST 2004 i686 i686 i386 GNU/Linux
>


[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index