calculator.h

#ifndef __CALCULATOR_H__

#define __CALCULATOR_H__

#include "utilities.h"

// Desc: This function will raise the number e to the power provided

// Pre: None

// Post: The value of e raised to the power provided will be appriximated

// using a series calculation of 8 terms

double Exponential(const double power);

// Desc: This function will calculate and return the factorial of the

// given number

// Pre: fact must be initialized to a value that is zero or greater

// Post: The factorial of the number will be calculated and returned

long Factorial(const long fact);

// Desc: This function will calculate the value of the given base, raised

// to the given power and return it to the calling function

// Pre: power must be a value greater than or equal to zero

// Post: The value of the base raised to the power will be returned to

// the calling function

double Power(const double base, const long power);

// Desc: This function will calculate the sin value of the given input

// Pre: The parameter num_terms must be a positive number

// Post: The value of the sine function applied to the input parameter

// will be approximated using a series calculation, with the given

// number of terms

double Sine(const double input, const long num_terms);

// Desc: This function calculates the given root of the given number

// Pre: The root parameter must be a non-zero, positive number

// Post: The root of the number will be approximated using an iterative

// method, starting the process with an intial guess of the initial value

double Root(const double num, const long root);

// Desc: This function will calculate the hyperbolic cosine of the given input

// Pre: None

// Post: The hyperbolic cosine of the given number will be approximated

// and returned by raising the number e to the appropriate values

double Cosh(const double num);

#endif