This is what I was hoping to find. Thank's to this amazing work I now fully understand the Simpson's rule. For all the seekers: the actual formula is on 5:24.
please i'm having issues relating this to waterplane area when given the half-breath and station spacing for marine designs using MATLAB...please i need ASAP help, thank you
How can i plot using simpson rule?? I have 500 values of y corresponding to 500 values of x now i have to integrate using simpson 1/3rd rule and want to plot it.
Very good question! Numerical integration methods like trapezoidal and Simpson rules can be used for data points as well. Instead of getting the value of y from a function f(x), they will be taken from an array y = [y1,y2,...,yn]. If x differences (step size h) are equal, you can use almost the same algorithm, otherwise you need to consider the x array, x = [x1,x2,...,xn], by multiplying xi by yi in each term. I hope I could answer your question clearly. Thank you for the comment and question.
In this code, the number of divisions (n) is set by the user and the step size (h) is calculated accordingly. That means you can define the value of n at the beginning. If you have a specific step size, you can use the equation n = (b - a)/h to find (n), but still (n) should be an even integer. For that reason you have to adjust the value of (n) to satisfy the condition anyway. I hope I could answer your question.
It is difficult to know why your output value is different without checking your code. That could be due to typing errors like mixing small and capital letters, or typing the numbers 1 or 0 instead of letters l or O, respectively. I recommend checking your code line by line until you find the difference. Thanks,
Currently, I prepare and publish videos about numerical methods in Python. I will make a video about Simpson 3/8 method in coming few weeks. Thanks for your comment.
Download your FREE "MATLAB Cheat Sheet" from here: mechtutor.thinkific.com/products/digital_downloads/matlab-cheatsheet
It blows my mind how simply this should be and yet my professor makes it so hard, you have my eternal gratitude
Dude, I can't express how grateful I am when I see your channel. so freaking helpful thxx
This is what I was hoping to find. Thank's to this amazing work I now fully understand the Simpson's rule. For all the seekers: the actual formula is on 5:24.
You have saved so many lives!! I am so thankful for your existence !!!
Thank you so much for the comprehensive tutorial. It's indeed an eye opener for me, most especially the programming aspect of it
Cheers fella. Couldn’t find a solution for my uni coursework but this one is the only one that worked cheers
Thanks a lot, you really saved my precious time!
Thanks a lot. Kindly continue making such videos. Really helpful.
Thank you dude!
how to find the error by using simson's 1/3 rule , plz explain
please i'm having issues relating this to waterplane area when given the half-breath and station spacing for marine designs using MATLAB...please i need ASAP help, thank you
How can i plot using simpson rule?? I have 500 values of y corresponding to 500 values of x now i have to integrate using simpson 1/3rd rule and want to plot it.
Thank you, your videos are great!
Thank you! very helpful, but shouldn't you use the absolute value of f(a)+f(b) while calculating s the first time?
Thanks for making this Ava
Is it in C language??
How can you use this method if you only have a data set, not a function?
Very good question!
Numerical integration methods like trapezoidal and Simpson rules can be used for data points as well. Instead of getting the value of y from a function f(x), they will be taken from an array y = [y1,y2,...,yn]. If x differences (step size h) are equal, you can use almost the same algorithm, otherwise you need to consider the x array, x = [x1,x2,...,xn], by multiplying xi by yi in each term.
I hope I could answer your question clearly.
Thank you for the comment and question.
how to find I if n gets different values
In this code, the number of divisions (n) is set by the user and the step size (h) is calculated accordingly. That means you can define the value of n at the beginning. If you have a specific step size, you can use the equation n = (b - a)/h to find (n), but still (n) should be an even integer. For that reason you have to adjust the value of (n) to satisfy the condition anyway.
I hope I could answer your question.
I put the same exact coding as yours, and i got different value. Why is that?
It is difficult to know why your output value is different without checking your code. That could be due to typing errors like mixing small and capital letters, or typing the numbers 1 or 0 instead of letters l or O, respectively.
I recommend checking your code line by line until you find the difference.
Thanks,
Plz share 3 by 8 simpsons rule MATLAB code with finding error, in my code there is a minor error, not giving accurate result
Currently, I prepare and publish videos about numerical methods in Python. I will make a video about Simpson 3/8 method in coming few weeks.
Thanks for your comment.
thanks!
thank you so much
thank you so muchhhhhhhhhhhh
Waiting for your kind and soon response
+10 prro subs :v/ hail gera :v ggagaga
thank you so much
Thank you so much