Posts

Showing posts from March, 2015

Moving Car > C Program

Computer Graphics Moving Car > C Program #include <graphics.h> #include <dos.h> #include <conio.h>  main() {

Polygon Clipping Algorithm by sutherland and hodgeman > C Program

Computer Graphics Polygon Clipping Algorithm by sutherland and hodgeman > C Program #include<stdio.h> #include<conio.h> #include<graphics.h>

Dynamic Programming > Optimal binary search tree > C Program

Analysis of Algorithms Dynamic Programming > Optimal binary search tree > C Program #include<stdio.h> #include<conio.h> #define MAX 10 void main() {

Fitting a Binomial Distribution>Scilab

 Applied Mathematics Fitting a Binomial Distribution>Scilab X=[0 1 2 3 4] P=[0 0 0 0 0] F=[17 52 54 31 6]

E(X) AND V(X) AND MOMENTS OF PROBABILITY DISTRIBUTION FUNCTION> Scilab

Applied Mathematics E(X) AND V(X) AND MOMENTS OF PROBABILITY DISTRIBUTION FUNCTION> Scilab X=[0 1 2 3 4] PX=[0.41 0.41 0.15 0.02 0.01] EX=0,VX=0,M1=0,M2=0,M3=0,M4=0,s1=0,s2=0,s3=0; for(i=1:5)

Minimum And Maximum using Divide and Conquer > C Program

Analysis of Algorithm Minimum And Maximum using divide and conquer #include<stdio.h> #include<conio.h> void minmax(int i,int j,int *min, int *max); int a[20]; void minmax(int i,int j,int *min, int *max) {

REGRESSION LINES > Scilab

Applied Mathematics REGRESSION LINES > Scilab X=[10 12 13 16 17 20 25] Y=[19 22 24 27 29 33 37] Sx=0;Sy=0;Sx2=0;Sy2=0;Sxy=0;byx=0;bxy=0;Mx=0;My=0;

CORRELATION COEFFICIENT BY KARL PEARSON METHOD > Scilab

Applied Mathematics CORRELATION COEFFICIENT BY KARL PEARSON METHOD > Scilab X=[12 17 22 27 32] Y=[113 119 117 115 121] Sx=0;Sy=0;Sxy=0;Sx2=0;Sy2=0;r=0;Mx=0;My=0;

Implement Multiplication of two unsigned n-bit binary numbers with shift and add method. > Java Program

Computer Organization and Architecture A Java Program for Implement Multiplication of two unsigned n-bit binary numbers with shift and add method. The numbers are taken as input from the user in decimal form and must be converted from decimal to binary form as required. The final answer should be shown to the user in both decimal and binary form. import java.util.*; //Importing all classes of Util Package public class BitMultiply //Creating a class named BitMultiply  {

Bezier Curve > C Program

Computer Graphics Bezier Curve > C Program #include<graphics.h> #include<math.h> int x[4],y[4]; void bezier(int x[4],int y[4]) { int gd=DETECT,gm,i;

Bresenham's Line Drawing Algorithm > C Program

Computer Graphics Bresenham's Line Drawing Algorithm > C Program #include<stdio.h> #include<conio.h> #include<graphics.h> void main() {