summaryrefslogtreecommitdiff
path: root/Help/guide/tutorial/Step2/MathFunctions/MathFunctions.cxx
blob: 781d0ecc4e4a19a65ccd9b79c1d56f7af8226fe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "MathFunctions.h"

// TODO 11: include cmath

// TODO 10: Wrap the mysqrt include in a precompiled ifdef based on USE_MYMATH
#include "mysqrt.h"

namespace mathfunctions {
double sqrt(double x)
{
  // TODO 9: If USE_MYMATH is defined, use detail::mysqrt.
  // Otherwise, use std::sqrt.
  return detail::mysqrt(x);
}
}