You are on page 1of 4

Cara Menurunkan Persamaan : Matematika

Contoh :
10

∫ x 2 dx
0

1 3 10 1
x |0 = ( 103−03 ) =1000
3 3
10
2 3

∫ cos 2 (x)e (10 +3 cos ( x )) dx


0
a
b
b

∫ f ( x )dx
a

Δ x=(b−a)/ 4
L1=f ( x1 ) Δ x

L2=f ( x2 ) Δ x

L3=f ( x3 ) Δ x

L4 =f ( x 4 ) Δ x

L=L1 + L2 + L3+ L4

L=( f ( x 1 ) +f ( x 2 ) + f ( x3 ) + f ( x 4 ) ) Δ x
4
L= Δ x ∑ f (x i)
i=1

N
L= Δ x ∑ f (x i)
i=1
L=0
N
L=L+ ∑ f (x i)
i=1

L= Δ xL

Nama File : Tugas1-NRP-Nama


1. Hasil

2. Program
#include <stdio.h>
using namespace std;
float Fs(float x)
{
return x*x;
}
int main()
{
float L,x,a,b,JumlahPias,Dx;
a=0;
b=10;
JumlahPias = 1000;
Dx=(b-a)/JumlahPias;
L=0;
for (float x=a+Dx;x<=b;x=x+Dx)
{
L=L+Fs(x);
}
L=Dx*L;
printf("Hasil Integral \%f",L);

return 0;
}

You might also like