CVM Class Library  8.1
This C++ class library encapsulates concepts of vector and different matrices including square, band, symmetric and hermitian ones in Euclidean space of real and complex numbers.
 All Classes Files Functions Variables Typedefs Friends Macros Pages
Classes | Macros | Typedefs | Variables
cfun.h File Reference
#include "cvm.h"
#include <ctype.h>
#include <vector>
Include dependency graph for cfun.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FunctionFactory< T >
 Function Factory (not end-user) More...
class  BaseFunction< T >
 Generic function (not end-user) More...
class  UnaryFunction< T >
 Generic unary function (not end-user) More...
class  BinaryFunction< T >
 Generic binary function (not end-user) More...
class  basic_function< T >
 End-user class encapsulating elementary function of real or complex numbers (depending on T type). More...
class  FArray< T >
 Generalized array of functions class (not end-user) More...
class  basic_fvector< T >
 Vector of functions class. More...
class  rfvector
 Vector of real functions. More...
class  cfvector
 Vector of complex functions. More...
class  basic_fmatrix< T >
 Matrix of functions class More...
class  rfmatrix
 Matrix of real functions More...
class  cfmatrix
 Matrix of complex functions More...

Macros

#define CFUN_K_FUN   1
#define CFUN_K_VAR   2
#define CFUN_K_CONST   3
#define CFUN_K_PLUS   10
#define CFUN_K_MINUS   11
#define CFUN_K_MULT   12
#define CFUN_K_DIV   13
#define CFUN_K_POWER   14
#define CFUN_K_EXP   16
#define CFUN_K_SQRT   17
#define CFUN_K_LOG   18
#define CFUN_K_LOG10   19
#define CFUN_K_SIN   20
#define CFUN_K_COS   21
#define CFUN_K_TAN   22
#define CFUN_K_ARCSIN   23
#define CFUN_K_ARCCOS   24
#define CFUN_K_ARCTAN   25
#define CFUN_K_SINH   26
#define CFUN_K_COSH   27
#define CFUN_K_TANH   28
#define CFUN_K_UMINUS   29
#define CFUN_K_SIGN   30
#define CFUN_K_ABS   31
#define CFUN_K_DELTA   32
#define CFUN_K_INFINITY   33
#define CFUN_K_MNINFINITY   34
#define CFUN_K_INTSIN   35
#define CFUN_K_INTCOS   36
#define CFUN_K_SAT   37
#define CFUN_K_DSOLVE   38
#define CFUN_K_IIF   39
#define CFUN_O_BRACE   '{'
#define CFUN_C_BRACE   '}'
#define CFUN_O_BRACKET   '['
#define CFUN_C_BRACKET   ']'
#define CFUN_O_PARENTH   '('
#define CFUN_C_PARENTH   ')'
#define CFUN_O_SPARENTH   "("
#define CFUN_C_SPARENTH   ")"
#define CFUN_COMMA   ','
#define CFUN_PLUS   '+'
#define CFUN_MINUS   '-'
#define CFUN_POWER   '^'
#define CFUN_MULT   '*'
#define CFUN_DIV   '/'
#define CFUN_POINT   '.'
#define CFUN_SIGNS   "()+-^*/"
#define CFUN_INF   "INF"
#define CFUN_EXP   "exp"
#define CFUN_SQRT   "sqrt"
#define CFUN_LOG   "log"
#define CFUN_LOG10   "log10"
#define CFUN_SIN   "sin"
#define CFUN_COS   "cos"
#define CFUN_TAN   "tan"
#define CFUN_ASIN   "asin"
#define CFUN_ACOS   "acos"
#define CFUN_ATAN   "atan"
#define CFUN_SINH   "sinh"
#define CFUN_COSH   "cosh"
#define CFUN_TANH   "tanh"
#define CFUN_SI   "sinint"
#define CFUN_CI   "cosint"
#define CFUN_SMINUS   "-"
#define CFUN_SPLUS   "+"
#define CFUN_SMULT   "*"
#define CFUN_SDIV   "/"
#define CFUN_SPOWER   "^"
#define CFUN_SCOMMA   ","
#define CFUN_SSPACE   " "
#define CFUN_SIGN   "sign"
#define CFUN_ABS   "abs"
#define CFUN_IIF   "iif"
#define CFUN_DELTA   "delta"
#define CFUN_POWERS   "power"
#define CFUN_SAT   "sat"
#define CFUN_I   "i"
#define CFUN_SPACES   " \t\r\n"
#define CFUN_SINF   CFUN_O_SPARENTH CFUN_INF CFUN_C_SPARENTH
#define CFUN_SMINF   CFUN_O_SPARENTH CFUN_SMINUS CFUN_INF CFUN_C_SPARENTH
#define CFUN_NOT_FOUND   size_t(~0)
#define CFUN_M_ZERO   0.L
#define CFUN_M_ONE   1.L
#define CFUN_M_TWO   2.L
#define CFUN_M_MONE   -1.L
#define CFUN_M_HALF   0.5L
#define CFUN_M_E   2.7182818284590452353602874713527L
#define CFUN_M_LN2   0.69314718055994530941723212145818L
#define CFUN_M_PI   3.1415926535897932384626433832795L
#define CFUN_M_PI_2   1.5707963267948966192313216916398L
#define CFUN_M_LN_10   2.3025850929940456840179914546844L
#define CFUN_M_GAMMA   0.57721566490153286060651209008240243L
#define CFUN_OK   CVM_OK
#define CFUN_PARSEERROR   CVM_THE_LAST_ERROR_CODE + 1
 Error code for "Error while parsing \'%s\' for variables %s".
