Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
Integer square-root representation, discarding imaginary integers.
Imaginary | The number was negative, so we don't even attempt to compute it; just note that the result would be imaginary. |
Exactly Integer | An exact integer result. The |
Approximately Integer | The Integer component (i.e. the floor) of a non-integral result. The 'rsqrt 2' is 'Approximately 1'. |
Instances
Show Sqrt Source # | |
Eq Sqrt Source # | |
FromData Sqrt Source # | |
Defined in PlutusTx.Sqrt | |
ToData Sqrt Source # | |
Defined in PlutusTx.Sqrt | |
UnsafeFromData Sqrt Source # | |
Defined in PlutusTx.Sqrt | |
Lift DefaultUni Sqrt Source # | |
Defined in PlutusTx.Sqrt lift ∷ Sqrt → RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) Source # | |
Typeable DefaultUni Sqrt Source # | |
Defined in PlutusTx.Sqrt typeRep ∷ Proxy Sqrt → RTCompile DefaultUni fun (Type TyName DefaultUni ()) Source # |