Re: [julia-users] BigInt And Expression

2016-11-05 Thread Steven G. Johnson
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.

Re: [julia-users] BigInt And Expression

2016-11-05 Thread Andrey Stepnov
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

Re: [julia-users] BigInt And Expression

2016-11-05 Thread Tamas Papp
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