Skip to content

real::erf() inaccuracy #2

Description

@samhocevar

The current real::erf() implementation uses a Taylor series that does not converge and thus has precision issues.

  • The affected range is [7,19].
  • The approximate error is 10^(-n²/1.13).

That is to say, erf(8) will have a precision error of 10^(-8²/1.13) = 2.3e-57, e.g. the 57th decimal will be inaccurate.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions