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 4739 times and licensed 109 times
www.codecogs.com/d-ox/computing/lowlevel/machine_epsilon.php
Controller: CodeCogs    Contact Controller

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.
Click for details on using CodeCogs in ExcelReal cc_machine_epsilon ()
This function is available as a Microsoft Excel add-in.

Function Documentation

Add calculator to your site 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:
#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
Authors:
Lucian Bentea (August 2005)
Source Code:
Register

- To get code register with CodeCogs. Already a Member, then Login.


Last Modified: 18 Oct 07 @ 17:07     Page Rendered: 2008-05-09 14:50:19

Page Comments

  You must login to leave a messge


Valid CSS!   Valid XHTML 1.0 Transitional