Skip to content

(re-) Add pow functionality for rational #25

@jeking3

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions