Skip to content
Snippets Groups Projects
Commit 926a91b9 authored by Carl Philipp Klemm's avatar Carl Philipp Klemm
Browse files

use std::sqrt for correct precision handling

parent e4773cc2
No related branches found
No related tags found
No related merge requests found
#include "warburg.h"
#include "strops.h"
#include <cstdlib>
#include <math.h>
#include <cmath>
#include <cassert>
#include "log.h"
......@@ -33,7 +33,7 @@ Warburg::Warburg(std::string paramStr, size_t count, bool defaultToRange)
std::complex<fvalue> Warburg::execute(fvalue omega)
{
assert(ranges.size() == paramCount());
fvalue N = ranges[0][ranges[0].step]/(sqrt(omega));
fvalue N = ranges[0][ranges[0].step]/(std::sqrt(omega));
return std::complex<fvalue>(N, 0-N);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment