Skip to content

Commit 2fffadc

Browse files
authored
Merge pull request #148 from JuliaSymbolics/s/specfun
Special Functions
2 parents cd18c76 + 5abea9d commit 2fffadc

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ branches:
88
os:
99
- linux
1010
julia:
11-
- 1.3.1
12-
- 1.4.1
11+
- 1
1312
- nightly
1413
matrix:
1514
allow_failures:

src/methods.jl

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1-
const monadic = [deg2rad, rad2deg, transpose, -, conj, asind, log1p, acsch, acos, asec, acosh, acsc, cscd, log, tand, log10, csch, asinh, abs2, cosh, sin, cos, atan, cospi, cbrt, acosd, acoth, acotd, asecd, exp, acot, sqrt, sind, sinpi, asech, log2, tan, exp10, sech, coth, asin, cotd, cosd, sinh, abs, csc, tanh, secd, atand, sec, acscd, cot, exp2, expm1, atanh, real]
2-
3-
const diadic = [+, -, max, min, *, /, \, hypot, atan, mod, rem, ^, copysign]
1+
import SpecialFunctions: gamma, loggamma, erf, erfc, erfcinv, erfi, erfcx,
2+
dawson, digamma, trigamma, invdigamma, polygamma,
3+
airyai, airyaiprime, airybi, airybiprime, besselj0,
4+
besselj1, bessely0, bessely1, besselj, bessely, besseli,
5+
besselk, hankelh1, hankelh2, polygamma, beta, logbeta
6+
7+
const monadic = [deg2rad, rad2deg, transpose, -, conj, asind, log1p, acsch,
8+
acos, asec, acosh, acsc, cscd, log, tand, log10, csch, asinh,
9+
abs2, cosh, sin, cos, atan, cospi, cbrt, acosd, acoth, acotd,
10+
asecd, exp, acot, sqrt, sind, sinpi, asech, log2, tan, exp10,
11+
sech, coth, asin, cotd, cosd, sinh, abs, csc, tanh, secd,
12+
atand, sec, acscd, cot, exp2, expm1, atanh, real, gamma,
13+
loggamma, erf, erfc, erfcinv, erfi, erfcx, dawson, digamma,
14+
trigamma, invdigamma, polygamma, airyai, airyaiprime, airybi,
15+
airybiprime, besselj0, besselj1, bessely0, bessely1]
16+
17+
const diadic = [+, -, max, min, *, /, \, hypot, atan, mod, rem, ^, copysign,
18+
besselj, bessely, besseli, besselk, hankelh1, hankelh2,
19+
polygamma, beta, logbeta]
420

521
const previously_declared_for = Set([])
622

test/fuzzlib.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ function gen_rand_expr(inputs;
9292
try
9393
return f(args...)
9494
catch err
95-
if err isa DomainError || err isa DivideError || err isa MethodError
95+
if err isa DomainError || err isa DivideError || err isa MethodError ||
96+
err isa SymbolicUtils.SpecialFunctions.AmosException
9697
return gen_rand_expr(inputs,
9798
spec=spec,
9899
leaf_prob=leaf_prob,

0 commit comments

Comments
 (0)