Skip to content
Snippets Groups Projects
Commit c538073f authored by Katharina Heck's avatar Katharina Heck Committed by Timo Koch
Browse files

[test][io] allow adl for math functions

(cherry picked from commit 120e441a)
parent 8f5346fd
No related branches found
No related tags found
2 merge requests!617[WIP] Next,!406Port using adl for std mathfunctions to next
...@@ -46,8 +46,10 @@ int main() ...@@ -46,8 +46,10 @@ int main()
{ {
x[i] = xMin + xRange * double(i) /double(numIntervals); x[i] = xMin + xRange * double(i) /double(numIntervals);
y[i] = x[i]*x[i]; y[i] = x[i]*x[i];
yMin = std::min(yMin, y[i]); using std::max;
yMax = std::max(yMax, y[i]); using std::min;
yMin = min(yMin, y[i]);
yMax = max(yMax, y[i]);
} }
gnuplot.setXRange(0, 5); gnuplot.setXRange(0, 5);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment