private static void printSqrtConvergence() {
		int precision = 10000;
		
		for (BigDecimal x : Arrays.asList(BigDecimal.valueOf(2), BigDecimal.valueOf(16))) {
			System.out.println("Newton sqrt(" + x +")");
			sqrtUsingNewtonPrint(x, new MathContext(precision));		
			System.out.println();
			
			System.out.println("Newton adaptive sqrt(" + x +")");
			sqrtUsingNewtonAdaptivePrecisionPrint(x, new MathContext(precision));		
			System.out.println();
			
			System.out.println("Halley sqrt(" + x +")");
			sqrtUsingHalleyPrint(x, new MathContext(precision));		
			System.out.println();
		}
	}
private static void printSqrtConvergence ( ) { int precision = 10000 ; for ( BigDecimal x : Arrays . asList ( BigDecimal . valueOf ( 2 ) , BigDecimal . valueOf ( 16 ) ) ) { System . out . println ( "Newton sqrt(" + x + ")" ) ; sqrtUsingNewtonPrint ( x , new MathContext ( precision ) ) ; System . out . println ( ) ; System . out . println ( "Newton adaptive sqrt(" + x + ")" ) ; sqrtUsingNewtonAdaptivePrecisionPrint ( x , new MathContext ( precision ) ) ; System . out . println ( ) ; System . out . println ( "Halley sqrt(" + x + ")" ) ; sqrtUsingHalleyPrint ( x , new MathContext ( precision ) ) ; System . out . println ( ) ; } }
variations on exp()