OpenShot Audio Library | OpenShotAudio 0.3.2
|
#include <juce_FastMathApproximations.h>
Static Public Member Functions | |
template<typename FloatType > | |
static FloatType | cosh (FloatType x) noexcept |
template<typename FloatType > | |
static void | cosh (FloatType *values, size_t numValues) noexcept |
template<typename FloatType > | |
static FloatType | sinh (FloatType x) noexcept |
template<typename FloatType > | |
static void | sinh (FloatType *values, size_t numValues) noexcept |
template<typename FloatType > | |
static FloatType | tanh (FloatType x) noexcept |
template<typename FloatType > | |
static void | tanh (FloatType *values, size_t numValues) noexcept |
template<typename FloatType > | |
static FloatType | cos (FloatType x) noexcept |
template<typename FloatType > | |
static void | cos (FloatType *values, size_t numValues) noexcept |
template<typename FloatType > | |
static FloatType | sin (FloatType x) noexcept |
template<typename FloatType > | |
static void | sin (FloatType *values, size_t numValues) noexcept |
template<typename FloatType > | |
static FloatType | tan (FloatType x) noexcept |
template<typename FloatType > | |
static void | tan (FloatType *values, size_t numValues) noexcept |
template<typename FloatType > | |
static FloatType | exp (FloatType x) noexcept |
template<typename FloatType > | |
static void | exp (FloatType *values, size_t numValues) noexcept |
template<typename FloatType > | |
static FloatType | logNPlusOne (FloatType x) noexcept |
template<typename FloatType > | |
static void | logNPlusOne (FloatType *values, size_t numValues) noexcept |
This class contains various fast mathematical function approximations.
Definition at line 37 of file juce_FastMathApproximations.h.
|
inlinestaticnoexcept |
Provides a fast approximation of the function cos(x) using a Pade approximant continued fraction, calculated on a whole buffer.
Note: This is an approximation which works on a limited range. You are advised to use input values only between -pi and +pi for limiting the error.
Definition at line 146 of file juce_FastMathApproximations.h.
|
inlinestaticnoexcept |
Provides a fast approximation of the function cos(x) using a Pade approximant continued fraction, calculated sample by sample.
Note: This is an approximation which works on a limited range. You are advised to use input values only between -pi and +pi for limiting the error.
Definition at line 131 of file juce_FastMathApproximations.h.
Referenced by cos().
|
inlinestaticnoexcept |
Provides a fast approximation of the function cosh(x) using a Pade approximant continued fraction, calculated on a whole buffer.
Note: This is an approximation which works on a limited range. You are advised to use input values only between -5 and +5 for limiting the error.
Definition at line 61 of file juce_FastMathApproximations.h.
|
inlinestaticnoexcept |
Provides a fast approximation of the function cosh(x) using a Pade approximant continued fraction, calculated sample by sample.
Note: This is an approximation which works on a limited range. You are advised to use input values only between -5 and +5 for limiting the error.
Definition at line 46 of file juce_FastMathApproximations.h.
Referenced by cosh().
|
inlinestaticnoexcept |
Provides a fast approximation of the function exp(x) using a Pade approximant continued fraction, calculated on a whole buffer.
Note: This is an approximation which works on a limited range. You are advised to use input values only between -6 and +4 for limiting the error.
Definition at line 230 of file juce_FastMathApproximations.h.
|
inlinestaticnoexcept |
Provides a fast approximation of the function exp(x) using a Pade approximant continued fraction, calculated sample by sample.
Note: This is an approximation which works on a limited range. You are advised to use input values only between -6 and +4 for limiting the error.
Definition at line 216 of file juce_FastMathApproximations.h.
Referenced by exp().
|
inlinestaticnoexcept |
Provides a fast approximation of the function log(x+1) using a Pade approximant continued fraction, calculated on a whole buffer.
Note: This is an approximation which works on a limited range. You are advised to use input values only between -0.8 and +5 for limiting the error.
Definition at line 257 of file juce_FastMathApproximations.h.
|
inlinestaticnoexcept |
Provides a fast approximation of the function log(x+1) using a Pade approximant continued fraction, calculated sample by sample.
Note: This is an approximation which works on a limited range. You are advised to use input values only between -0.8 and +5 for limiting the error.
Definition at line 243 of file juce_FastMathApproximations.h.
Referenced by logNPlusOne().
|
inlinestaticnoexcept |
Provides a fast approximation of the function sin(x) using a Pade approximant continued fraction, calculated on a whole buffer.
Note: This is an approximation which works on a limited range. You are advised to use input values only between -pi and +pi for limiting the error.
Definition at line 174 of file juce_FastMathApproximations.h.
|
inlinestaticnoexcept |
Provides a fast approximation of the function sin(x) using a Pade approximant continued fraction, calculated sample by sample.
Note: This is an approximation which works on a limited range. You are advised to use input values only between -pi and +pi for limiting the error.
Definition at line 159 of file juce_FastMathApproximations.h.
Referenced by sin().
|
inlinestaticnoexcept |
Provides a fast approximation of the function sinh(x) using a Pade approximant continued fraction, calculated on a whole buffer.
Note: This is an approximation which works on a limited range. You are advised to use input values only between -5 and +5 for limiting the error.
Definition at line 89 of file juce_FastMathApproximations.h.
|
inlinestaticnoexcept |
Provides a fast approximation of the function sinh(x) using a Pade approximant continued fraction, calculated sample by sample.
Note: This is an approximation which works on a limited range. You are advised to use input values only between -5 and +5 for limiting the error.
Definition at line 74 of file juce_FastMathApproximations.h.
Referenced by sinh().
|
inlinestaticnoexcept |
Provides a fast approximation of the function tan(x) using a Pade approximant continued fraction, calculated on a whole buffer.
Note: This is an approximation which works on a limited range. You are advised to use input values only between -pi/2 and +pi/2 for limiting the error.
Definition at line 202 of file juce_FastMathApproximations.h.
|
inlinestaticnoexcept |
Provides a fast approximation of the function tan(x) using a Pade approximant continued fraction, calculated sample by sample.
Note: This is an approximation which works on a limited range. You are advised to use input values only between -pi/2 and +pi/2 for limiting the error.
Definition at line 187 of file juce_FastMathApproximations.h.
Referenced by tan().
|
inlinestaticnoexcept |
Provides a fast approximation of the function tanh(x) using a Pade approximant continued fraction, calculated on a whole buffer.
Note: This is an approximation which works on a limited range. You are advised to use input values only between -5 and +5 for limiting the error.
Definition at line 117 of file juce_FastMathApproximations.h.
|
inlinestaticnoexcept |
Provides a fast approximation of the function tanh(x) using a Pade approximant continued fraction, calculated sample by sample.
Note: This is an approximation which works on a limited range. You are advised to use input values only between -5 and +5 for limiting the error.
Definition at line 102 of file juce_FastMathApproximations.h.
Referenced by tanh().