ninetynine-1.3.0: Ninety-Nine Haskell Problems
CopyrightCopyright (C) 2022 Yoo Chung
LicenseGPL-3.0-or-later
Maintainerdev@chungyc.org
Safe HaskellSafe-Inferred
LanguageGHC2021

Solutions.P43

Description

Some solutions to Problems.P43 of Ninety-Nine Haskell Problems.

Synopsis

Documentation

gaussianDividesBy Source #

Arguments

:: Complex Integer

\(x\)

-> Complex Integer

\(y\)

-> Bool

\(y \mid x\), i.e., whether \(x\) is divisible by \(y\)

Determine whether a Gaussian integer is divisible by another.