Skip to content

Commit

Permalink
move param into body
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreySarnoff authored Apr 8, 2023
1 parent 9ac1ff4 commit 9cc0e4f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/float/morearith.jl
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ root(x::ArbComplex{P}, y::T) where {P, T<:AbstractFloat} = pow(x, -y)



function factorial(x::Signed) where {P}
function factorial(x::Signed)
P = workingprecision(ArbReal)
z = ArbReal{P}()
u = Culong(x)
ccall(@libarb(arb_fac_ui), Cvoid, (Ref{ArbReal}, Culong, Clong), z, u, P)
Expand All @@ -203,7 +204,8 @@ function factorial(x::ArbReal{P}) where {P}
return z
end

function doublefactorial(x::Signed) where {P}
function doublefactorial(x::Signed)
P = workingprecision(ArbReal)
z = ArbReal{P}()
u = Culong(x)
ccall(@libarb(arb_doublefac_ui), Cvoid, (Ref{ArbReal}, Culong, Clong), z, u, P)
Expand All @@ -225,7 +227,8 @@ function doublefactorial(x::ArbReal{P}) where {P}
end


function risingfactorial(x::Signed, n::Signed) where {P}
function risingfactorial(x::Signed, n::Signed)
P = workingprecision(ArbReal)
z = ArbReal{P}()
ux = Culong(x)
un = Culong(n)
Expand Down

0 comments on commit 9cc0e4f

Please sign in to comment.