#define CFUN_DOMAINERROR   CVM_THE_LAST_ERROR_CODE + 2
 Error code for "Domain error while calculating %s of %g".
#define CFUN_DOMAINERROR_C   CVM_THE_LAST_ERROR_CODE + 3
 Error code for "Domain error while calculating %s of (%g,%g)".
#define CFUN_CONVERGENCEERROR   CVM_THE_LAST_ERROR_CODE + 4
 Error code for "Convergence error while calculating %s of %g".
#define CFUN_CONVERGENCEERROR_C   CVM_THE_LAST_ERROR_CODE + 5
 Error code for "Convergence error while calculating %s of (%g,%g)".
#define CFUN_SUBSTPARAMETERERROR   CVM_THE_LAST_ERROR_CODE + 6
 Error code for "Error while substituting parameter \'%s\'".
#define CFUN_VARSDONTMATCH   CVM_THE_LAST_ERROR_CODE + 7
 Error code for "Variables don\'t match: \'%s\' vs. \'%s\'".
#define CFUN_NULLPOINTERERROR   CVM_THE_LAST_ERROR_CODE + 8
 Error code for "Null pointer passed to \'%s\'".
#define CFUN_PARAMETER_RECURSION   CVM_THE_LAST_ERROR_CODE + 9
 Error code for "Parameter \'%s\' can\'t be a part of its own meaning \'%s\'".
#define CFUN_SIMPS_STACK_DEPTH   32
#define CFUN_MAX_EI_ITERATIONS   1000

Typedefs

typedef basic_function< trealrfunction
 End-user class: function of real variables, see basic_function.
typedef basic_function< tcomplexcfunction
 End-user class: function of complex variables, see basic_function.

Variables

CVM_NAMESPACE_BEG typedef
std::vector< std::string > 
string_array
 Array of strings.

Macro Definition Documentation

#define CFUN_K_FUN   1

Definition at line 17 of file cfun.h.

#define CFUN_K_VAR   2

Definition at line 18 of file cfun.h.

#define CFUN_K_CONST   3

Definition at line 19 of file cfun.h.

#define CFUN_K_PLUS   10

Definition at line 20 of file cfun.h.

#define CFUN_K_MINUS   11

Definition at line 21 of file cfun.h.

#define CFUN_K_MULT   12

Definition at line 22 of file cfun.h.

#define CFUN_K_DIV   13

Definition at line 23 of file cfun.h.

#define CFUN_K_POWER   14

Definition at line 24 of file cfun.h.

#define CFUN_K_EXP   16

Definition at line 25 of file cfun.h.

#define CFUN_K_SQRT   17

Definition at line 26 of file cfun.h.

#define CFUN_K_LOG   18

Definition at line 27 of file cfun.h.

#define CFUN_K_LOG10   19

Definition at line 28 of file cfun.h.

#define CFUN_K_SIN   20

Definition at line 29 of file cfun.h.

#define CFUN_K_COS   21

Definition at line 30 of file cfun.h.

#define CFUN_K_TAN   22

Definition at line 31 of file cfun.h.

#define CFUN_K_ARCSIN   23

Definition at line 32 of file cfun.h.

#define CFUN_K_ARCCOS   24

Definition at line 33 of file cfun.h.

#define CFUN_K_ARCTAN   25

Definition at line 34 of file cfun.h.

#define CFUN_K_SINH   26

Definition at line 35 of file cfun.h.

