a = var('a')
b = var('b')
assume(a<>0)
mh = (1-x^2)*exp(-x^2/2)/sqrt(2*pi)
mhft = (2*pi)^2*x^2*exp(-2*pi^2*x^2)
fk = exp(-32*x^2)/4
d = 5/2
f = fk(x = x-d) + fk(x = x+d)
wt = f(x=a*x+b)*mh*sqrt(a)
wt = sqrt(a)*(1-x^2)*exp(-x^2/2 -32*a^2*x^2 - 64*a*b*x - 32*b^2 + 160*a*x + 160*b - 200 )/sqrt(2*pi)/4
wt += sqrt(a)*(1-x^2)*exp(-x^2/2 -32*a^2*x^2 - 64*a*b*x - 32*b^2 - 160*a*x - 160*b - 200 )/sqrt(2*pi)/4
wt = integral(wt,x,-oo,oo)
wt = (wt.expand()).simplify()
ff = -abs(wt(a=1/a))
P = contour_plot(ff, (b,-4,4), (a,0,5), plot_points=300, contours=10, linewidths=0)
P.fontsize(25)
P.save('../images/wt0.png')
d = 5/2
wt = sqrt(a)*(d-b)*exp(-a^2*(d-b)^2)
wt += sqrt(a)*(d+b)*exp(-a^2*(d+b)^2)
wt *= 1/sqrt(2*pi)
ff = -abs(wt)
P = contour_plot(ff, (b,-4,4), (a,2,15), plot_points=300, contours=10, linewidths=0)
P.fontsize(25)
P.save('../images/wt0half.png')
P = contour_plot(ff, (b,-4,4), (a,1,15), plot_points=300, contours=10, linewidths=0)
P.fontsize(25)
P.save('../images/wt1.png')
P = contour_plot(ff, (b,-4,4), (a,0.5,15), plot_points=300, contours=10, linewidths=0)
P.fontsize(25)
P.save('../images/wt2.png')
P = contour_plot(ff, (b,-4,4), (a,0.25,15), plot_points=300, contours=10, linewidths=0)
P.fontsize(25)
P.save('../images/wt3.png')
|