no method matching _erf(::Complex{BigFloat})

Open
#416 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
julia
Domain
data

Research direction

Start in src/erf.jl at the _erf methods referenced by the error, then reproduce erf(big(1.1im)) in Julia. Trace how erf and erfc handle BigFloat and Complex inputs; done means the example no longer raises a MethodError and the existing supported cases continue to work.

Written by the indexing model from the issue text.

Description

Hi,

This package is great, BigFloat and Complex are supported for erf and erfc, and the implementation is fast.
However, the combination of BigFloat and Complex is not supported. It would be great to add support for it, example:
erf(big(1.1im))

ERROR: MethodError: no method matching _erf(::Complex{BigFloat})
Closest candidates are:
_erf(::Float64) at ~/.julia/packages/SpecialFunctions/9pXme/src/erf.jl:15

Dominant language
Julia
Stars
384
Forks
115
Avg merge
1d 13h
Merged PRs (30d)
5

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JuliaMath/SpecialFunctions.jl

All issues in JuliaMath/SpecialFunctions.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.