CodeCogs - An iteractive open source Numerical library Welcome... Login
CodeCogs
shopping cart
OSXWindowsLinux
Search CodeCogs
Numerical Components

Valid RSS

ComputingLowlevel

Machine Epsilon

Available under GPL (Free) and Commercial licence
get a GPL licence
COST (GBP)
this unit 0.00
sub units 0.00
add a commercial licence to your cart
0
viewed 4857 times and licensed 145 times

Returns the round off unit for double precision arithmetic.

Controller: CodeCogs  Contact Controller
+View version details
Contents hide toc
buy now     get GPL     add to cart

Interface

#include <codecogs/computing/lowlevel/machine_epsilon.h>

using namespace Computing::Lowlevel;

double machine_epsilon ()[inline]
Returns the round off unit for double precision arithmetic.

Function Documentation

Machine Epsilon Calculator
  
Add calculator to website or email
 
doublemachine_epsilon )[inline]
The machine epsilon, \epsilon is defined as the smallest positive number such that 1.0 + \epsilon is not equal to 1.0.
Example 1:
#include <codecogs/computing/lowlevel/machine_epsilon.h>
#include <iostream>
#include <iomanip>
int main()
{
  std::cout << "epsilon = ";
  std::cout << std::setprecision(15) << Computing::Lowlevel::machine_epsilon();
  std::cout << std::endl;
  return 0;
}
Output:
epsilon = 2.22044604925031e-016
References:
SUBSET, a C++ library of combinatorial routines, http://www.csit.fsu.edu/~burkardt/cpp_src/subset/subset.html
Returns:
the round off unit for double precision arithmetic
Source Code:

To view or download source code you need either a GPL or Commercial Licence.

buy now     get GPL     add to cart

Not a member, then Register with CodeCogs. Already a Member, then Login.


Page Comments

Format Excel Equations

  You must login to leave a messge


Last Modified: 25 Oct 09 @ 22:09     Page Rendered: 2010-03-13 23:43:27

Valid CSS!   Valid XHTML 1.0 Transitional