complex-generic-0.1.1.1: complex numbers with non-mandatory RealFloat

Data.Complex.Generic

Description

Complex numbers.

Synopsis

# Documentation

data Complex a Source #

Complex numbers in rectangular form.

Constructors

 !a :+ !a infix 6

Instances

 Source # Methodsfmap :: (a -> b) -> Complex a -> Complex b #(<\$) :: a -> Complex b -> Complex a # Eq a => Eq (Complex a) Source # Methods(==) :: Complex a -> Complex a -> Bool #(/=) :: Complex a -> Complex a -> Bool # Source # Methods Source # Methods Source # Methods Source # Methods Source # Methods Source # Methods Integral t => Fractional (Complex (Ratio t)) Source # Methods(/) :: Complex (Ratio t) -> Complex (Ratio t) -> Complex (Ratio t) #recip :: Complex (Ratio t) -> Complex (Ratio t) # HasResolution t => Fractional (Complex (Fixed t)) Source # Methods(/) :: Complex (Fixed t) -> Complex (Fixed t) -> Complex (Fixed t) #recip :: Complex (Fixed t) -> Complex (Fixed t) # Source # Methods Source # Methods Data a => Data (Complex a) Source # Methodsgfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Complex a -> c (Complex a) #gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Complex a) #toConstr :: Complex a -> Constr #dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c (Complex a)) #dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Complex a)) #gmapT :: (forall b. Data b => b -> b) -> Complex a -> Complex a #gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Complex a -> r #gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Complex a -> r #gmapQ :: (forall d. Data d => d -> u) -> Complex a -> [u] #gmapQi :: Int -> (forall d. Data d => d -> u) -> Complex a -> u #gmapM :: Monad m => (forall d. Data d => d -> m d) -> Complex a -> m (Complex a) #gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Complex a -> m (Complex a) #gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Complex a -> m (Complex a) # Source # Methods Source # Methods Source # Methods Source # Methods Source # Methods Source # Methods Source # Methods Source # Methods Integral t => Num (Complex (Ratio t)) Source # Methods(+) :: Complex (Ratio t) -> Complex (Ratio t) -> Complex (Ratio t) #(-) :: Complex (Ratio t) -> Complex (Ratio t) -> Complex (Ratio t) #(*) :: Complex (Ratio t) -> Complex (Ratio t) -> Complex (Ratio t) #negate :: Complex (Ratio t) -> Complex (Ratio t) #abs :: Complex (Ratio t) -> Complex (Ratio t) #signum :: Complex (Ratio t) -> Complex (Ratio t) # Source # Methods Source # Methods Source # Methods Source # Methods Source # Methods HasResolution t => Num (Complex (Fixed t)) Source # Methods(+) :: Complex (Fixed t) -> Complex (Fixed t) -> Complex (Fixed t) #(-) :: Complex (Fixed t) -> Complex (Fixed t) -> Complex (Fixed t) #(*) :: Complex (Fixed t) -> Complex (Fixed t) -> Complex (Fixed t) #negate :: Complex (Fixed t) -> Complex (Fixed t) #abs :: Complex (Fixed t) -> Complex (Fixed t) #signum :: Complex (Fixed t) -> Complex (Fixed t) # Source # Methods Source # Methods Read a => Read (Complex a) Source # MethodsreadsPrec :: Int -> ReadS (Complex a) # Show a => Show (Complex a) Source # MethodsshowsPrec :: Int -> Complex a -> ShowS #show :: Complex a -> String #showList :: [Complex a] -> ShowS # Source # Methods Source # Methods Source # Methods Source # Methods Source # Methods Source # Methods Source # Methodsrect :: Complex Int -> (Int, Int) Source # Source # Methodsrect :: Complex Int8 -> (Int8, Int8) Source # Source # Methods Source # Methods Source # Methods Source # Methods Source # Methodsrect :: Complex Word -> (Word, Word) Source # Source # Methods Source # Methods Source # Methods Source # Methods Source # Methods Source # Methods Integral t => ComplexRect (Complex (Ratio t)) (Ratio t) Source # MethodsmkRect :: Ratio t -> Ratio t -> Complex (Ratio t) Source #real :: Ratio t -> Complex (Ratio t) Source #imag :: Ratio t -> Complex (Ratio t) Source #rect :: Complex (Ratio t) -> (Ratio t, Ratio t) Source #realPart :: Complex (Ratio t) -> Ratio t Source #imagPart :: Complex (Ratio t) -> Ratio t Source #conjugate :: Complex (Ratio t) -> Complex (Ratio t) Source #sqr :: Complex (Ratio t) -> Complex (Ratio t) Source #(.*) :: Ratio t -> Complex (Ratio t) -> Complex (Ratio t) Source #(*.) :: Complex (Ratio t) -> Ratio t -> Complex (Ratio t) Source # HasResolution t => ComplexRect (Complex (Fixed t)) (Fixed t) Source # MethodsmkRect :: Fixed t -> Fixed t -> Complex (Fixed t) Source #real :: Fixed t -> Complex (Fixed t) Source #imag :: Fixed t -> Complex (Fixed t) Source #rect :: Complex (Fixed t) -> (Fixed t, Fixed t) Source #realPart :: Complex (Fixed t) -> Fixed t Source #imagPart :: Complex (Fixed t) -> Fixed t Source #conjugate :: Complex (Fixed t) -> Complex (Fixed t) Source #sqr :: Complex (Fixed t) -> Complex (Fixed t) Source #(.*) :: Fixed t -> Complex (Fixed t) -> Complex (Fixed t) Source #(*.) :: Complex (Fixed t) -> Fixed t -> Complex (Fixed t) Source #

Convert to Complex.

Convert from Complex.