Path: news.mathworks.com!not-for-mail 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$1@newscl01ah.mathworks.com> References: <ito85l$fgm$1@newscl01ah.mathworks.com> <ito8eu$ge4$1@newscl01ah.mathworks.com> Reply-To: <HIDDEN> NNTP-Posting-Host: www-04-blr.mathworks.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: newscl01ah.mathworks.com 1308602645 25965 172.30.248.35 (20 Jun 2011 20:44:05 GMT) X-Complaints-To: news@mathworks.com NNTP-Posting-Date: Mon, 20 Jun 2011 20:44:05 +0000 (UTC) X-Newsreader: MATLAB Central Newsreader 2894393 Xref: news.mathworks.com 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$1@newscl01ah.mathworks.com>... > "Nilesh Goel" wrote in message <ito85l$fgm$1@newscl01ah.mathworks.com>... > > 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 )