uk.ac.leeds.ccg.andyt.ext.math
Class BigDecimal0

java.lang.Object
  extended by uk.ac.leeds.ccg.andyt.ext.math.BigDecimal0

public class BigDecimal0
extends java.lang.Object

TODO: 1. docs 2. generic power function 3. memory handling 4. error and exception handling


Constructor Summary
BigDecimal0()
          Creates a new instance of BigDecimal0
 
Method Summary
static void main(java.lang.String[] args)
           
static java.math.BigDecimal sqrt0(java.math.BigDecimal input, int decimalPlaces)
          Returns the square root of the input BigDecimal as a BigDecimal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BigDecimal0

public BigDecimal0()
Creates a new instance of BigDecimal0

Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args - the command line arguments

sqrt0

public static java.math.BigDecimal sqrt0(java.math.BigDecimal input,
                                         int decimalPlaces)
Returns the square root of the input BigDecimal as a BigDecimal. There are limits to the size of BigDecimals this can handle, but they can have Integer.MAX_VALUE numbers of digits in their decimal expansion and so can be enormous! An exception should be thrown and caught if this is the case but this needs implementing.

Parameters:
input -
decimalPlaces -