Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
data PhaseSpace Source #
Instances
Show PhaseSpace Source # | |
Defined in Physics showsPrec :: Int -> PhaseSpace -> ShowS # show :: PhaseSpace -> String # showList :: [PhaseSpace] -> ShowS # | |
VectorSpace PhaseSpace Source # | |
Defined in Physics (+.) :: PhaseSpace -> PhaseSpace -> PhaseSpace Source # (-.) :: PhaseSpace -> PhaseSpace -> PhaseSpace Source # (*.) :: Double -> PhaseSpace -> PhaseSpace Source # (/.) :: PhaseSpace -> Double -> PhaseSpace Source # zero :: PhaseSpace Source # negateV :: PhaseSpace -> PhaseSpace Source # | |
Eq PhaseSpace Source # | |
Defined in Physics (==) :: PhaseSpace -> PhaseSpace -> Bool # (/=) :: PhaseSpace -> PhaseSpace -> Bool # |
particleInPotential :: Double -> (Vec2 -> Double) -> PhaseSpace -> PhaseSpace Source #
twoBody :: (Vec2 -> Double) -> (Vec2 -> Vec2 -> Double) -> (Double, Double) -> (PhaseSpace, PhaseSpace) -> (PhaseSpace, PhaseSpace) Source #
Instances
Foldable NBody Source # | |
Defined in Physics fold :: Monoid m => NBody m -> m # foldMap :: Monoid m => (a -> m) -> NBody a -> m # foldMap' :: Monoid m => (a -> m) -> NBody a -> m # foldr :: (a -> b -> b) -> b -> NBody a -> b # foldr' :: (a -> b -> b) -> b -> NBody a -> b # foldl :: (b -> a -> b) -> b -> NBody a -> b # foldl' :: (b -> a -> b) -> b -> NBody a -> b # foldr1 :: (a -> a -> a) -> NBody a -> a # foldl1 :: (a -> a -> a) -> NBody a -> a # elem :: Eq a => a -> NBody a -> Bool # maximum :: Ord a => NBody a -> a # minimum :: Ord a => NBody a -> a # | |
Traversable NBody Source # | |
Applicative NBody Source # | |
Functor NBody Source # | |
Show a => Show (NBody a) Source # | |
VectorSpace a => VectorSpace (NBody a) Source # | |
Eq a => Eq (NBody a) Source # | |