1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
#include <cmath>
int main() {
double x = 2.5;
int n = 3;
std::cout << "Gamma function of " << x << ": " << std::tgamma(x) << std::endl;
std::cout << "Error function of " << x << ": " << std::erf(x) << std::endl;
std::cout << "Hyperbolic sine of " << x << ": " << std::sinh(x) << std::endl;
std::cout << "Largest integer not greater than " << x << ": " << std::floor(x) << std::endl;
return 0;
}
Back to cmath