Пример #1
0
    def trigsimp(self, **opts):
        """
        Implements the SymPy trigsimp routine, for this quantity.

        trigsimp's documentation
        ========================

        """
        trig_components = [tsimp(v, **opts) * k for
                           k, v in self.components.items()]
        return self._add_func(*trig_components)
Пример #2
0
    def trigsimp(self, **opts):
        """
        Implements the SymPy trigsimp routine, for vectors.

        trigsimp's documentation
        ========================

        """
        trig_components = [tsimp(v, **opts) * k for \
                           k, v in self.components.items()]
        return VectorAdd(*trig_components)