Book
Advanced Engineering Mathematics
Author
Erwin Kreyszig
Edition
8th Edition
a0,an,n =var('a0,an,n') # f(x) is even as seen by the figure an=2/pi*(integral((x^2)/2*cos(n*x),x,-pi,pi)) a0=1/(pi)*(integral((x^2)/2,x,-pi,pi)) print 'a0=',a0 print 'an=',an #Plotting the function x=var('x') f1=function('f1',x) f1=(x^2)/2 f1.plot(xmin=-pi,xmax=pi)
Solution by:
- Snehal Mitragotri, Ex-student, IIT Roorkee
- Aashita Kesarwani, Student, IIT Roorkee
Tale PrafullKumar, Student, IIT Roorkee