forked from Jim-Hawkins/gravity-simulator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprueba.cpp
More file actions
18 lines (16 loc) · 728 Bytes
/
prueba.cpp
File metadata and controls
18 lines (16 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <iostream>
#include <limits>
#include <iomanip>
#include <cmath>
using namespace std;
int main(){
double m = 9.9999993774659967e+20;
double F = 3.7111137423073675e+24;
/*cout << std::setprecision(std::numeric_limits<double>::max_digits10) << F << endl;
cout << std::setprecision(std::numeric_limits<double>::max_digits10) << m << endl;
cout << std::setprecision(std::numeric_limits<double>::max_digits10)<< F/m << endl;
cout << std::setprecision(std::numeric_limits<double>::max_digits10)<< 1/m*F << endl;*/
cout << std::setprecision(std::numeric_limits<double>::max_digits10)<< pow(F, 2.0) << endl;
cout << std::setprecision(std::numeric_limits<double>::max_digits10)<< pow(F, 2) << endl;
return 0;
}