help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: 0^0 = ?


From: j . e . drews
Subject: RE: 0^0 = ?
Date: Thu, 13 Nov 2003 08:51:49 -0600

I know that by L'Htpital's Rule you should get:

ln(y)=x*ln(x) = ln(x)/(1/x)  so

Lim x->0+  ln(x)/(1/x) = ( 1/x )/( -1/( x^2)) =  

Lim x->0+ (-x) = 0
so  ln(y) = 0 and then y=1. 

Maybe this is the reason for the behavior?
> In octave 2.1.50 -->
> >> 0^0
> ans = 1
> 
> How about 0^0 in Octave? It is convenient in my program if 0^0 = 1.
> 
> Cong



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]