Pessoal!
Se alguem puder me ajudar
estou tentando fazer um simplres codido de aproximacao … quero fazer com que o numero chegue bem proximo de 4… mas com BigDecimal… q tem a mesma sintaxe que o BigInteger… mas ele da erro no for…
BigDecimal y, x, a, b;
x = BigDecimal.valueOf(1);
a = BigDecimal.valueOf(0,75);
b = BigDecimal.valueOf(3);
//y = BigDecimal.valueOf(1);
//for(int i = 1;i < 20; i++){
for(new BigDecimal.valueOf(1) ; y < 4; y++) {
// y = a*x+b;
System.out.println("N: " + n);
x = BigDecimal.valueOf(y);
} return null;
vlw!!