Skip to content

Commit 155a7c1

Browse files
committed
chore: Added std:: to sin calls
1 parent bb771dd commit 155a7c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benches/bench_data.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const std::vector<std::pair<Function, Interval>> funcs_and_ints = {
2525
{{"sin", [](double x) { return std::sin(x); }}, {-M_PI, M_PI}},
2626
{{"cos", [](double x) { return std::cos(x); }}, {-M_PI, M_PI}},
2727
{{"f1", [](double x) { return std::abs(x) + x/2 - x*x; }}, {-1, 1}},
28-
{{"f2", [](double x) { return -3*std::sin(10*x) + 10*sin(std::abs(x) + x/2); }}, {-10, 10}},
28+
{{"f2", [](double x) { return -3*std::sin(10*x) + 10*std::sin(std::abs(x) + x/2); }}, {-10, 10}},
2929
};
3030

3131
const std::vector<alfi::dist::Type> dists = {

examples/interpolation/interpolation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ QVector<T> to_qvector(const std::vector<T>& v) {
1111

1212
double f(double x) {
1313
// return -3 * std::sin(10 * x) + std::abs(x) + 0.5 * x - x * x; // example 1
14-
return -3 * std::sin(10 * x) + 10 * sin(std::abs(x) + 0.5 * x); // example 2
14+
return -3 * std::sin(10 * x) + 10 * std::sin(std::abs(x) + 0.5 * x); // example 2
1515
// return std::sin(3 * M_PI * x) + std::cos(M_PI * x / 5); // periodic
1616
// return 1/(1+std::exp(-10000*(x-1))) - 1/(1+std::exp(-10000*(x+1))); // high local second derivative
1717
}

0 commit comments

Comments
 (0)