hgeometry-combinatorial
Copyright(C) Frank Staals
Licensesee the LICENSE file
MaintainerFrank Staals
Safe HaskellSafe-Inferred
LanguageGHC2021

HGeometry.Number.Radical

Description

Types that support computing Square roots

Synopsis

Documentation

class Num r => Radical r where Source #

Types that support taking a square root.

Minimal complete definition

Nothing

Methods

sqrt :: r -> r Source #

Computes the square root of the number

default sqrt :: Floating r => r -> r Source #

Instances

Instances details
Radical Double Source # 
Instance details

Defined in HGeometry.Number.Radical

Methods

sqrt :: Double -> Double Source #

Radical Float Source # 
Instance details

Defined in HGeometry.Number.Radical

Methods

sqrt :: Float -> Float Source #