Coveralls logob
Coveralls logo
  • Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JuliaMath / SpecialFunctions.jl / 814

25 Sep 2020 - 15:06 coverage: 85.701% (+0.05%) from 85.647%
814

Pull #242

travis-ci

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow
Merge 225521a95 into 1bb0913fc
Pull Request #242: Adds Owen's T function

32 of 33 new or added lines in 1 file covered. (96.97%)

62 existing lines in 10 files now uncovered.

3644 of 4252 relevant lines covered (85.7%)

2014.15 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/deprecated.jl
1
# This file contains code that was formerly a part of Julia. License is MIT: http://julialang.org/license
2

3
@deprecate airy(z::Number) airyai(z)
4
@deprecate airyx(z::Number) airyaix(z)
5
@deprecate airyprime(z::Number) airyaiprime(z)
6
@deprecate lgamma(x::Real) logabsgamma(x)[1]
7
@deprecate lgamma(x::Number) loggamma(x)
8
@deprecate lgamma_r(x::Real) logabsgamma(x)
9
@deprecate lgamma_r(x::Number) (loggamma(x), 1)
10
@deprecate lbeta(x::Real, w::Real) logabsbeta(x, w)[1]
11
@deprecate lbeta(x::Number, w::Number) logbeta(x, w)
12
@deprecate lfact(x) logfactorial(x)
13
@deprecate lfactorial(x) logfactorial(x)
14
@deprecate lbinomial(x) logabsbinomial(x)[1]
15

16

17

UNCOV
18
function _airy(k::Integer, z::Complex{Float64})
!
19
    Base.depwarn("`airy(k,x)` is deprecated, use `airyai(x)`, `airyaiprime(x)`, `airybi(x)` or `airybiprime(x)` instead.",:airy)
!
20
    id = Int32(k==1 || k==3)
!
21
    if k == 0 || k == 1
!
22
        return _airy(z, id, Int32(1))
!
23
    elseif k == 2 || k == 3
!
24
        return _biry(z, id, Int32(1))
!
25
    else
26
        throw(DomainError(k, "`k` must be between 0 and 3."))
!
27
    end
28
end
UNCOV
29
function _airyx(k::Integer, z::Complex{Float64})
!
30
    Base.depwarn("`airyx(k,x)` is deprecated, use `airyaix(x)`, `airyaiprimex(x)`, `airybix(x)` or `airybiprimex(x)` instead.",:airyx)
!
31
    id = Int32(k==1 || k==3)
!
32
    if k == 0 || k == 1
!
33
        return _airy(z, id, Int32(2))
!
34
    elseif k == 2 || k == 3
!
35
        return _biry(z, id, Int32(2))
!
36
    else
37
        throw(DomainError(k, "`k` must be between 0 and 3."))
!
38
    end
39
end
40

41
for afn in (:airy,:airyx)
42
    _afn = Symbol("_"*string(afn))
43
    suf  = string(afn)[5:end]
44
    @eval begin
UNCOV
45
        function $afn(k::Integer, z::Complex{Float64})
!
46
            afn = $(QuoteNode(afn))
!
47
            suf = $(QuoteNode(suf))
!
48
            Base.depwarn("`$afn(k,x)` is deprecated, use `airyai$suf(x)`, `airyaiprime$suf(x)`, `airybi$suf(x)` or `airybiprime$suf(x)` instead.",$(QuoteNode(afn)))
!
49
            $_afn(k,z)
!
50
        end
51

52
        $afn(k::Integer, z::Complex) = $afn(k, float(z))
!
53
        $afn(k::Integer, z::Complex{<:AbstractFloat}) = throw(MethodError($afn,(k,z)))
!
54
        $afn(k::Integer, z::Complex{Float32}) = Complex{Float32}($afn(k, Complex{Float64}(z)))
!
55
        $afn(k::Integer, x::Real) = $afn(k, float(x))
!
56
        $afn(k::Integer, x::AbstractFloat) = real($afn(k, complex(x)))
!
57
    end
58
end
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2023 Coveralls, Inc