August 27    : empty
   Home | Products | FAQ | Biorhythms | DSP | Links | Books | Employment | Contact | Order products 

Modules
PDAcalc_units

Category
Calculus
  * Integration
  * lorentz
  * polyder
  * VanDerPol
Constants
Data
Electronics
Engineering
Example
Financial
General
Keyboard
Mechanical
Physics
Statistics
User1
User2

Additions
Sierpinski
UserFunc
Projection
nyquist

User notes
evert
admin
walt
Jose

PDAcalc matrix

Category:  Calculus   Script:  Integration   Version:  1.00    Downloads:  10

Author:  adacs  
Short description: Integration example script
Date submitted: 2004-04-17
Module version: 1.49
Website:  

Little script showing the use of the quad() function used to integrate a function from a to b.

 

 001 % Integration
 002 a=-2;
 003 b=5;

 004
 
 005 function y=test(x)
 006 y=sin(x).*x;
 007 return
 008 
 009 % Integrate from a till b
 010 area=quad('test',a,b);
 011 
 012 % create range of 60 points
 013 % for plot function only.
 014 x=a:(b-a)/60:b;
 015 plot(x,test(x))
 016 title('Integration example')
 017 xlabel('Area='+area)
 
User Contributed Notes
Integration
Feel free to add your notes about this program About adding notes
There are no user contributed notes.
Feel free to add your notes about this program About adding notes
   Home | Products | FAQ | Biorhythms | DSP | Links | Books | Employment | Contact | Order products 
© 2002 -2008 ADACS LLC. All rights reserved.