v2.5



  home nerd inside pictures projects ascertain Click here to maximize viewing area when viewing pics.  

CONTACT
ASCERTAIN | Machine Epsilon
LINKS
Recent: (2 days)
Random Pics:

  
  
  
Search anoop.net

Google Powered
[ less ] [ edit ] [ + ]
Machine Epsilon
Machine epsilon, though it can be a tricky concept is actually very simple. Machine epsilon is defined to be the smallest number (positive or negative) when added to 1 gives something that is not 1. ie greater or less than 1.

To a person who has not encountered machine epsilon before, this concept might seem rather lame but if you were to sit down and code it out and try to find this value, you may be getting into something that is difficult to find. Essentially, you are looking for the smallest positive or negative number your computer can calculate.

The steps to finding this number are quite simple once you realize what the number actually is. Not its value but what it represents.

You may encounter 'machine epsilon' while programming in maple or matlab.

Machine epsilon value can be found this way:

<script language="javascript">
var value = 1;
while ( (value + 1) > 1) {
value /= 2;
}
value *= 2;
document.write("The machine epsilon value for this machine is: " + value);
</script>


Output:


You should remember that the value above is not the same on all machines. Hence, the code will help you to find it.   
[less] [edit]

View Anoop Bhat's profile on LinkedIn

Perry99.net
Ivan Mikan dot Com
Ela's Flickr Page
qOrbit Technologies
Club GP
Java.SUN.com
OpenBSD
ThinkGeek
Slashdot
Mozilla
7 Dove
php.net
MySQL
IBM
70 Years of Indian Cinema
T.M. Ramachandran





Design and implementation done by Anoop Bhat
Copyright © by Anoop Bhat 2010. All rights reserved.
Used to be powered by OpenBSD, PHP, MySQL, and The VI Editor. ADN recommends the use of Mozilla Firefox.
Now powered by Linux, PHP, MySQL, and The VI Editor.