Data Structures & Algorithms in C++
Goodrich, Tamassia, Mount and Goldwasser
Loading...
Searching...
No Matches
Namespaces | Functions
power.h File Reference

Namespaces

namespace  dsac
 Code from the zyBook "Data Structures and Algorithms in C++" by Goodrich/Tamassia/Mount/Goldwasser.
 
namespace  dsac::recursion
 Code from the chapter "Recursion".
 

Functions

double dsac::recursion::power_slow (double x, int n)
 Computes the value of x raised to the nth power, for nonnegative integer n.
 
double dsac::recursion::power (double x, int n)
 Computes the value of x raised to the nth power, for nonnegative integer n.