Simpson's Rule - Numerical Integration | Programming Numerical Methods in MATLAB

Поделиться
HTML-код
  • Опубликовано: 27 янв 2025

Комментарии • 34

  • @mechtutorcom
    @mechtutorcom  5 месяцев назад

    Download your FREE "MATLAB Cheat Sheet" from here: mechtutor.thinkific.com/products/digital_downloads/matlab-cheatsheet

  • @lukeyard100
    @lukeyard100 3 года назад +7

    It blows my mind how simply this should be and yet my professor makes it so hard, you have my eternal gratitude

  • @novendraanon3181
    @novendraanon3181 6 лет назад +25

    Dude, I can't express how grateful I am when I see your channel. so freaking helpful thxx

  • @leshamas_
    @leshamas_ 3 года назад +2

    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.

  • @sibusisosithole9778
    @sibusisosithole9778 5 лет назад +4

    You have saved so many lives!! I am so thankful for your existence !!!

  • @solomononuchefaruna5022
    @solomononuchefaruna5022 Год назад

    Thank you so much for the comprehensive tutorial. It's indeed an eye opener for me, most especially the programming aspect of it

  • @daveshanks9163
    @daveshanks9163 3 года назад

    Cheers fella. Couldn’t find a solution for my uni coursework but this one is the only one that worked cheers

  • @Benly39
    @Benly39 4 года назад +1

    Thanks a lot, you really saved my precious time!

  • @mamtakapoor2600
    @mamtakapoor2600 6 лет назад

    Thanks a lot. Kindly continue making such videos. Really helpful.

  • @weekdays206
    @weekdays206 11 месяцев назад

    Thank you dude!

  • @anayatullahkhan8427
    @anayatullahkhan8427 3 года назад

    how to find the error by using simson's 1/3 rule , plz explain

  • @eastenderirl7607
    @eastenderirl7607 4 года назад

    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

  • @karangupta_IIT_DELHI
    @karangupta_IIT_DELHI 2 года назад

    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.

  • @anthonyclarenceella2295
    @anthonyclarenceella2295 4 года назад

    Thank you, your videos are great!

  • @jacopocarra3772
    @jacopocarra3772 6 лет назад

    Thank you! very helpful, but shouldn't you use the absolute value of f(a)+f(b) while calculating s the first time?

  • @obiwaleabigaelchannel
    @obiwaleabigaelchannel 3 года назад

    Thanks for making this Ava

  • @bhawikamahajan2757
    @bhawikamahajan2757 3 года назад

    Is it in C language??

  • @laylabitar5853
    @laylabitar5853 4 года назад +2

    How can you use this method if you only have a data set, not a function?

    • @mechtutorcom
      @mechtutorcom  4 года назад +3

      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.

  • @rajakarunarlacrajakaruna9832
    @rajakarunarlacrajakaruna9832 4 года назад

    how to find I if n gets different values

    • @mechtutorcom
      @mechtutorcom  4 года назад +1

      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.

  • @hadif6165
    @hadif6165 4 года назад

    I put the same exact coding as yours, and i got different value. Why is that?

    • @mechtutorcom
      @mechtutorcom  4 года назад

      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,

  • @dr.muhammadrehansaleem7978
    @dr.muhammadrehansaleem7978 4 года назад

    Plz share 3 by 8 simpsons rule MATLAB code with finding error, in my code there is a minor error, not giving accurate result

    • @mechtutorcom
      @mechtutorcom  4 года назад

      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.

  • @Gandalfbaws
    @Gandalfbaws 5 лет назад +1

    thanks!

  • @archiboldpatsanza884
    @archiboldpatsanza884 6 лет назад

    thank you so much

  • @clarisabisa5109
    @clarisabisa5109 5 лет назад

    thank you so muchhhhhhhhhhhh

  • @dr.muhammadrehansaleem7978
    @dr.muhammadrehansaleem7978 4 года назад

    Waiting for your kind and soon response

  • @Beto234
    @Beto234 6 лет назад +1

    +10 prro subs :v/ hail gera :v ggagaga

  • @ahmedaljumele2701
    @ahmedaljumele2701 6 лет назад

    thank you so much

  • @emanawawdeh2368
    @emanawawdeh2368 4 года назад

    Thank you so much