Open tirthbha opened 8 months ago
@tirthbha there is error while using the method you suggested for adaptive trapezoid method. It says cannot unpack non-iterable numpy.float64 object for adaptive trapezoid method.
@pratibha77118 Please add n to the return value as *return h s, n** in the adaptive trapezoid method . Probably you won't have n there in the calculus.py code.
@pratibha77118 I mean if you see your adaptive trapezoid function in calculus.py there will be return h s at the end. Make that return h s, n
Thank you @tirthbha for the reference I’ll check this out.
This code calculates integrals of three functions using three numerical methods (Simpson's Rule, Trapezoidal Rule, and Adaptive Trapezoidal Rule), compares the results with a reference value, and estimates the accuracy and efficiency of each method. Hope it will help.