EXPLORING CYBERSPACE…

Speed up shutting down your PC

June 10, 2009 · Leave a Comment

Guys, do you feel your computer taking up of your precious time shutting down itself. Well do not worry because you shall now be able to cure up your troubles with this post.

The following instructions will allow your computer to shut down much faster. This specific change tells the operating system to shut down the services on your computer at faster rate; instead of shutting down at the default 20,000 ms, your computer will be shutting down those services in 1,000 ms, after applying this change you should see a significant difference in the amount of time it takes to shutdown your PC. Below you’ll find some simple steps to speed up your computers shut down time.

1. These tweaks require that you venture into your registry, please backup your registry.

2. Go to Start > Run when the Run box opens type in regedit

3. Your registry should have opened [Just checking...have you backed up your registry?] Navigate to the following keys; HKEY_LOCAL_MACHINE > System > CurrentControlSet > Control

4. When you get to Control click on it, the pane to the right should have a listing of several keys, double-click on;

>WaitToKillServiceTimeout, change it to ‘1000‘ (changing this forces your computer during shutdown to end services that are running much faster)

5. Once you ‘ve changed these settings restart your computer and your settings should have taken effect.

→ Leave a CommentCategories: Registry Tweaks

Trapezoidal Rule

June 10, 2009 · Leave a Comment

#include<conio.h>
#include<stdio.h>
#include<dos.h>

float func(float x)
{
return(x/(5+2*x));
}

void main()
{
clrscr();
float result,a,b,h,sum=0;
int i,j,n;
printf("Enter the lower limit");
scanf("%f",&a);
printf("Enter the upper limit");
scanf("%f",&b);
printf("Enter the no. of sub-intervals");
scanf("%d",&n);
h=(b-a)/n;
sum=func(a)+func(b);
for(i=1;i<=n;i++)
{
sum+=(2*func(a+(i)*h));
}
result=(sum*h)/2;
printf("The value of integral is %f",result);
delay(4000);
}

→ Leave a CommentCategories: Numerical Techniques · Programming in C

Lagrange’s Formula

June 10, 2009 · Leave a Comment

#include<conio.h>
#include<stdio.h>
#include<dos.h>
void main()
{
 clrscr();
 float ax[50],ay[50],nr,dr,y=0,x;
 int I,j,n;
 printf(“\nEnter the no of terms:”);
 scanf(“%d”,&n);
 for(i=0;i<n;i++)
 {
 printf(“\nEnter the value for x and y::”);
 scanf(“%f %f”,&ax[i],&ay[i]);
 }
 printf(“\nEnter the value for which function is to be calculated:”);
 scanf(“%f”,&x);
 for(i=0;i<n;i++)
 {
 nr=dr=1;
 for(j=0;j<n;j++)
 {
 if(j!=i)
 {
 nr=nr*(x-ax[j]) ;
 dr=dr*(ax[i]-ax[j]);
 }
 }
 y=y+(nr/dr)*ay[i];
 }
 printf(“\n\nThe value for function at %f is %f”,x,y);
 delay(3000);
}

→ Leave a CommentCategories: Numerical Techniques · Programming in C

Integretion using Simpson’s 3/8 rule

June 10, 2009 · Leave a Comment

#include<conio.h>
#include<stdio.h>
#include<dos.h>
float func(float x)
{
 return(1/(1+x*x));
}

void main()
{
 clrscr();
 float result,a,b,h,sum=0;
 int i,j,n;
 printf("Enter the lower limit");
 scanf("%f",&a);
 printf("Enter the upper limit");
 scanf("%f",&b);
 printf("Enter the no. of sub-intervals");
 scanf("%d",&n);
 h=(b-a)/n;
 sum=func(a)+3*(func(a+h))+func(b);
 for(i=2;i<n;i++)
 {
 if(i%3==0)
 sum+=2*func(a+i*h);
 else
 sum+=3*func(a+i*h);
 }
 result=(sum*h*3)/8;
 printf("The value of integral is %f",result);
 delay(4000);
}

→ Leave a CommentCategories: Numerical Techniques · Programming in C