#include<cmath>
#define _USE_MATH_DEFINES
- Arithmetic operators
- The math library symbolic constant for π
- Raising a number to a power: the
pow
function
#include<cmath>
- Arithmetic operators
- Raising a number to a power: the
pow
function
- Calculating the square root of a number: the
sqrt
function
- Raising a number to a power: the
pow
function
- Simple output formatting: fixed point output and setting the number of decimal places
- Arithmetic operators
- The unary minus operator
- Converting a more complex function to C++