Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can pfq support multiple separate TaylorN? #74

Open
Li-shiyue opened this issue Oct 9, 2023 · 0 comments
Open

Can pfq support multiple separate TaylorN? #74

Li-shiyue opened this issue Oct 9, 2023 · 0 comments

Comments

@Li-shiyue
Copy link

I'm curious if the hypergeometricfunction input parameter is able to support data in TaylorN format, based on the reported error I guess it's a pfq issue? I am interesting in hypergeometricfunction's Taylor Series,However pFq((2,),(2,),x+y) works but pFq((x,),(2,),x+y) got error.

using HypergeometricFunctions
using TaylorSeries
using LinearAlgebra
x, y = set_variables("x y", order=8)
Base.float(t::HomogeneousPolynomial) = HomogeneousPolynomial(float.(t.coeffs))
Base.float(t::TaylorN) = TaylorN(float.(t.coeffs), t.order)
TaylorSeries.TaylorN{T}(a::S) where {T,S} = (R=promote_type(T,S); TaylorN(R(a), get_order()))
Base.eps(::Type{TaylorN{T}}) where {T} = eps(one(T))
Base.eps(a::TaylorN) = eps(constant_term(a))
pFq((x,),(2,),x+y)

ERROR: MethodError: no method matching iterate(::Type{HypergeometricFunctions.ℕ₀})

Closest candidates are:
iterate(!Matched::Union{LinRange, StepRangeLen})
@ Base range.jl:880
iterate(!Matched::Union{LinRange, StepRangeLen}, !Matched::Integer)
@ Base range.jl:880
iterate(!Matched::T) where T<:Union{Base.KeySet{<:Any, <:Dict}, Base.ValueIterator{<:Dict}}
@ Base dict.jl:698
...
Can anybody help me? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant