#Plotting the function
#It can be seen from the figure that function is neither even nor odd in the given interval
x=var('x')
f1=function('f1',x)
f1=(cos(x))^2
f2=function('f2',x)
f2=(sin(x))^2
f1.plot(xmin=-pi,xmax=0)+f2.plot(xmin=0,xmax=pi)

SageDays/Kreyszig-10.4-8 (last edited 2010-08-12 13:56:33 by Aashita)