gaussquad9 - Next try the integration of cos(x from-pi/4 to...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
n Integrate cos(x) from -pi/2 to pi/2 I >> [x,w]=GLTable(8) %set n=8 >> Janal=sin(pi/2)-sin(-pi/2) %analytical value of int cos(x)dx from -pi/2 to pi/2 >> J=0.5*pi*dot(w,cos(0.5*pi*x)) % b-a/2=pi/2, b+a/2=0
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Next try the integration of cos(x) from -pi/4 to pi/2 . In this case b-a/2=3pi/8 and b+a/2=pi/8. The integration is given by(next line) >> K= J=0.5*pi*dot(w,cos((3*pi/8)*x+pi/8))...
View Full Document

This note was uploaded on 09/11/2011 for the course MECH 231 taught by Professor Den during the Spring '11 term at Rutgers.

Ask a homework question - tutors are online