<div dir="ltr">Prueba con esto<div><br></div><div><a href="http://www.ginac.de/CLN/cln.html#Introduction">http://www.ginac.de/CLN/cln.html#Introduction</a><br></div><div><br></div><div><p class="" style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">
CLN is a library for computations with all kinds of numbers. It has a rich set of number classes:</p><ul style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"><li>Integers (with unlimited precision),</li>
<li>Rational numbers,</li><li>Floating-point numbers:<ul><li>Short float,</li><li>Single float,</li><li>Double float,</li><li>Long float (with unlimited precision),</li></ul></li><li>Complex numbers,</li><li>Modular integers (integers modulo a fixed integer),</li>
<li>Univariate polynomials.</li></ul><p class="" style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">The subtypes of the complex numbers among these are exactly the types of numbers known to the Common Lisp language. Therefore <code>CLN</code> can be used for Common Lisp implementations, giving ‘<samp><span class="">CLN</span></samp>’ another meaning: it becomes an abbreviation of “Common Lisp Numbers”.</p>
<p class="" style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">The CLN package implements</p><ul style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"><li>Elementary functions (<code>+</code>, <code>-</code>, <code>*</code>, <code>/</code>, <code>sqrt</code>, comparisons, <small class="">...</small>),</li>
<li>Logical functions (logical <code>and</code>, <code>or</code>, <code>not</code>, <small class="">...</small>),</li><li>Transcendental functions (exponential, logarithmic, trigonometric, hyperbolic functions and their inverse functions).</li>
</ul><p class="" style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">CLN is a C++ library. Using C++ as an implementation language provides</p></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
El 20 de abril de 2014, 14:58, Enrique Esparza Alegría <span dir="ltr"><<a href="mailto:espaleg@ciencias.unam.mx" target="_blank">espaleg@ciencias.unam.mx</a>></span> escribió:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Soy un estudiante y tengo un problema con el siguiente programa en C++<div><br></div><div><br></div><div><br></div><div><div>#include<stdio.h></div><div>#include<conio.h></div><div>#include<stdlib.h></div>

<div>#include<math.h></div><div>main()</div><div>{</div><div>float i,b,P,F,fact;</div><div>int N,V;</div><div>FILE *archivo;</div><div>archivo=fopen("Estadistica de Poisson.csv", "w");</div><div>

printf("Dame el numero de datos.\nN=");</div><div>scanf("%d",&N);</div><div>fprintf(archivo,"Cuentas/Segundo,Factorial,Probabilidad\n");</div><div>printf("Dame el valor promedio P=\n");</div>

<div>scanf("%f",&P);</div><div>for (i=1;i<=N;i++)</div><div>{</div><div>printf("Dame el valor V=\n");</div><div>scanf("%d",&V);</div><div>fact=1;</div><div>for (b=1;b<=V;b++)</div>

<div>{</div><div>fact=b*fact;</div><div>}</div><div>F=pow(P,V)/(fact*pow(2.718281828,P));</div><div>printf("%d,%f,%f\n",V,fact,F);</div><div>fprintf(archivo,"%d,%f,%f\n",V,fact,F);</div><div>}</div><div>

getch();</div><div>}</div><div><br></div><div>Mi problema es que no puedo utilizar el programa debido a que requiero el factorial de un numero grande (factorial de 50) y debido a su tamaño no puede ser almacenado por ser muy grande.</div>

</div><div>También me gustaría saber como almaceno números igualmente pequeños (10^-65)</div><div><br></div><div>espero puedan ayudarme con mi problema</div><div>Muchas gracias y saludos!</div></div>
<br>_______________________________________________<br>
Lista de correo Cconclase <a href="mailto:Cconclase@listas.conclase.net">Cconclase@listas.conclase.net</a><br>
<a href="http://listas.conclase.net/mailman/listinfo/cconclase_listas.conclase.net" target="_blank">http://listas.conclase.net/mailman/listinfo/cconclase_listas.conclase.net</a><br>
Bajas: <a href="http://listas.conclase.net/index.php?gid=2&mnu=FAQ" target="_blank">http://listas.conclase.net/index.php?gid=2&mnu=FAQ</a><br></blockquote></div><br></div>