Skip to content

Commit

Permalink
unnest
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Dec 31, 2024
1 parent c1ab8c7 commit ea8a155
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions numerics/sin_cos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,13 @@
}
}
// To analyse it near x = 5:
#define UNDER_OSACA_HYPOTHESES(statement) \
do { \
{ \
constexpr double x = 5; \
/* To avoid inconsistent definitions, constexpr code can be used as */ \
/* needed. */ \
constexpr double abs_x = x > 0 ? x : -x; \
statement; \
} \
#define UNDER_OSACA_HYPOTHESES(statement) \
do { \
constexpr double x = 5; \
/* To avoid inconsistent definitions, constexpr code can be used as */ \
/* needed. */ \
constexpr double abs_x = x > 0 ? x : -x; \
statement; \
} while (false)
#endif

Expand Down

0 comments on commit ea8a155

Please sign in to comment.