Python - SUMAS RIEMANN --- MEDICION ALTURA DEL RECTANGULO

 
Vista:

SUMAS RIEMANN --- MEDICION ALTURA DEL RECTANGULO

Publicado por santival (3 intervenciones) el 06/11/2013 03:11:08
Hola tengo el siguiente codigo en python:

1
2
3
4
5
6
7
8
9
10
11
def riemanSum(start, stop, step):
    result = 0.0
    increment = (stop - start)/step
    increment_tmp = increment/2
    x =start
    i=0.0
    while i < step:
        result += increment * f(x+increment_tmp)
        x += increment
        i+=1
    return result


alguien me dijo que me fijara en la medición de la altura del rectángulo... y ni idea cual es la medicion del rectangulo.... alguien me puede ayudaaaaaar?????
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder