boostorg / boostorg/rational

(re-) Add pow functionality for rational

Open
#25 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
24
Forks
45
PR merge metrics
No merged PRs in 30d

Description

See: https://github.com/boostorg/rational/pull/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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.