Skip to content

(re-) Add pow functionality for rational #25

Description

@jeking3

See: #24

In 2015 a pull request added pow() and reciprocal(). In 2018 it was reviewed by CMT and reciprocal() was found to be unnecessary. This left boost::pow() for rational, however it introduced an issue resolving std::pow from within boost namespaces. This happened close to the 1.68.0 release (during beta) so it was removed.

Originally recommend looking at adding operator ^= as a modifying operator to raise the rational value to an integer exponent. In addition operator ^ could take an existing rational and raise it to an exponent, returning a new rational. - note comments below.

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