Skip to content

Instantly share code, notes, and snippets.

View BlueBeret's full-sized avatar
⚰️
dead

click_here BlueBeret

⚰️
dead
View GitHub Profile
@BlueBeret
BlueBeret / Rieman.py
Created April 3, 2023 15:49
A simple implementation of a function to calculate definite integral with Rieman sum method
from math import exp
def fx(x):
return (x+7) * exp(x)
def jumlahanRiemanKiri(function, a, b, n = 10e7):
"""
Fungsi untuk menghitung integral tentu menggunakan metode jumlah rieman kiri
Parameters