sábado, 7 de marzo de 2015

PICO

PICO


La función pico está conformada por 3 parametro h,b,c:
In [3]:
from pylab import *
import matplotlib.pyplot as plt
import math
def plot_pico(lista_de_x,h,b,c):
y = []
for x in lista_de_x:
y.append(math.e ** -abs( c * (x - b)))
figure()
plot(lista_de_x,y,'r')
xlabel('x')
ylabel('pico')
title('Funcion pico')
show()
#EL PROGRAMA ARRANCA AQUI!
puntos_en_x = linspace (0,10,100)
h = 1
b = 6
c = 2
plot_pico(puntos_en_x,h,b,c)

No hay comentarios:

Publicar un comentario