#define CFUN_K_COSH   27

Definition at line 36 of file cfun.h.

#define CFUN_K_TANH   28

Definition at line 37 of file cfun.h.

#define CFUN_K_UMINUS   29

Definition at line 38 of file cfun.h.

#define CFUN_K_SIGN   30

Definition at line 39 of file cfun.h.

#define CFUN_K_ABS   31

Definition at line 40 of file cfun.h.

#define CFUN_K_DELTA   32

Definition at line 41 of file cfun.h.

#define CFUN_K_INFINITY   33

Definition at line 42 of file cfun.h.

#define CFUN_K_MNINFINITY   34

Definition at line 43 of file cfun.h.

#define CFUN_K_INTSIN   35

Definition at line 44 of file cfun.h.

#define CFUN_K_INTCOS   36

Definition at line 45 of file cfun.h.

#define CFUN_K_SAT   37

Definition at line 46 of file cfun.h.

#define CFUN_K_DSOLVE   38

Definition at line 47 of file cfun.h.

#define CFUN_K_IIF   39

Definition at line 48 of file cfun.h.

#define CFUN_O_BRACE   '{'

Definition at line 49 of file cfun.h.

#define CFUN_C_BRACE   '}'

Definition at line 50 of file cfun.h.

#define CFUN_O_BRACKET   '['

Definition at line 51 of file cfun.h.

#define CFUN_C_BRACKET   ']'

Definition at line 52 of file cfun.h.

#define CFUN_O_PARENTH   '('

Definition at line 53 of file cfun.h.

#define CFUN_C_PARENTH   ')'

Definition at line 54 of file cfun.h.

#define CFUN_O_SPARENTH   "("

Definition at line 55 of file cfun.h.

#define CFUN_C_SPARENTH   ")"

Definition at line 56 of file cfun.h.

#define CFUN_COMMA   ','

Definition at line 57 of file cfun.h.

#define CFUN_PLUS   '+'

Definition at line 58 of file cfun.h.

#define CFUN_MINUS   '-'

Definition at line 59 of file cfun.h.

#define CFUN_POWER   '^'

Definition at line 60 of file cfun.h.

#define CFUN_MULT   '*'

Definition at line 61 of file cfun.h.

#define CFUN_DIV   '/'

Definition at line 62 of file cfun.h.

#define CFUN_POINT   '.'

Definition at line 63 of file cfun.h.

#define CFUN_SIGNS   "()+-^*/"

Definition at line 64 of file cfun.h.

#define CFUN_INF   "INF"

Definition at line 65 of file cfun.h.

#define CFUN_EXP   "exp"

Definition at line 67 of file cfun.h.

#define CFUN_SQRT   "sqrt"

Definition at line 68 of file cfun.h.

#define CFUN_LOG   "log"

Definition at line 69 of file cfun.h.

#define CFUN_LOG10   "log10"

Definition at line 70 of file cfun.h.

#define CFUN_SIN   "sin"

Definition at line 71 of file cfun.h.

#define CFUN_COS   "cos"

Definition at line 72 of file cfun.h.

#define CFUN_TAN   "tan"

Definition at line 73 of file cfun.h.

#define CFUN_ASIN   "asin"

Definition at line 74 of file cfun.h.

#define CFUN_ACOS   "acos"

Definition at line 75 of file cfun.h.

#define CFUN_ATAN   "atan"

Definition at line 76 of file cfun.h.

#define CFUN_SINH   "sinh"

Definition at line 77 of file cfun.h.

#define CFUN_COSH   "cosh"

Definition at line 78 of file cfun.h.

#define CFUN_TANH   "tanh"

Definition at line 79 of file cfun.h.

#define CFUN_SI   "sinint"

Definition at line 80 of file cfun.h.

#define CFUN_CI   "cosint"

Definition at line 81 of file cfun.h.

#define CFUN_SMINUS   "-"

Definition at line 82 of file cfun.h.

#define CFUN_SPLUS   "+"

Definition at line 83 of file cfun.h.

#define CFUN_SMULT   "*"

Definition at line 84 of file cfun.h.

#define CFUN_SDIV   "/"

Definition at line 85 of file cfun.h.

#define CFUN_SPOWER   "^"

Definition at line 86 of file cfun.h.

#define CFUN_SCOMMA   ","

Definition at line 87 of file cfun.h.

#define CFUN_SSPACE   " "

Definition at line 88 of file cfun.h.

#define CFUN_SIGN   "sign"

Definition at line 89 of file cfun.h.

#define CFUN_ABS   "abs"

