from math import exp
import matplotlib
from matplotlib import pyplot as plt
def phiplus(x,a):
    return(exp(-(0.5*(x-a)**2)))
def phimoins(x,a):
    return(-exp(-(0.5*(x-a)**2)))

L=[phiplus(i*0.01,3) for i in range(1,1000)]
P=[phimoins(i*0.01,6) for i in range(1,1000)]
K=[]
for m in range(len(L)):
    K.append((L[m]+P[m])*0.5)
O=[0.01*i for i in range (1,1000)]
plt.plot(O,L)
plt.plot(O,P)
plt.plot(O,K)
plt.show()
