Math Preperation Zone: Program Codes and Algorithms
+5
BIT0129-Tabassum
Saiful
BIT0117-Ibrahim
BIT0115-Efat
BIT0122-Amit
9 posters
IITDU Forum :: Academics (BIT) :: Semester 3 :: MATH 304
Page 2 of 2
Page 2 of 2 • 1, 2
Re: Math Preperation Zone: Program Codes and Algorithms
Hey mostafa, download this [You must be registered and logged in to see this link.]
It contains some,not all, and not few flowcharts.
both downloading and unzipping passwords are
Click on spoiler to view.
In case you can't open any jpg file, try renaming the extension to png. I kind of messed up the extension
It contains some,not all, and not few flowcharts.
both downloading and unzipping passwords are
Click on spoiler to view.
- Spoiler:
foriit
In case you can't open any jpg file, try renaming the extension to png. I kind of messed up the extension
Re: Math Preperation Zone: Program Codes and Algorithms
- Code:
*****
=========================
Simple Trapezoidal Rule Algorithm to determine integration of a given function F(x)
=========================
*****
1. Determine the lower limit a and upper limit b of integration
2. Determine the segmetation width h
3. Calculate the number of segmentations n = (b-a)/h
4. Determine the initial value of sum as ( F(a) + F(b) )/2.0
5. Calculate sum = sum + F( a + i*h ), set i=i+1
6. If i<=n-1; go back to Step 5
7. Set ict = sum * h
8. Write the value of ict as integration result
9. Stop
Alternative approach (from step 5):
5. For i=1,2...n-1
i. set sum = sum + F(a + i*h)
Repeat i
6. set ict = sum * h;
7. Write the value of ict as integration result
8. Stop.
Re: Math Preperation Zone: Program Codes and Algorithms
- Code:
/*
Differentiating continuous equations
code by Amit
*/
#include<math.h>
#include<stdio.h>
double sinv, sindiff, value=0, h=.031416;
double differ() {
if (value==0) {
return ((sin(value+h)-sin(value))/h);
} else if (value==3.1416) {
return ((sin(value)-sin(value-h))/h);
} else {
return ((sin(value+h)-sin(value-h))/(2*h));
}
}
int main(void){
int i;
printf("\"X\",\"SinX\",\"Sin'X\"\n");
for (i=1;i<=100;i++) {
if (value>3.1416)value=0;
sinv=sin(value);
sindiff=differ();
printf("\"%f\",\"%f\",\"%f\"", value, sinv, sindiff);
printf("\n");
value+=(3.1416/6);
}
return 0;
}
Last edited by BIT0122-Amit on Sat May 22, 2010 3:21 am; edited 2 times in total
Re: Math Preperation Zone: Program Codes and Algorithms
ok guy's ........proceed on....you can complete your journey definitely...But i have a confuse why Alim is inactive at now????????
BIT0117-Ibrahim- Study Moderator
- Course(s) :
- BIT
Blood Group : B+
Posts : 96
Points : 234
Re: Math Preperation Zone: Program Codes and Algorithms
Alim gave all the codes required for tomorrow's exam in [You must be registered and logged in to see this link.] topic
Re: Math Preperation Zone: Program Codes and Algorithms
Thank you Alim You are very good boy....
BIT0117-Ibrahim- Study Moderator
- Course(s) :
- BIT
Blood Group : B+
Posts : 96
Points : 234
Re: Math Preperation Zone: Program Codes and Algorithms
BIT0122-Amit wrote:The codes of chapter 12 by rayhan are available [You must be registered and logged in to see this link.]
Well, this is interesting Rayhan o taile code korse abar forum eo dise pants o...err...hats off
BIT0130-Shakkhor- Programmer
- Course(s) :
- BIT
Blood Group : B+
Posts : 209
Points : 328
Re: Math Preperation Zone: Program Codes and Algorithms
BIT0130-Shakkhor wrote:BIT0122-Amit wrote:The codes of chapter 12 by rayhan are available [You must be registered and logged in to see this link.]
Well, this is interesting Rayhan o taile code korse abar forum eo dise pants o...err...hats off
Josh dialog
Saiful- Beta Release
- Course(s) :
- BIT
Blood Group : A+
Posts : 50
Points : 88
Page 2 of 2 • 1, 2
Similar topics
» Codes and algorithms for printing for contests
» Different Sorting algorithms illustrated in C
» Implementation of Different OS Algorithms by BIT0101 and BIT0122
» advantage and disadvantage of process scheduling algorithms
» Math 204 Help
» Different Sorting algorithms illustrated in C
» Implementation of Different OS Algorithms by BIT0101 and BIT0122
» advantage and disadvantage of process scheduling algorithms
» Math 204 Help
IITDU Forum :: Academics (BIT) :: Semester 3 :: MATH 304
Page 2 of 2
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Tue Sep 29, 2015 2:45 pm by Sophiawood
» Cisco EHWIC SFP/GE WAN Card
Mon Sep 07, 2015 11:08 am by Sophiawood
» Huawei S1700-28GFR-4P-AC Price
Thu Jun 25, 2015 2:31 pm by Sophiawood
» teach yourself C++ / Herbert Schildt Solutions
Wed Jun 03, 2015 1:52 pm by Abdullah Al Noman
» teach yourself c by herbert schildt pdf
Wed May 13, 2015 11:01 pm by Raquib Ridwan
» ASA 5506X With Firepower ASA5506-K9
Fri Apr 10, 2015 4:31 pm by Sophiawood
» New Trends in Deal Business
Tue Feb 03, 2015 9:38 pm by nersoa
» PoE Power Allocation for WS-C2960S-24PS-L
Wed Nov 05, 2014 11:12 am by Sophiawood
» How to cure back pain
Fri Oct 31, 2014 7:15 pm by Bergen Guildford