Project

General

Profile

Feature #1483

IsPowerOf2 for rationals

Added by John Abbott over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
New Function
Target version:
Start date:
14 Sep 2020
Due date:
% Done:

100%

Estimated time:
0.25 h
Spent time:

Description

Add new function IsPowerOf2 for BigRat.
It already exists for BigInt.

History

#1 Updated by John Abbott over 3 years ago

  • Status changed from New to Feedback
  • Assignee set to John Abbott
  • % Done changed from 0 to 90
  • Estimated time set to 0.25 h

Added new function IsPowrerOf2 for BigRat. Gives false if arg is not strictly positive.
Impl is simple rather than extra fast.

#2 Updated by John Abbott over 3 years ago

  • Status changed from Feedback to Closed
  • % Done changed from 90 to 100

Also available in: Atom PDF