module Integrals

Overview

Integral Calculus

Extended Modules

Defined in:

integrals/Integrals.cr

Instance Method Summary

Instance Method Detail

def riemann_left(a : Float32, b : Float32, step : Float32, precision : Int32 = 2, &) : Float32 #

Left Riemann Sum


[View source]
def riemann_midpoint(a : Float32, b : Float32, step : Float32, precision : Int32 = 2, &) : Float32 #

Midpoint Rule


[View source]
def riemann_right(a : Float32, b : Float32, step : Float32, precision : Int32 = 2, &) : Float32 #

Right Riemann Sum


[View source]
def trapezoidal_rule(a : Float64, b : Float64, step : Int32, precision : Int32 = 2, &) : Float64 #

Trapezoidal Sum


[View source]