IVS-calculator
Loading...
Searching...
No Matches
mathlib.cpp File Reference
#include "mathlib.h"
#include <cmath>
Include dependency graph for mathlib.cpp:

Go to the source code of this file.

Namespaces

namespace  mathlib
 

Functions

double mathlib::add (double a, double b)
 Implementation of function add.
 
double mathlib::subtract (double a, double b)
 Implementation of function subtract.
 
double mathlib::multiply (double a, double b)
 Implementation of function multiply.
 
double mathlib::divide (double a, double b, MathError &err)
 Implementation of function divide.
 
double mathlib::factorial (int a, MathError &err)
 Implementation of function factorial.
 
double mathlib::power (double base, int exp)
 Implementation of function power.
 
double mathlib::root (double base, int n, MathError &err)
 Implementation of function root.
 
double mathlib::modulo (double a, double b, MathError &err)
 Implementation of function modulo.