ubsuny / 23-Homework6G2

Apache License 2.0
0 stars 9 forks source link

How are you going to plot the integrals? #36

Closed AhmedCode99 closed 9 months ago

AhmedCode99 commented 9 months ago

If $\mathrm{F(x) =}\int_a^b \mathrm{f(x)}\mathrm{d}x$, how can you numerically obtain $F(x)$?

AhmedCode99 commented 9 months ago

My idea is to calculate the integral from $a$ to $a + \epsilon$, where $\epsilon$ is a small number. Then keep repeating till I reach the upper bound $b$.

AhmedCode99 commented 9 months ago

My first point is integral from $a$ to $a+\epsilon$ My second point is integral from $a$ to $a+2\epsilon$ My $n^{th}$ point is integral from $a$ to $a+n\epsilon$

tirthbha commented 9 months ago

@AhmedCode99 Plots are not for the integral, but for the functions. Just to be sure that functions are well defined or not within the given intervals.

AhmedCode99 commented 9 months ago

@tirthbha you are wrong. Read the readme file on the main repo carefully

tirthbha commented 9 months ago

@AhmedCode99 The intention is to get rid from the zero divisor, right?

AhmedCode99 commented 9 months ago

Task 1: Use the four integral algorithms (Simpson, adaptive trapezoid, trapezoid) to create a Jupyter notebook that imports the functions from calculus.py and use them to calculate and plot the integral of:

tirthbha commented 9 months ago

Task 1: Use the four integral algorithms (Simpson, adaptive trapezoid, trapezoid) to create a Jupyter notebook that imports the functions from calculus.py and use them to calculate and plot the integral of:

Screenshot from 2023-11-20 13-28-42 Screenshot from 2023-11-20 13-29-04 Screenshot from 2023-11-20 13-30-01

AhmedCode99 commented 9 months ago

@tirthbha we are both right, Dr. Tim said we can do any

tirthbha commented 9 months ago

@AhmedCode99 Great!