Skip to content

atan2() is not implemented: it raises unavailable_feature_error #2

Description

@Jordan08

gaol::atan2(const interval& Y, const interval& X) is declared in gaol/gaol_interval.h, and expressions can call it (interval("atan2(1, 1)"), see gaol/gaol_interval_parser.ypp). But it is not implemented: it raises unavailable_feature_error ("atan2 not yet implemented") and returns the empty set (gaol_interval.cpp).

Found while writing tests/elementary.cpp, which leaves atan2() out for this reason.

A possible implementation: atan() of the quotients at the corners of [X]×[Y], quadrant by quadrant, with the cut along the negative x axis, as IBEX implements it for its intervals.

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions