symengine-0.1.2.0: SymEngine symbolic mathematics engine for Haskell

Safe HaskellNone
LanguageHaskell2010

Symengine

Description

 

Synopsis

Documentation

ascii_art_str :: IO String Source #

The ascii_art_str function prints SymEngine in ASCII art. this is useful as a sanity check

zero :: BasicSym Source #

constructor for 0

one :: BasicSym Source #

constructor for 1

im :: BasicSym Source #

constructor for i = sqrt(-1)

pi :: BasicSym Source #

the ratio of the circumference of a circle to its radius

e :: BasicSym Source #

The base of the natural logarithm

minus_one :: BasicSym Source #

constructor for -1

rational :: BasicSym -> BasicSym -> BasicSym Source #

Create a rational number with numerator and denominator

complex :: BasicSym -> BasicSym -> BasicSym Source #

Create a complex number a + b * im

symbol :: String -> BasicSym Source #

Create a symbol with the given name

data BasicSym Source #

represents a symbol exported by SymEngine. create this using the functions zero, one, minus_one, e, im, rational, complex, and also by constructing a number and converting it to a Symbol

>>> 3.5 :: BasicSym
7/2
>>> rational 2 10
1 /5
>>> complex 1 2
1 + 2*I