(self, inlist, insyms=[])
return list(set.union(set_f, set_d) - set(insyms))
Finds all non-supplied dynamicsymbols in the expressions.
Finds all non-supplied dynamicsymbols in the expressions.
Finds all non - supplied dynamicsymbols in the expressions .
def _find_dynamicsymbols(self, inlist, insyms=[]):
        """Finds all non-supplied dynamicsymbols in the expressions."""
        from sympy.core.function import AppliedUndef, Derivative
        t = dynamicsymbols._t
        return reduce(set.union, [set([i]) for j in inlist
            for i in j.atoms(AppliedUndef, Derivative)
            if i.free_symbols == set([t])], set()) - insyms

        temp_f = set().union(*[i.atoms(AppliedUndef) for i in inlist])
        temp_d = set().union(*[i.atoms(Derivative) for i in inlist])
        set_f = set([a for a in temp_f if a.args == (t,)])
        set_d = set([a for a in temp_d if ((a.args[0] in set_f) and all([i == t
                     for i in a.variables]))])
        return list(set.union(set_f, set_d) - set(insyms))
def _find_dynamicsymbols ( self , inlist , insyms = [ ] ) : from sympy . core . function import AppliedUndef , Derivative t = dynamicsymbols . _t return reduce ( set . union , [ set ( [ i ] ) for j in inlist for i in j . atoms ( AppliedUndef , Derivative ) if i . free_symbols == set ( [ t ] ) ] , set ( ) ) - insyms temp_f = set ( ) . union ( * [ i . atoms ( AppliedUndef ) for i in inlist ] ) temp_d = set ( ) . union ( * [ i . atoms ( Derivative ) for i in inlist ] ) set_f = set ( [ a for a in temp_f if a . args == ( t , ) ] ) set_d = set ( [ a for a in temp_d if ( ( a . args [ 0 ] in set_f ) and all ( [ i == t for i in a . variables ] ) ) ] ) return list ( set . union ( set_f , set_d ) - set ( insyms ) )