Lattice Microbes 2.5
This is for whole cell modeling
Loading...
Searching...
No Matches
Math.h File Reference
#include <algorithm>
#include <cmath>
Include dependency graph for Math.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TWOPI   6.283185307179586476925287
#define PI   3.141592653589793238462643
#define PID2   1.570796326794896619231322
#define PID4   0.7853981634
#define PIOVER180   0.0174532925
#define NA   6.02214179e23
#define EPS   1e-12

Functions

bool isPower2 (unsigned int x)
bool isPower2 (unsigned long x)
bool isPower2 (unsigned long long x)
unsigned int log2 (unsigned int x)
unsigned int log2 (unsigned long x)
unsigned int log2 (unsigned long long x)

Macro Definition Documentation

◆ EPS

#define EPS   1e-12

◆ NA

#define NA   6.02214179e23

◆ PI

#define PI   3.141592653589793238462643

◆ PID2

#define PID2   1.570796326794896619231322

◆ PID4

#define PID4   0.7853981634

◆ PIOVER180

#define PIOVER180   0.0174532925

◆ TWOPI

#define TWOPI   6.283185307179586476925287

Function Documentation

◆ isPower2() [1/3]

bool isPower2 ( unsigned int x)
inline

◆ isPower2() [2/3]

bool isPower2 ( unsigned long long x)
inline

◆ isPower2() [3/3]

bool isPower2 ( unsigned long x)
inline

◆ log2() [1/3]

unsigned int log2 ( unsigned int x)
inline

◆ log2() [2/3]

unsigned int log2 ( unsigned long long x)
inline

◆ log2() [3/3]

unsigned int log2 ( unsigned long x)
inline