| Safe Haskell | None | 
|---|---|
| Language | Haskell98 | 
Quantum.Synthesis.QuadraticEquation
Description
This module provides a type class Quadratic, for solving
 quadratic equations.
- class Quadratic t a where
Documentation
class Quadratic t a where Source #
This type class provides a primitive method for solving quadratic
 equations. For many floating-point or fixed-precision
 representations of real numbers, using the usual "quadratic
 formula" results in a significant loss of precision. Instances of
 the Quadratic class should provide an efficient high-precision
 method when possible.
Minimal complete definition
Methods