Simpson's rule derivation in Maple

Discussion in 'Maple' started by Bart Vandewoestyne, Feb 7, 2007.

  1. Hello all,

    I'm trying to obtain the form of the Simpson's rule with
    equidistant points using Maple, so that I can save myself some
    time doing lengthy calculations by hand.

    I would like to get to the form

    h/3*(f0 + 4*f1 +f2)

    and the following Maple sheet is the best I could do yet:

    http://www.cs.kuleuven.be/~bartv/stuff/simpson_rule_derivation.mw

    As you can see in the sheet, i cannot do the substitutions

    z2-z1=h
    z1=z0=h

    to obtain the form that i want. Things get cluttered up and
    `simplify' doesn't do what i want :-(

    What would be the best way to modify my Maple sheet to obtain the
    form

    h/3*(f0 + 4f1 +f2)

    Thanks,
    Bart
     
    Bart Vandewoestyne, Feb 7, 2007
    #1
    1. Advertisements

  2. Nevermind, I was able to solve my problem.

    Regards,
    Bart
     
    Bart Vandewoestyne, Feb 7, 2007
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.