#include #include // Biblioteka cmath using namespace std; int main() { double x = 0; // Typowe stale cout << "pi = " << M_PI << endl << "e = " << M_E << endl << "ln(2) = " << M_LN2 << endl; // Typowe funkcje: cout << "\nPodaj argument: "; cin >> x; cout << sqrt (x) << endl << pow (2,x) << endl << exp (x) << endl << sin (x) << endl << fmod (x,10) << endl << fabs (x) << endl; return 0; } /* Wszystkie funkcje biblioteki cmath dostepne sa pod adresem: http://www.cplusplus.com/reference/cmath/ Stale sa dostepne np. tu: http://www.quantstart.com/articles/Mathematical-Constants-in-C */