from pylab import *
import matplotlib.pyplot as plt
import math
def plot_sinoidal(lista_de_x,h,b,c):
    y = []
    for x in lista_de_x:
        y.append(h/(1+math.e**(c*(b-x))))
    figure()
    plot(lista_de_x,y,'r')
    xlabel('X')
    ylabel('Sinoidal')
    title('Funcion Sinoidal')
    show()
#EL PROGRAMA ARRANCA AQUI!
    puntos_en_x = linspace (0,10,100)
h = 1
b = 4.5
c = 1.5
plot_sinoidal(puntos_en_x,h,b,c)
 
No hay comentarios:
Publicar un comentario