Mathworks++
A C++ port of Python Mathworks
|
Functions | |
int | square (int base) |
Gets the square of the number. More... | |
double | square (double base) |
Gets the square of the number. More... | |
int | cube (int base) |
Gets the cube of the number. More... | |
double | cube (double base) |
Gets the cube of the number. More... | |
int | calc (int base, int power) |
Raises a number to a power. More... | |
double | calc (double base, int power) |
Raises a number to a power. More... | |
int mathworks::exponent::calc | ( | int | base, |
int | power | ||
) |
Raises a number to a power.
base | The base. |
power | The power to raise "base" to. |
double mathworks::exponent::calc | ( | double | base, |
int | power | ||
) |
Raises a number to a power.
base | The base. |
power | The power to raise "base" to. |
int mathworks::exponent::cube | ( | int | base | ) |
Gets the cube of the number.
base | The base to cube. |
double mathworks::exponent::cube | ( | double | base | ) |
Gets the cube of the number.
base | The base to cube. |
int mathworks::exponent::square | ( | int | base | ) |
Gets the square of the number.
base | The base to square. |
double mathworks::exponent::square | ( | double | base | ) |
Gets the square of the number.
base | The base to square. |