You are on page 1of 2

/*

* To change this license header, choose License Headers in Project Properties.

* To change this template file, choose Tools | Templates

* and open the template in the editor.

*/

package cabuslay_false.position;

import java.util.Scanner;

/**

* @author user3

*/

public class CABUSLAY_FALSEPOSITION {

/**

* @param args the command line arguments

*/

public static void main(String[] args) {

// TODO code application logic here

Scanner input = new Scanner (System.in);

System.out.println("This program will solve the root between 2 and 3 of x^3-2x-5");

System.out.println("a");

double a = input.nextDouble();

System.out.println("b");

double b = input.nextDouble();

System.out.println("number of iterations");
double n = input.nextDouble();

System.out.println("Iteration #\tXL\t\tF(XL)\t\tXU\t\tF(XU)\t\txR\t\tf(xR)\t\tf(xL)*f(xR)");

You might also like