# Problem calling \`HypergeometricFunctions.pFq\`

**URL:** https://discourse.julialang.org/t/problem-calling-hypergeometricfunctions-pfq/129953
**Category:** New to Julia
**Tags:** question
**Created:** [June 17, 2025, 4:42am UTC](https://discourse.julialang.org/t/problem-calling-hypergeometricfunctions-pfq/129953 "2025-06-17T04:42:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Cyan](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@Cyan](https://discourse.julialang.org/u/Cyan)
#### Post date: [June 17, 2025, 4:42am UTC](https://discourse.julialang.org/t/problem-calling-hypergeometricfunctions-pfq/129953/1 "2025-06-17T04:42:29Z")

</div>

I am trying to calculate the 2F1 function, where `t` is `Real` and `z` is a 51x51 array, but  
` HypergeometricFunctions.pFq.((1, t / 2), 2 - t / 2, z)` returns an error

`MethodError: no method matching pFq(::Tuple{Int64, Float64}, ::Float64, ::Matrix{ComplexF64})`  
Why it doesn’t work on element-wise of `z`? It seems that the dot call thought `(1, t/2)` is a tuple and tried to match `z`?

---

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [June 17, 2025, 5:05am UTC](https://discourse.julialang.org/t/problem-calling-hypergeometricfunctions-pfq/129953/2 "2025-06-17T05:05:39Z")

</div>

> <https://github.com/JuliaMath/HypergeometricFunctions.jl/blob/7d67f21d03358720016461971bf6da4b42620f1a/src/generalized.jl#L55-L59>

the Tuple has to have the same element type, try `(1.0, t/2)`?

---

<div class="post-metadata">

### Author: ![Cyan](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@Cyan](https://discourse.julialang.org/u/Cyan)
#### Post date: [June 17, 2025, 5:09am UTC](https://discourse.julialang.org/t/problem-calling-hypergeometricfunctions-pfq/129953/3 "2025-06-17T05:09:33Z")

</div>

There is a call error message if `1.0, t/2`

---

<div class="post-metadata">

### Author: ![Cyan](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@Cyan](https://discourse.julialang.org/u/Cyan)
#### Post date: [June 17, 2025, 5:16am UTC](https://discourse.julialang.org/t/problem-calling-hypergeometricfunctions-pfq/129953/4 "2025-06-17T05:16:25Z")

</div>

I solved it via `_2F1(Z) = pFq((1, 2+im), (3.5, ), Z) ` and `_2F1.(z)`
