in the trapezoidal rule(adsbygoogle = window.adsbygoogle || []).push({});

is it ok to use a number of segments that is not integer ?

i ask this because in an exam i had , i was asked to use a step of h=0.4

and the interval was from x=1 to x=2

and you know that ," h " is the step ," n " is the number of segments , "a" and "b" are the limits of the integration , so ,

h=(b-a)/n

0.4=1/n

n=2.5 ??! is this ok ?

when i was dealing with "n"=integer , i was able to say that the number of points are n+1

for example

when n=2 segments ------> i have 3 points , x_{1},x_{2},x_{3}

but now with n=2.5 , what are my points ??

thanks

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# B Trapezoidal Rule , number of segments

Have something to add?

Draft saved
Draft deleted

Loading...

Similar Threads - Trapezoidal Rule number | Date |
---|---|

The trapezoidal rule | Jan 2, 2014 |

Error of Simpson's, Trapezoid, etc. Rules | Nov 11, 2013 |

Trapezoidal, simpsons rule, and higher order approximations | Dec 4, 2009 |

Show that trapezoidal rule is exact for y(t)=t and y(t)=1? | Sep 7, 2009 |

Composite Trapezoidal Rule Help | Aug 20, 2008 |

**Physics Forums - The Fusion of Science and Community**