Saturday, August 11, 2007

WINDOWS VISTA





Hi Everybody,
I am updating the Blog after a long long time. Well I have something new for you all. I am going to talk about Microsoft's new Operating System, the long awaited and hugely hyped Windows Vista...


Well I somehow bumped across Windows Vista Ultimate Edition a few days back and I was just checking out some of the features of Windows Vista...As you must have already seen the exciting Screenshot of this O.S and must be thrilled but here I will give you some good and bad points of Vista as well..They are as follows
GOOD POINTS:

a)This latest Edition of the OS has a tremendous look and feel. The Aero/Glass interface simply rocks and is very Sofisticated as well. The Black Taskbar and the awesome Picture Quality of the Wallpapers suites today computing aptly. Essentially the Glass interface adds value to the design and the look..Thus this OS is very aptly suited for Laptops since this supports Vibrant Technology Screens and the Resolution is very good even in Laptops TFT Monitors.
b)This OS has a terrific sound Quality and the noise Reduction is simply Great. Thus the Music and the Videos Experience is far far better than that of XP...
c)The OS has some good Features like Skipping or ignoring portions which are corrupted. This also works in case of Copying and does not stop due to Cyclic Redundancy Errors!!!


Sunday, July 08, 2007

Mathmatical Precision of Numbers

Hey Everybody check this out.....
I am going to talk about Mathematical Precision of Computer Programming Languages in this Article...I saw some Articles where there were some people who wanted to know the Factorial of 100...So I solved the problem in 3 languages to check the Mathematical Precision and this is what I got as Result.....

/*---------------------------Program in C--------------------------*/
#include
#include
void main(void)
{
double num,fact,i;clrscr(); fact=1.00;
printf("\n\n\tPlease Enter the Number: ");
scanf("%lf",&num);
for(i=1;i<=num;i++)
fact=fact*i;
printf("\aThe Number is: %lf ",fact); getch();
}/*-----------------------End of Main-------------------------*/

OUTPUT: 9.33621544394410220000000000000000e+157

/*-------------------PROGRAM IN JAVA--------------------------------*/
import java.io.*;
class Factorial{
public static void main(String args[]) {
double a=0,i,f=1;
try {
System.out.print("\n\n\tPlease Enter the Number: ");
DataInputStream d=new DataInputStream(System.in);
a=Integer.parseInt(d.readLine());
}catch(Exception e) { }
for(i=a;i>0;i--)
f*=i;
System.out.println("The Factorial of "+a+" is "+f);
}
}/*-----------------------End of Class Factorial----------------------------*/

OUTPUT: 9.336215443944118E157

//------------------------PROGRAM IN C#.NET--------------------------//

using.System.Data;
class Fact
{
private double num,fact,i;
public Fact( )
{
this.fact=1;
}
public void input( ){
Console.Write("\n\tPlease Enter the Number upto which you want to See: ");
num=int.Parse(Console.ReadLine( ));
}
public void calculate( ){
for(i=1;i<=num;i++)
fact*=i;
Console.Write("\n\tThe Factorial of"+num+" is :"+fact);
}
public static void main(String [] args) {
Fact fac=new Fact ( );
fac.input( );
fac.calculate( );
}
}/*--------------------------End of C# Program-------------------------------*/

OUTPUT: 9.336215443944102E+157

//-----------------------------------------------------------------//

Comments: So you see from the above examples that the Languages are getting Richer and more Advanced the Mathematical Precision decreases. The Modern Languages are meant for all Practical Purposes and real Life problem Solving so they are not very Precise but they deal with the Data more Effectively...............