package Program; import java.util.*; public class Vich_Math_2lab { public static void main(String[] args) { double e = 1e-6; int N = 1; double A, B, I1=0, I2=0, Runge; System.out.println("Input A and B"); Scanner SC = new Scanner(System.in); A = SC.nextDouble(); B = SC.nextDouble(); do { double h; h = (B-A)/(N); for(long i=0;ie); System.out.println("E = " + e); System.out.println("Runge = " + Runge); System.out.println("N = " + N); System.out.println("I = " + I2); } public static double F(double x) { double degree = x*Math.PI/180; double result; result = (Math.cos(degree) + Math.pow(x, 2)); // + 3*x*Math.sqrt(x)); return result; } }