The following special functions (with some duplicates of the intrinsic versions, but with different names) are defined within the Phoenix PML language. The detailed C language code implementing each can be found in <Phoenix_install_dir>\application\lib\NLME\Executables\mutil.c.
Name |
Usage |
Definition |
CalcTMax |
CalcTMax(A, a, B, b, C, c); |
obtain Tmax for a macro-parameter model |
ilogit |
ilogit(x); |
exp(x)/(exp(x)+1) |
lambertw |
lambertw(const z); |
inverse of x(y)=y*exp(y) |
lgamm |
lgamm(x); |
gamma function |
lnegbin_rp |
lnegbin_rp(r, p, y); |
neg. binomial, parameterized by r, p (LL) |
lnegbin |
lnegbin(mean, beta, power, y); |
neg. binom., param. by mean, beta (= log(alpha)), power (LL) |
lnorm |
lnorm(x, std); |
log of probability density function of normal distribution with mean (m)=0. |
lphi |
lphi(x, v); |
log(phi(x/stdev)) |
lpois |
lpois(mean, int _x); |
log(mean^n*exp(–mean)/n!) (LL) |
min |
min(x, y); |
minimum |
unifToPoisson |
unifToPoisson(mean, r); |
convert uniform distribution to poisson |
vfwt |
vfwt(f, p); |
make an observation variance function |
Phoenix PML supports a majority of the intrinsic math functions in the Cmath.h library. See the following tables for a list of supported functions. (Refer to http://www.cplusplus.com/reference/cmath/ for more information on the Cmath.h library.)
•Exponential and logarithmic functions 928
•Error and gamma functions 929
•Rounding and remainder functions 929
•Floating-point manipulation functions 930
•Minimum, maximum, difference functions 930
•Other functions available in math.h 930
•Classification macro/functions 930
•Comparison macro/functions 931
Function |
Description |
pow |
Raise to power |
sqrt |
Compute square root |
cbrt |
Compute cubic root |
hypot |
Compute hypotenuse |
Function |
Description |
erf |
Compute error function |
erfc |
Compute complementary error function |
tgamma |
Compute gamma function |
lgamma |
Compute log-gamma function |
Function |
Description |
copysign |
Copy sign |
nextafter |
Next representable value |
nextforward |
Next representable value toward precise value |
Function |
Description |
fdim |
Positive difference |
fmax |
Maximum value |
fmin |
Minimum value |
Function |
Description |
fabs |
Compute absolute value |
abs |
Compute absolute value |
fma |
Multiply-add |
Function |
Description |
isfinite |
Is a finite value |
isinf |
Is infinity |
isnormal |
Is normal |
signbit |
Sign bit (whether the sign of x is negative) |
Last modified date:6/26/19
Legal Notice | Contact Certara
© 2019 Certara USA, Inc. All rights reserved.