Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Calcular El Epsilon De La Libreria Gmp

DZone's Guide to

Calcular El Epsilon De La Libreria Gmp

·
Free Resource
Este codio calcula el epsilon de la libreria gmp, variando en cada ciclo la presicion del numero.


#include 
  
   
#include 
   
    
#include 
    
     

using namespace std;


int main(int argc, char **argv){
	unsigned long int i,j;
//	4294967295

	for (i=1;i<4294967295UL;i*=2){
		j=0;
		mpf_class epsilon(0.5,i);

		while(epsilon+1 != 1){
		//cout.precision(200000);
		//cout<<"Epsilon: "<
     
    
   
  
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}