Re: X^Y in Forms 4.5
Date: 1995/07/27
Message-ID: <3v8fr6$lc6_at_cs3.brookes.ac.uk>#1/1
In article <DCA73L.6Ir_at_eunet.ch>, Yves Raisin says...
> 6 a := 4;
> 7 b := 3;
> 8 c := power(a,b);
> 9 dbms_output.put_line('resultat = '||to_char(c));
> 10* end;
>resultat = 64
>
Which proves he can't read, since he also quotes:
>pjn_at_novabase.pt (Paulo Jorge Cardiga Nunes) wrote:
>
>>Hi!
>>I'm trying to built a simple(?) routine to calculate a number powered to
>>other. (X^Y)
>>Well, it looks simple, but... Y is not an integer. I's a real!! So as
>>X, but the problem is not in X, but in Y!!!
and the reason for the complication is that power ONLY works when Y is an integer.
Paulo: have you tried identifying the fraction that Y represents?
eg. 8^1.5 = (8^3)^0.5
of course, this then leaves you trying to find roots as well...
-- _________________________ __________________________________________ / Tommy Wareing \ / I've been looking for an original sin, \ | p0070621_at_brookes.ac.uk X One with a twist and a bit of a spin | \ 0865-483389 / \ -- Pandora's Box, Jim Steinman / ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Received on Thu Jul 27 1995 - 00:00:00 CEST