Focal Point
[SHARING] raise a number to a power

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2927044816

March 30, 2012, 09:48 AM
shravan
[SHARING] raise a number to a power
Hello Everybody,

There must be a function in WebFOCUS to raise a number to a power(like 2 to the power of 64). I searched in the forums and documentation. I could not find it. Can somebody please help ?

Thanks,
Shravan

This message has been edited. Last edited by: shravan,


7.7.03, Windows 7, SQL Server 2005
March 30, 2012, 10:09 AM
shravan
I think I found the answer. I was searching using the key words "raise to the power" and "to the power". I found the answer when I searched using the key word "Exponentiation". If anybody still wants to know how you raise x to the nth power, here is how we do it.

 COMPUTE RAISEIT/I5 = x**n;  


Thanks,
Shravan


7.7.03, Windows 7, SQL Server 2005
April 01, 2012, 05:59 PM
Waz
I had forgotten about that.

Good One


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

April 02, 2012, 10:29 AM
njsden
Thanks for the tip Shravan.

You may want to edit your original post's title and prefix it with [SHARING] for easy reference. Smiler



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
April 10, 2012, 12:07 PM
susannah
Corollary:
x**.5 is square root
x**(1/3) would be cube root, etc




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
April 10, 2012, 02:19 PM
njsden
Nice! Very nice!



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
April 10, 2012, 05:53 PM
Waz
Bookmarked !


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

April 11, 2012, 10:52 PM
susannah
woooow i've been bookmarked by the Wizard of Waz...i am feeling bulletproof today ! Big Grin




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
April 11, 2012, 11:45 PM
Waz
If only I was the Wizard of Will Be.....


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

April 13, 2012, 08:19 AM
Rick Man
I ran across this function looking for something else yesterday, EXP


Reporting Server 7.6.10
Dev. Studio 7.6.8
Windows NT
Excel, HTML, PDF