org.shiftone.bigcalc.math.function
Class PowerFunction

java.lang.Object
  extended byorg.shiftone.bigcalc.math.function.PowerFunction
All Implemented Interfaces:
MathConstants

public class PowerFunction
extends java.lang.Object
implements MathConstants

Version:
$Revision: 1.7 $ not complete.
Author:
$Author: jeffdrost $

Field Summary
 
Fields inherited from interface org.shiftone.bigcalc.math.MathConstants
BD_239, FIVE, FOUR, I_TWO, ONE, TWO, ZERO
 
Constructor Summary
PowerFunction()
           
 
Method Summary
static boolean isZero(java.math.BigInteger n)
           
static void main(java.lang.String[] args)
           
static java.math.BigDecimal power(java.math.BigDecimal x, java.math.BigDecimal p, int scale)
           
static java.math.BigDecimal powerPositiveExponent(java.math.BigDecimal x, java.math.BigDecimal p, int scale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PowerFunction

public PowerFunction()
Method Detail

power

public static java.math.BigDecimal power(java.math.BigDecimal x,
                                         java.math.BigDecimal p,
                                         int scale)

powerPositiveExponent

public static java.math.BigDecimal powerPositiveExponent(java.math.BigDecimal x,
                                                         java.math.BigDecimal p,
                                                         int scale)

isZero

public static boolean isZero(java.math.BigInteger n)

main

public static void main(java.lang.String[] args)