pysym package¶
pysym is a minimal symbolic manipulation framework
Submodules¶
pysym.core module¶
-
class
pysym.core.
Abs
(*args)[source]¶ Bases:
pysym.core.Function1
Methods
create
(args)diff
(wrt)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
Add
(*args)[source]¶ Bases:
pysym.core.Reduction
Methods
create
(args)diff
(wrt)evalf
()expand
()found_in
(flat_iterable)has
(instance)insert_mult
(factor)is_atomic
()is_zero
()sorted
()subs
(subs_dict)
-
class
pysym.core.
Atomic
(*args)[source]¶ Bases:
pysym.core.Basic
Methods
create
(args)expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)-
args
¶
-
-
class
pysym.core.
Basic
(*args)[source]¶ Bases:
object
Methods
create
(args)expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)-
args
¶
-
-
class
pysym.core.
Binary
(a, b)[source]¶ Bases:
pysym.core.Operator
Methods
create
(args)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()sorted
()subs
(subs_dict)
-
class
pysym.core.
Eq
(*args)[source]¶ Bases:
pysym.core.Relational
Methods
create
(args)evalb
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
Fraction
(a, b)[source]¶ Bases:
pysym.core.Binary
Methods
create
(args)diff
(wrt)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()sorted
()subs
(subs_dict)
-
class
pysym.core.
Function
(*args)[source]¶ Bases:
pysym.core.Basic
Methods
create
(args)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
Function1
(*args)[source]¶ Bases:
pysym.core.Function
Methods
create
(args)diff
(wrt)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
Ge
(*args)[source]¶ Bases:
pysym.core.Relational
Methods
create
(args)evalb
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
Gt
(*args)[source]¶ Bases:
pysym.core.Relational
Methods
create
(args)evalb
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
ITE
(cond, if_true, if_false)[source]¶ Bases:
pysym.core.Basic
Methods
create
(args)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
Le
(*args)[source]¶ Bases:
pysym.core.Relational
Methods
create
(args)evalb
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
Lt
(*args)[source]¶ Bases:
pysym.core.Relational
Methods
create
(args)evalb
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
Matrix
(nrows, ncols, source)[source]¶ Bases:
pysym.core.Basic
Attributes
ncols
nrows
shape
Methods
create
(args)evalf
()expand
()flatten
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()jacobian
(iterable)subs
(subs_dict)-
ncols
¶
-
nrows
¶
-
shape
¶
-
-
class
pysym.core.
Mul
(*args)[source]¶ Bases:
pysym.core.Reduction
Methods
create
(args)diff
(wrt)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()sorted
()subs
(subs_dict)
-
class
pysym.core.
Ne
(*args)[source]¶ Bases:
pysym.core.Relational
Methods
create
(args)evalb
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
Not
(*args)[source]¶ Bases:
pysym.core.Relational
Methods
create
(args)evalb
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
Number
(*args)[source]¶ Bases:
pysym.core.Atomic
Methods
create
(args)diff
(wrt)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()make
(arg)subs
(subs_dict)
-
class
pysym.core.
Operator
(*args)[source]¶ Bases:
pysym.core.Basic
Methods
create
(args)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()sorted
()subs
(subs_dict)
-
class
pysym.core.
Pow
(a, b)[source]¶ Bases:
pysym.core.Binary
Methods
create
(args)diff
(wrt)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()sorted
()subs
(subs_dict)
-
class
pysym.core.
Reduction
(*args)[source]¶ Bases:
pysym.core.Operator
Methods
create
(args)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()sorted
()subs
(subs_dict)
-
class
pysym.core.
Relational
(*args)[source]¶ Bases:
pysym.core.Basic
Methods
create
(args)evalb
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
Sub
(a, b)[source]¶ Bases:
pysym.core.Binary
Methods
create
(args)diff
(wrt)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()sorted
()subs
(subs_dict)
-
class
pysym.core.
Symbol
(*args)[source]¶ Bases:
pysym.core.Atomic
Methods
create
(args)diff
(instance)expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
Vector
(*args)[source]¶ Bases:
pysym.core.Basic
Methods
create
(args)diff
(wrt)expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
acos
(*args)[source]¶ Bases:
pysym.core.Function1
Methods
create
(args)diff
(wrt)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
asin
(*args)[source]¶ Bases:
pysym.core.Function1
Methods
create
(args)diff
(wrt)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
atan
(*args)[source]¶ Bases:
pysym.core.Function1
Methods
create
(args)diff
(wrt)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
cos
(*args)[source]¶ Bases:
pysym.core.Function1
Methods
create
(args)diff
(wrt)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
exp
(*args)[source]¶ Bases:
pysym.core.Function1
Methods
create
(args)diff
(wrt)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
gamma
(*args)[source]¶ Bases:
pysym.core.Function1
Methods
create
(args)diff
(wrt)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
log
(*args)[source]¶ Bases:
pysym.core.Function1
Methods
create
(args)diff
(wrt)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
sin
(*args)[source]¶ Bases:
pysym.core.Function1
Methods
create
(args)diff
(wrt)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
sqrt
(*args)[source]¶ Bases:
pysym.core.Function1
Methods
create
(args)diff
(wrt)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)
-
class
pysym.core.
tan
(*args)[source]¶ Bases:
pysym.core.Function1
Methods
create
(args)diff
(wrt)evalf
()expand
()found_in
(flat_iterable)has
(instance)is_atomic
()is_zero
()subs
(subs_dict)