Double integraltion by Trapazoidal rule
2016-08-23
0 0 0
no vote
Other
Earn points
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define PI (2.0*asin(1.0))
double func(double,double);
void main()
{
double x,y,dx,dy,S,wx,wy,a,b,c,d;
int m,n,i,j;
n=100; c=0.0; d=1.0;
S=0.0;
dx=(b-a)/(double)m;
dy=(d-c)/(double)n;
#include<stdlib.h>
#include<math.h>
#define PI (2.0*asin(1.0))
double func(double,double);
void main()
{
double x,y,dx,dy,S,wx,wy,a,b,c,d;
int m,n,i,j;
/*M and n is the number of division*/
/*a and b is the lower and upper limit for x */
/*c and d is the lower and upper limit for y*/
m=100; a=0.0; b=2.0*PI;n=100; c=0.0; d=1.0;
S=0.0;
dx=(b-a)/(double)m;
dy=(d-c)/(double)n;
c
Related Source Codes
PClite
0
0
no vote
generic embeded FTP Client
0
0
no vote
UDP Test Demo
0
0
no vote
TMS320F28335 DSP transmits data to EEPROM through
0
0
no vote
TMS320F28335 CAN communication source code
0
0
no vote
No comment