ubsuny / 23-Homework6G5

MIT License
0 stars 8 forks source link

Adaptive trapezoid. #8

Open poojashresthacode opened 7 months ago

poojashresthacode commented 7 months ago

Should we take value of n very small in this method? or can we use any?

tirthbha commented 7 months ago

@poojashresthacode In the code, we assign n=1, which allows the method to begin with the simplest approximation of the integral and then progressively refine this approximation by doubling the number of trapezoids in each iteration to increase accuracy where needed. Also if you increase n, it will increase computational time to run the job, less efficient.

tirthbha commented 7 months ago

@poojashresthacode For your convenience, you can try by plugging n=10, 100,...