Skip to content

A precision problem on elliptic123 #20

@tangjinchuan

Description

@tangjinchuan

Dear virogr,
there might be a problem with the precision of elliptic123. I run the following code on 64bit linux version of Matlab:
K>> [~, K1]= elliptic123(pi/2, 1+2.*eps(0.5))

K1 =

  NaN +    NaNi

K>> [~, K1]= elliptic123(pi/2, 1)

K1 =

 1

K>> ellipticE(pi/2, 1+2.*eps(0.5))

ans =

 1

K>> ellipticE(pi/2, 1)

ans =

 1

Thanks!
Best wishes,
Jinchuan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions