These are chat archives for sympy/sympy/optics

May 2014
Sudhanshu Mishra
May 31 2014 22:26
This is the methods I'm trying for rewrite but it isn't being called
def _eval_rewrite_as_exp(self, arg):
    if arg.func is C.exp:           
        return self._amplitude*exp(self.angular_velocity*Symbol('t') + self._phase)
Please help
Neither by expr.rewrite(C.exp) nor by expr.rewrite('exp')
Sudhanshu Mishra
May 31 2014 22:54
Aaron Meurer
May 31 2014 23:19
I don’t know what arg is supposed to be in the eval_rewrite_as functions