Re: [HACKERS] bug in numeric_power() function

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Richard Wang <ruc_wang(at)hotmail(dot)com>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] bug in numeric_power() function
Date: 2008-05-07 23:19:02
Message-ID: 200805072319.m47NJ2226930@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Alvaro Herrera wrote:
> Bruce Momjian wrote:
> > Tom Lane wrote:
> > > Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > > > I have developed the attached patch which fixes 0 ^ 123.3.
> > >
> > > Did you actually read the wikipedia entry you cited?
>
> But that's about 0^0, not about 0^123.3. See this other subsection:
>
> http://en.wikipedia.org/wiki/Exponentiation#Powers_of_zero
>
> 0^123.3 is 0, not 1.

Ah, got it, and I updated the patch to remove the commment about
"discrete".

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

Attachment Content-Type Size
/pgpatches/power text/x-diff 1.5 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2008-05-07 23:32:29 Re: [HACKERS] bug in numeric_power() function
Previous Message Alvaro Herrera 2008-05-07 22:32:21 Re: [HACKERS] bug in numeric_power() function

Browse pgsql-patches by date

  From Date Subject
Next Message Alvaro Herrera 2008-05-07 23:32:29 Re: [HACKERS] bug in numeric_power() function
Previous Message Alvaro Herrera 2008-05-07 22:32:21 Re: [HACKERS] bug in numeric_power() function