43double pow(
double base,
double exponent) {
205double fmod(
double x,
double y) {
226template <
class RandomIt>
391 void insert(iterator position,
const T& value) {
A simple vector class template.
void erase(iterator position)
Removes the element at the specified position.
void reserve(size_t newCapacity)
Reserves storage for the specified number of elements.
vector()
Default constructor.
void pop_back()
Removes the last element of the vector.
void resize(size_t newSize)
Resizes the vector to contain the specified number of elements.
T & front()
Returns a reference to the first element.
void push_back(const T &value)
Adds an element to the end of the vector.
iterator begin()
Returns an iterator to the first element.
void swap(vector &other)
Swaps the contents of the vector with another vector.
void clear()
Clears the contents of the vector.
iterator end()
Returns an iterator to the last element.
size_t size() const
Returns the number of elements in the vector.
T & back()
Returns a reference to the last element.
void insert(iterator position, const T &value)
Inserts an element at the specified position.
bool empty() const
Checks if the vector is empty.
Provides common mathematical functions and vector operations.
iostream cout
Standard output stream.
int abs(int x)
Computes the absolute value of an integer.
void shuffle(RandomIt first, RandomIt last)
Shuffles the elements in a range.
double cbrt(double x)
Computes the cube root of a number.
double floor(double x)
Computes the floor of a number.
double cosh(double x)
Computes the hyperbolic cosine of a number.
double acos(double x)
Computes the arc cosine of a number.
iostream cerr
Standard error stream.
double sin(double x)
Computes the sine of a number.
double sqrt(double x)
Computes the square root of a number.
double log10(double x)
Computes the base-10 logarithm of a number.
double exp(double x)
Computes the exponential function of a number.
double acosh(double x)
Computes the hyperbolic arc cosine of a number.
iostream endl
End-of-line manipulator.
double fabs(double x)
Computes the absolute value of a floating-point number.
double tanh(double x)
Computes the hyperbolic tangent of a number.
double atan(double x)
Computes the arc tangent of a number.
double asin(double x)
Computes the arc sine of a number.
double log(double x)
Computes the natural logarithm of a number.
double sinh(double x)
Computes the hyperbolic sine of a number.
double tan(double x)
Computes the tangent of a number.
double asinh(double x)
Computes the hyperbolic arc sine of a number.
double atanh(double x)
Computes the hyperbolic arc tangent of a number.
double pow(double base, double exponent)
Computes the power of a number.
double atan2(double y, double x)
Computes the arc tangent of y/x.
double ceil(double x)
Computes the ceiling of a number.
double fmod(double x, double y)
Computes the remainder of the division of two numbers.
double cos(double x)
Computes the cosine of a number.