Package sympycore :: Package calculus :: Module algebra :: Class Calculus
[hide private]
[frames] | no frames]

Class Calculus

source code


Represents an element of a symbolic algebra.

The set of a symbolic algebra is a set of expressions.



Nested Classes [hide private]
  Infinity

Inherited from core.Basic: __metaclass__

Instance Methods [hide private]
 
__divmod__(self, other) source code
 
__eq__(self, other) source code
call graph 
 
__ge__(self, other) source code
call graph 
 
__gt__(self, other) source code
call graph 
 
__le__(self, other) source code
call graph 
 
__lt__(self, other) source code
call graph 
 
as_algebra(self, cls)
Convert algebra to another algebra.
source code
 
as_polynom(self, cls=None) source code
 
diff(expr, symbol, order=1)
Return derivative of the expression with respect to symbols.
source code
call graph 
 
evalf(self, n=15) source code
call graph 
 
get_direction(self) source code
call graph 
 
integrate(expr, x) source code
call graph 
 
to_Float(self, n=15) source code

Inherited from basealgebra.pairs.CommutativeRingWithPairs: __abs__, __add__, __div__, __hash__, __int__, __long__, __mul__, __ne__, __neg__, __nonzero__, __pos__, __pow__, __radd__, __rdiv__, __rmul__, __rsub__, __str__, __sub__, as_Add_args, as_Factors_args, as_Mul_args, as_Pow_args, as_Terms_args, as_primitive, as_tree, copy, expand, has, has_symbol, to_str_data

Inherited from basealgebra.ring.CommutativeRing: __rpow__, __rtruediv__, __truediv__, as_Log_args

Inherited from basealgebra.ring.CommutativeRing (private): _matches

Inherited from basealgebra.algebra.BasicAlgebra: __repr__, as_primitve, match, matches, subs

Inherited from object: __delattr__, __getattribute__, __init__, __reduce__, __reduce_ex__, __setattr__

Class Methods [hide private]
 
Exp(cls, arg) source code
 
Log(cls, arg, base=None)
Compute logarithm of arg in base.
source code
 
Number(cls, num, denom=None)
Construct new number instance as an algebra number.
source code
call graph 
 
convert_coefficient(cls, obj, typeerror=True)
Convert obj to coefficient algebra.
source code
call graph 
 
convert_exponent(cls, obj, typeerror=True)
Convert obj to exponent algebra.
source code
call graph 
 
get_predefined_symbols(cls, name) source code
call graph 

Inherited from basealgebra.pairs.CommutativeRingWithPairs: Add, Factors, Mul, Pow, Sub, Symbol, Terms, callable_to_str_data, coefficient_to_str_data, exponent_to_str_data

Inherited from basealgebra.ring.CommutativeRing: Div

Inherited from basealgebra.algebra.BasicAlgebra: convert

Static Methods [hide private]

Inherited from basealgebra.pairs.CommutativeRingWithPairs: __new__

Class Variables [hide private]
  coefftypes = (<type 'int'>, <type 'long'>, <class 'sympycore.a...
  defined_functions = {'cos': <class 'sympycore.calculus.functio...
  exptypes = (<type 'int'>, <type 'long'>, <class 'sympycore.ari...
  one = Calculus('1')
  oo = CalculusInfinity(1)
  undefined = CalculusInfinity(0)
  zero = Calculus('0')
  zoo = CalculusInfinity(CalculusInfinity(0))

Inherited from basealgebra.pairs.CommutativeRingWithPairs: one_c, one_e, zero_c, zero_e

Inherited from basealgebra.ring.CommutativeRing (private): _symbols

Inherited from basealgebra.algebra.BasicAlgebra (private): _str_value

Properties [hide private]
  data
  head
  is_bounded

Inherited from basealgebra.pairs.CommutativeRingWithPairs: args, func, is_Add, is_Mul, is_Number, is_Pow, is_Symbol, symbols

Inherited from object: __class__

Method Details [hide private]

Log(cls, arg, base=None)
Class Method

source code 

Compute logarithm of arg in base.

Argument arg must be an element of exponent algebra and base is an element of an algebra.

Overrides: basealgebra.ring.CommutativeRing.Log
(inherited documentation)

Number(cls, num, denom=None)
Class Method

source code 
call graph 
Construct new number instance as an algebra number.
Overrides: basealgebra.pairs.CommutativeRingWithPairs.Number
(inherited documentation)

__eq__(self, other)
(Equality operator)

source code 
call graph 
Overrides: basealgebra.pairs.CommutativeRingWithPairs.__eq__

__ge__(self, other)
(Greater-than-or-equals operator)

source code 
call graph 
Overrides: basealgebra.pairs.CommutativeRingWithPairs.__ge__

__gt__(self, other)
(Greater-than operator)

source code 
call graph 
Overrides: basealgebra.pairs.CommutativeRingWithPairs.__gt__

__le__(self, other)
(Less-than-or-equals operator)

source code 
call graph 
Overrides: basealgebra.pairs.CommutativeRingWithPairs.__le__

__lt__(self, other)
(Less-than operator)

source code 
call graph 
Overrides: basealgebra.pairs.CommutativeRingWithPairs.__lt__

as_algebra(self, cls)

source code 
Convert algebra to another algebra.
Overrides: basealgebra.algebra.BasicAlgebra.as_algebra

convert_coefficient(cls, obj, typeerror=True)
Class Method

source code 
call graph 
Convert obj to coefficient algebra.
Overrides: basealgebra.algebra.BasicAlgebra.convert_coefficient

convert_exponent(cls, obj, typeerror=True)
Class Method

source code 
call graph 
Convert obj to exponent algebra.
Overrides: basealgebra.algebra.BasicAlgebra.convert_exponent

diff(expr, symbol, order=1)

source code 
call graph 

Return derivative of the expression with respect to symbols.

Examples:

expr.diff(x,y) - 2nd derivative with respect to x and y
expr.diff(x,4) is equivalent to expr.diff(x,x,x,x).

get_predefined_symbols(cls, name)
Class Method

source code 
call graph 
Overrides: basealgebra.algebra.BasicAlgebra.get_predefined_symbols

Class Variable Details [hide private]

coefftypes

Value:
(<type 'int'>,
 <type 'long'>,
 <class 'sympycore.arithmetic.numbers.FractionTuple'>,
 <class 'sympycore.arithmetic.numbers.Complex'>,
 <class 'sympycore.arithmetic.numbers.Float'>)

defined_functions

Value:
{'cos': <class 'sympycore.calculus.functions.elementary.cos'>,
 'cot': <class 'sympycore.calculus.functions.elementary.cot'>,
 'exp': <class 'sympycore.calculus.functions.elementary.exp'>,
 'log': <class 'sympycore.calculus.functions.elementary.log'>,
 'sign': <class 'sympycore.calculus.functions.elementary.sign'>,
 'sin': <class 'sympycore.calculus.functions.elementary.sin'>,
 'sqrt': <class 'sympycore.calculus.functions.elementary.sqrt'>,
 'tan': <class 'sympycore.calculus.functions.elementary.tan'>}

exptypes

Value:
(<type 'int'>,
 <type 'long'>,
 <class 'sympycore.arithmetic.numbers.FractionTuple'>,
 <class 'sympycore.arithmetic.numbers.Complex'>,
 <class 'sympycore.arithmetic.numbers.Float'>)

Property Details [hide private]

is_bounded

Get Method:
unreachable.is_bounded(self)