How to plot an integral function using SageMath?

Viewed 28

How do I integrate and plot this for -3 < x < 3 ?

integrate exp(-y^2) * sin(12*y^3)

My Code

var('y')
integ = integrate(exp(-y^2), y); integ
intg = integrate(sin(12*y^3), y) * 1/2 * pi * erf(y); intg
plot(intg, xmin=-3, xmax=3)

This is the resulting graph that I get, but it shows 2 errors which I don't understand. And also, the graph doesn't go till x=-3.

Resulting Graph

0 Answers
Related