Skip to content

Commit 79ab23f

Browse files
committed
Move sign position
1 parent 6893b74 commit 79ab23f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/boost/math/distributions/logistic.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ namespace boost { namespace math {
147147
return result;
148148
}
149149
BOOST_MATH_STD_USING
150-
RealType power = (location - x) / scale;
151-
return logistic_sigmoid(-power, Policy());
150+
RealType power = -(location - x) / scale;
151+
return logistic_sigmoid(power, Policy());
152152
}
153153

154154
template <class RealType, class Policy>
@@ -250,8 +250,8 @@ namespace boost { namespace math {
250250
{
251251
return result;
252252
}
253-
RealType power = (x - location) / scale;
254-
return logistic_sigmoid(-power, Policy());
253+
RealType power = -(x - location) / scale;
254+
return logistic_sigmoid(power, Policy());
255255
}
256256

257257
template <class RealType, class Policy>

0 commit comments

Comments
 (0)