7 from sys
import version_info
as _swig_python_version_info
9 if __package__
or "." in __name__:
10 from .
import _calculus
15 import builtins
as __builtin__
21 strthis =
"proxy of " + self.this.__repr__()
22 except __builtin__.Exception:
24 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
27 def _swig_setattr_nondynamic_instance_variable(set):
28 def set_instance_attr(self, name, value):
30 set(self, name, value)
31 elif name ==
"thisown":
33 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
34 set(self, name, value)
36 raise AttributeError(
"You cannot add instance attributes to %s" % self)
37 return set_instance_attr
40 def _swig_setattr_nondynamic_class_variable(set):
41 def set_class_attr(cls, name, value):
42 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
45 raise AttributeError(
"You cannot add class attributes to %s" % cls)
49 def _swig_add_metaclass(metaclass):
50 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
52 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
56 class _SwigNonDynamicMeta(type):
57 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
58 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
61 class SwigPyIterator(object):
62 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
64 def __init__(self, *args, **kwargs):
65 raise AttributeError(
"No constructor defined - class is abstract")
67 __swig_destroy__ = _calculus.delete_SwigPyIterator
70 return _calculus.SwigPyIterator_value(self)
73 return _calculus.SwigPyIterator_incr(self, n)
76 return _calculus.SwigPyIterator_decr(self, n)
78 def distance(self, x):
79 return _calculus.SwigPyIterator_distance(self, x)
82 return _calculus.SwigPyIterator_equal(self, x)
85 return _calculus.SwigPyIterator_copy(self)
88 return _calculus.SwigPyIterator_next(self)
91 return _calculus.SwigPyIterator___next__(self)
94 return _calculus.SwigPyIterator_previous(self)
97 return _calculus.SwigPyIterator_advance(self, n)
100 return _calculus.SwigPyIterator___eq__(self, x)
103 return _calculus.SwigPyIterator___ne__(self, x)
105 def __iadd__(self, n):
106 return _calculus.SwigPyIterator___iadd__(self, n)
108 def __isub__(self, n):
109 return _calculus.SwigPyIterator___isub__(self, n)
111 def __add__(self, n):
112 return _calculus.SwigPyIterator___add__(self, n)
114 def __sub__(self, *args):
115 return _calculus.SwigPyIterator___sub__(self, *args)
120 _calculus.SwigPyIterator_swigregister(SwigPyIterator)
122 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
123 __repr__ = _swig_repr
124 coefficient = property(_calculus.Term_coefficient_get, _calculus.Term_coefficient_set)
125 exponent = property(_calculus.Term_exponent_get, _calculus.Term_exponent_set)
128 _calculus.Term_swiginit(self, _calculus.new_Term(coef, exp))
129 __swig_destroy__ = _calculus.delete_Term
132 _calculus.Term_swigregister(Term)
134 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
135 __repr__ = _swig_repr
136 terms = property(_calculus.Differential_terms_get, _calculus.Differential_terms_set)
139 return _calculus.Differential___add__(self, other)
142 return _calculus.Differential___mul__(self, other)
145 return _calculus.Differential_add_term(self, coefficient, exponent)
148 return _calculus.Differential_display(self)
151 return _calculus.Differential_power_rule(self)
154 return _calculus.Differential_product_rule(self, other)
157 return _calculus.Differential_quotient_rule(self, other)
160 return _calculus.Differential_chain_rule(self, inner)
163 return _calculus.Differential_nth_derivative(self, n)
166 return _calculus.Differential_eval(self, x)
169 return _calculus.Differential_limit_at(self, x)
172 return _calculus.Differential_limit_at_infinity(self)
175 _calculus.Differential_swiginit(self, _calculus.new_Differential())
176 __swig_destroy__ = _calculus.delete_Differential
179 _calculus.Differential_swigregister(Differential)
def quotient_rule(self, other)
def add_term(self, coefficient, exponent)
def nth_derivative(self, n)
def product_rule(self, other)
def chain_rule(self, inner)
def limit_at_infinity(self)
def __init__(self, coef, exp)