You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> using Takums
julia> convert(Takum64, pi)
ERROR: MethodError: no method matching Takum64(::Irrational{:π})
The type `Takum64` exists, but no method is defined for this combination of argument types when trying to construct it.
Closest candidates are:
(::Type{T})(::Real, ::RoundingMode) where T<:AbstractFloat
@ Base rounding.jl:265
(::Type{T})(::T) where T<:Number
@ Core boot.jl:900
Takum64(::Float16)
@ Takums ~/.julia/packages/Takums/hET5q/src/Takums.jl:213
...
Stacktrace:
[1] convert(::Type{Takum64}, x::Irrational{:π})
@ Base ./number.jl:7
[2] top-level scope
@ REPL[14]:1
The text was updated successfully, but these errors were encountered:
An interface for converting irrationals to takums was already implemented in 25963b7, but not released yet. I pushed v0.5.4 now (see here) and it should be available in the next 30-60 minutes.
MWE:
The text was updated successfully, but these errors were encountered: