aGrUM  0.20.3
a C++ library for (probabilistic) graphical models
math_utils.h File Reference

Copyright (c) 2005-2021 by Pierre-Henri WUILLEMIN() & Christophe GONZALES() info_at_agrum_dot_org. More...

#include <cmath>
+ Include dependency graph for math_utils.h:

Go to the source code of this file.

Macros

#define M_LOG2E   1.4426950408889634074 /* log_2 e */
 
#define M_PI   3.14159265358979323846
 
#define M_LN2   0.69314718055994530942 /* log_e 2 */
 
#define GUM_LOG_SQRT_2PI   .91893853320467274177
 

Detailed Description

Copyright (c) 2005-2021 by Pierre-Henri WUILLEMIN() & Christophe GONZALES() info_at_agrum_dot_org.

This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library. If not, see http://www.gnu.org/licenses/.

Useful macros for maths.

Author
Christophe GONZALES() and Pierre-Henri WUILLEMIN()

Definition in file math_utils.h.

Macro Definition Documentation

◆ GUM_LOG_SQRT_2PI

#define GUM_LOG_SQRT_2PI   .91893853320467274177

Definition at line 47 of file math_utils.h.

◆ M_LN2

#define M_LN2   0.69314718055994530942 /* log_e 2 */

Definition at line 43 of file math_utils.h.

◆ M_LOG2E

#define M_LOG2E   1.4426950408889634074 /* log_2 e */

Definition at line 35 of file math_utils.h.

◆ M_PI

#define M_PI   3.14159265358979323846

Definition at line 39 of file math_utils.h.