Definition at line 90 of file cfun.h.

#define CFUN_IIF   "iif"

Definition at line 91 of file cfun.h.

#define CFUN_DELTA   "delta"

Definition at line 92 of file cfun.h.

#define CFUN_POWERS   "power"

Definition at line 93 of file cfun.h.

#define CFUN_SAT   "sat"

Definition at line 94 of file cfun.h.

#define CFUN_I   "i"

Definition at line 95 of file cfun.h.

#define CFUN_SPACES   " \t\r\n"

Definition at line 96 of file cfun.h.

#define CFUN_SINF   CFUN_O_SPARENTH CFUN_INF CFUN_C_SPARENTH

Definition at line 97 of file cfun.h.

Definition at line 98 of file cfun.h.

#define CFUN_NOT_FOUND   size_t(~0)

Definition at line 101 of file cfun.h.

#define CFUN_M_ZERO   0.L

Definition at line 116 of file cfun.h.

#define CFUN_M_ONE   1.L

Definition at line 117 of file cfun.h.

#define CFUN_M_TWO   2.L

Definition at line 118 of file cfun.h.

#define CFUN_M_MONE   -1.L

Definition at line 119 of file cfun.h.

#define CFUN_M_HALF   0.5L

Definition at line 120 of file cfun.h.

#define CFUN_M_E   2.7182818284590452353602874713527L

Definition at line 121 of file cfun.h.

#define CFUN_M_LN2   0.69314718055994530941723212145818L

Definition at line 122 of file cfun.h.

#define CFUN_M_PI   3.1415926535897932384626433832795L

Definition at line 123 of file cfun.h.

#define CFUN_M_PI_2   1.5707963267948966192313216916398L

Definition at line 124 of file cfun.h.

#define CFUN_M_LN_10   2.3025850929940456840179914546844L

Definition at line 125 of file cfun.h.

#define CFUN_M_GAMMA   0.57721566490153286060651209008240243L

Definition at line 126 of file cfun.h.

#define CFUN_OK   CVM_OK

Definition at line 129 of file cfun.h.

#define CFUN_PARSEERROR   CVM_THE_LAST_ERROR_CODE + 1

Error code for "Error while parsing \'%s\' for variables %s".

Definition at line 130 of file cfun.h.

#define CFUN_DOMAINERROR   CVM_THE_LAST_ERROR_CODE + 2

Error code for "Domain error while calculating %s of %g".

Definition at line 131 of file cfun.h.

#define CFUN_DOMAINERROR_C   CVM_THE_LAST_ERROR_CODE + 3

Error code for "Domain error while calculating %s of (%g,%g)".

Definition at line 132 of file cfun.h.

#define CFUN_CONVERGENCEERROR   CVM_THE_LAST_ERROR_CODE + 4

Error code for "Convergence error while calculating %s of %g".

Definition at line 133 of file cfun.h.

#define CFUN_CONVERGENCEERROR_C   CVM_THE_LAST_ERROR_CODE + 5

Error code for "Convergence error while calculating %s of (%g,%g)".

Definition at line 134 of file cfun.h.

#define CFUN_SUBSTPARAMETERERROR   CVM_THE_LAST_ERROR_CODE + 6

Error code for "Error while substituting parameter \'%s\'".

Definition at line 135 of file cfun.h.

#define CFUN_VARSDONTMATCH   CVM_THE_LAST_ERROR_CODE + 7

Error code for "Variables don\'t match: \'%s\' vs. \'%s\'".

Definition at line 136 of file cfun.h.

#define CFUN_NULLPOINTERERROR   CVM_THE_LAST_ERROR_CODE + 8

Error code for "Null pointer passed to \'%s\'".

Definition at line 137 of file cfun.h.

#define CFUN_PARAMETER_RECURSION   CVM_THE_LAST_ERROR_CODE + 9

Error code for "Parameter \'%s\' can\'t be a part of its own meaning \'%s\'".

Definition at line 138 of file cfun.h.

#define CFUN_SIMPS_STACK_DEPTH   32

Definition at line 140 of file cfun.h.

#define CFUN_MAX_EI_ITERATIONS   1000

Definition at line 141 of file cfun.h.

Typedef Documentation

End-user class: function of real variables, see basic_function.

Definition at line 12416 of file cfun.h.

End-user class: function of complex variables, see basic_function.

Definition at line 12417 of file cfun.h.

Variable Documentation

CVM_NAMESPACE_BEG typedef std::vector<std::string> string_array

Array of strings.

Definition at line 496 of file cfun.h.