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)
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)