Symbolics
Symbolics
Basicproperties Thesumoftwoevenfunctionsiseven,andanyconstantmultipleofanevenfunctioniseven. Thesumoftwooddfunctionsisodd,andanyconstantmultipleofanoddfunctionisodd. Theproductoftwoevenfunctionsisanevenfunction. Theproductoftwooddfunctionsisanevenfunction. Theproductofanevenfunctionandanoddfunctionisanoddfunction. Thequotientoftwoevenfunctionsisanevenfunction. Thequotientoftwooddfunctionsisanevenfunction. Thequotientofanevenfunctionandanoddfunctionisanoddfunction. Thederivativeofanevenfunctionisodd. Thederivativeofanoddfunctioniseven. Thecompositionoftwoevenfunctionsiseven,andthecompositionoftwooddfunctionsisodd. Thecompositionofanevenfunctionandanoddfunctioniseven. Thecompositionofanyfunctionwithanevenfunctioniseven(butnotviceversa). TheintegralofanoddfunctionfromAto+Aiszero(whereAisfinite,andthefunctionhasnovertical asymptotesbetweenAandA). TheintegralofanevenfunctionfromAto+Aistwicetheintegralfrom0to+A(whereAisfinite,and thefunctionhasnoverticalasymptotesbetweenAandA).
% how to make integral in matlab % note that integral will be for y with respect to x int(y,-pi,pi)
%if you want to plot a symbolic equation ezplot(x/pi,y,[-3*pi 3*pi]); hold on; ezplot(x/pi,cos(x),[-3*pi 3*pi]); hold on; ezplot(x/pi,5*cos(2*x),[-3*pi 3*pi]); grid