On Saturday, November 5, 2016 at 10:31:24 AM UTC-4, Tamas Papp wrote:
>
> myexpression{T <: Integer}(a::T) = myexpression(convert(Int128, a))
myexpression(a::Integer) = ...
is more concise and is equivalent.
Tamas, thank you!
Andrey
On Sunday, November 6, 2016 at 1:31:24 AM UTC+11, Tamas Papp wrote:
>
> myexpression{T <: Integer}(a::T) = myexpression(convert(Int128, a))
> # You can also define for BigInt, depending on the range you will need
> # for `a`. Order is important.
> myexpression(a::Int12
myexpression{T <: Integer}(a::T) = myexpression(convert(Int128, a))
# You can also define for BigInt, depending on the range you will need
# for `a`. Order is important.
myexpression(a::Int128) = a*((a+12)*(a+24)*(a+36)*(a+48))
julia> myexpression(16140)
1103425489430061096960
On Sat, Nov 05 201