You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
327 B
16 lines
327 B
#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);
|
|
}
|
|
}
|