From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: exp function
Date: Mon, 20 Jun 2011 20:44:05 +0000 (UTC)
Organization: IIT Bombay
Lines: 16
Message-ID: <itobel$pbd$>
References: <ito85l$fgm$> <ito8eu$ge4$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1308602645 25965 (20 Jun 2011 20:44:05 GMT)
NNTP-Posting-Date: Mon, 20 Jun 2011 20:44:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2894393
Xref: comp.soft-sys.matlab:732869

Hello Matt,

The problem is still there  as now value of (log(N) - 921)  is very less again so exponent of this gives zero o/p. :(

"Matt J" wrote in message <ito8eu$ge4$>...
> "Nilesh Goel" wrote in message <ito85l$fgm$>...
> > i s there a limit of exp(x) for which it will only give zero as answer.
> > 
> > In one of my equation exp(-921) is multiplied by a large constant but the answer is zero. I observe exp(-921) returns zero so even multiply it with large no. will return zero.
> > 
> > Is this a limitation of Matlab or there is any alternative to get the small values also.
> Instead of implementing as N*exp(-921), perhaps implement as
> exp( log(N)-921 )