- #1
omar yahia
- 9
- 0
in the trapezoidal rule
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 , x1 ,x2 ,x3
but now with n=2.5 , what are my points ??
thanks
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 , x1 ,x2 ,x3
but now with n=2.5 , what are my points ??
thanks