12.07.2015 Views

Matlab/Octave Tutorial

Matlab/Octave Tutorial

Matlab/Octave Tutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Definite integralsSuppose we wantThe syntax is:gdxwith g defined as before.>> int_def_g=int(g,x,-pi,pi)int_def_g =-(c*cos(pi*c)+a*sin(pi*c)exp(pi*a)^2*c*cos(pi*c)+exp(pi*a)^2*a*sin(pi*c))/exp(pi*a)/(a^2+c^2)Now determine the numerical value of int_def_g fora=2 and c=4.138

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!