X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 9E0B3D1B471 for ; Fri, 26 Dec 2003 23:21:54 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 55941-03 for ; Fri, 26 Dec 2003 19:21:08 -0400 (AST) Received: from heineken.cs.stevens-tech.edu (heineken.cs.stevens-tech.edu [155.246.89.69]) by svr1.postgresql.org (Postfix) with ESMTP id 46E75D1B443 for ; Fri, 26 Dec 2003 19:21:05 -0400 (AST) Received: from ymalik (helo=localhost) by heineken.cs.stevens-tech.edu with local-esmtp (Exim 3.35 #1 (Debian)) id 1Aa1EO-0006xF-00 for ; Fri, 26 Dec 2003 18:18:56 -0500 Date: Fri, 26 Dec 2003 18:18:56 -0500 (EST) From: Yasir Malik To: PostgreSQL Subject: Re: Anti log in PostgreSQL In-Reply-To: <200312261934.35070.martin@bugs.unl.edu.ar> Message-ID: References: <3FECB238.1050801@sancharnet.in> <200312261934.35070.martin@bugs.unl.edu.ar> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/188 X-Sequence-Number: 16354 The antilog of x is 10^x, so all you need to do is used the ^ operator. If you are doing the antilog for some other base, there is formula to do that as well, but I'm forgetting it. Regards, Yasir On Fri, 26 Dec 2003, Martin Marques wrote: > Date: Fri, 26 Dec 2003 19:34:35 -0300 > From: Martin Marques > To: aspire420@hotpop.com, > Sai Hertz And Control Systems , > pgsql-admin@postgresql.org > Cc: pgsql-sql@postgresql.org > Subject: Re: [SQL] Anti log in PostgreSQL > i> El Vie 26 Dic 2003 19:12, Sai Hertz And Control Systems escribi=F3: > > Dear all , > > > > In one of our project I require to calculate antilog of (3.3234) > > But I could not find any functions in Documentation for the same. > > > > In mathematics I would have written it something like > > > > A =3D antilog (3=B73234) =3D 2144 > > As I can understand, this is a 10 base log, so that what you want is > 10^(3.3234)? > > For that you have the exponential operator ^. > > -- > select 'mmarques' || '@' || 'unl.edu.ar' AS email; > ----------------------------------------------------------------- > Mart=EDn Marqu=E9s | mmarques@unl.edu.ar > Programador, Administrador, DBA | Centro de Telem=E1tica > Universidad Nacional > del Litoral > ----------------------------------------------------------------- > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly >