Professional Documents
Culture Documents
1.Investigue cómo se usan las funciones rand () y time() y modifique el programa visto en clase
para que al final muestre el mensaje: "Benchmark: xx.x megaFLOPS" Donde xx.x es el valor del
rendimiento calculado por el mismo programa y redondeado a 1 decimal.
Corra el benchmark para cada una de las siguientes funciones:
x=1, x=1+1, x=2*3, x=1/pi, x=rand(), x=sqrt(n), x=exp(e*rand()), x=sin(pi*rand()),
x=factorial(170.0*rand())
REFERENCIAS
https://rogercostello.wordpress.com/2007/10/02/the-ultimate-limits-of-computing-a-computer-
the-size-of-earth/