ViennaSHE 1.3.0
Free open-source semiconductor device simulator using spherical harmonics expansions techniques.
bernoulli.hpp File Reference

Implementation of the Bernoulli function. More...

#include <math.h>

Go to the source code of this file.

Namespaces

namespace  viennashe
 The main ViennaSHE namespace. All functionality resides inside this namespace.
 
namespace  viennashe::math
 Namespace for all math specific code

 

Functions

template<typename NumericT >
NumericT viennashe::math::Bernoulli (NumericT x)
 The Bernoulli function f(x) = x / (exp(x) - 1). Avoids round-off errors near zero. More...
 
template<typename NumericT >
NumericT viennashe::math::Bernoulli_dx (NumericT x)
 Derivative of the Bernoulli function. f'(x) = [exp(x) - 1 - x exp(x)] / (exp(x) - 1)^2. Avoids round-off errors near zero. More...
 

Detailed Description

Implementation of the Bernoulli function.

To be replaced by functionality in ViennaMath

Definition in file bernoulli.hpp.