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 | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

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

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

**Physics Forums | Science Articles, Homework Help, Discussion**