Quick actions

cmd+k|ctrl+k

Navigation

Languages

math++

Snippet info

Language

Cpp

Visibility

public

Author

danielmg17

Created

2018-02-05T16:26:29Z

Updated

2018-02-05T16:45:45Z

#include <iostream>
#include <iomanip> 
#define _USE_MATH_DEFINES
#include<cmath>
using namespace std;

long double pi = 3.141592653589793;

int main() {
    double x, y, z, w;
    cout << std::setprecision(16) << M_PI << endl << pi << endl << sin(M_PI/2) << endl;
    cout << hypot(3,4) << endl << pow(4,0.5) << endl;
}
INFO