public static BigDecimal bigSqrt ( final BigDecimal c ) { if ( c == null ) { return null ; } return c . signum ( ) == 0 ? BigDecimal . ZERO : sqrtNewtonRaphson ( c , BigDecimal . ONE , BigDecimal . ONE . divide ( SQRT_PRE ) ) ; }
Uses Newton Raphson to compute the square root of a BigDecimal .