File: Roots.hs

package info (click to toggle)
haskell-integer-roots 1.0.2.0-4
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 312 kB
  • sloc: haskell: 1,555; makefile: 5
file content (29 lines) | stat: -rw-r--r-- 685 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
-- |
-- Module:      Math.NumberTheory.Roots
-- Copyright:   (c) 2011 Daniel Fischer, 2016-2020 Andrew Lelechenko
-- Licence:     MIT
-- Maintainer:  Andrew Lelechenko <andrew.lelechenko@gmail.com>
--
-- Calculating integer roots and testing perfect powers.
--
module Math.NumberTheory.Roots
  ( -- * Square roots
    integerSquareRoot
  , isSquare
  , exactSquareRoot
  -- * Cube roots
  , integerCubeRoot
  , isCube
  , exactCubeRoot
  -- * /k/-th roots
  , integerRoot
  , isKthPower
  , exactRoot
  -- * Perfect powers
  , isPerfectPower
  , highestPower
  ) where

import Math.NumberTheory.Roots.Squares
import Math.NumberTheory.Roots.Cubes
import Math.NumberTheory.Roots.General