Menghitung Integral di Java

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package integral;

/**
*
* @author Angga
*/
public class integral {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
System.out.println(“Program Menghitung Integral By Mas ANGGA”);
System.out.println(“****************************************”);
System.out.println(“Hitunglah INTEGRAL dari (2X^3+6X^2-2X+9)”);

System.out.println(“RUMUS : aX^n dx –> a/n+1 X^n+1 +C”);
System.out.println(“\t”+”a dx –> aX +C”);
System.out.println(“Jawab :”);

int a,b,c,d,pangkat1,pangkat2,pangkat3,pangkat4;
a=2;
b=6;
c=-2;
d=9;
pangkat1=3;
pangkat2=2;
pangkat3=1;
pangkat4=0;

System.out.println(“Jadi Integralnya Adalah :”);
System.out.print(a+”/”+ ++pangkat1 +”X^”+ pangkat1++);
System.out.print(“+”+b/++pangkat2 +”X^”+ pangkat2++);
System.out.print(c/++pangkat3 +”X^”+ pangkat3++);
System.out.println(“+”+d+”X +C”+”\n”); //”a dx –> aX +C”

}

}

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google

You are commenting using your Google account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

Connecting to %s