NEURON
math.cpp File Reference
#include "oc_ansi.h"
#include <../../nrnconf.h>
#include "nrnmpiuse.h"
#include "ocfunc.h"
#include "nrnassrt.h"
#include <cfenv>
#include <cmath>
#include <cerrno>
#include <cstdio>

Go to the source code of this file.

Macros

#define EPS   hoc_epsilon
 
#define MAXERRCOUNT   5
 

Functions

static void clear_fe_except ()
 
static double errcheck (double, const char *)
 
void hoc_atan2 (void)
 
double hoc_Log (double x)
 
double hoc_Log10 (double x)
 
void hoc_use_exp_pow_precision ()
 
double hoc_pow (double x, double y)
 
double hoc_Exp (double x)
 
double hoc1_Exp (double x)
 
double hoc_Sqrt (double x)
 
double hoc_Pow (double x, double y)
 
double hoc_integer (double x)
 
int hoc_errno_check (void)
 

Variables

int hoc_errno_count
 
static const auto errno_enabled = math_errhandling & MATH_ERRNO
 
static const auto check_fe_except = !errno_enabled && math_errhandling & MATH_ERREXCEPT
 

Macro Definition Documentation

◆ EPS

#define EPS   hoc_epsilon

Definition at line 26 of file math.cpp.

◆ MAXERRCOUNT

#define MAXERRCOUNT   5

Definition at line 27 of file math.cpp.

Function Documentation

◆ clear_fe_except()

static void clear_fe_except ( )
inlinestatic

Definition at line 46 of file math.cpp.

◆ errcheck()

double errcheck ( double  d,
const char *  s 
)
static

Definition at line 232 of file math.cpp.

◆ hoc1_Exp()

double hoc1_Exp ( double  x)

Definition at line 200 of file math.cpp.

◆ hoc_atan2()

void hoc_atan2 ( void  )

Definition at line 54 of file math.cpp.

◆ hoc_integer()

double hoc_integer ( double  x)

Definition at line 224 of file math.cpp.

◆ hoc_Log()

double hoc_Log ( double  x)

Definition at line 61 of file math.cpp.

◆ hoc_Log10()

double hoc_Log10 ( double  x)

Definition at line 66 of file math.cpp.

◆ hoc_Pow()

double hoc_Pow ( double  x,
double  y 
)

Definition at line 219 of file math.cpp.

◆ hoc_Sqrt()

double hoc_Sqrt ( double  x)

Definition at line 214 of file math.cpp.

◆ hoc_use_exp_pow_precision()

void hoc_use_exp_pow_precision ( )

Definition at line 148 of file math.cpp.

Variable Documentation

◆ check_fe_except

const auto check_fe_except = !errno_enabled && math_errhandling & MATH_ERREXCEPT
static

Definition at line 43 of file math.cpp.

◆ errno_enabled

const auto errno_enabled = math_errhandling & MATH_ERRNO
static

Definition at line 42 of file math.cpp.

◆ hoc_errno_count

int hoc_errno_count

Definition at line 29 of file math.cpp.