These are chat archives for sympy/sympy/optics

31st
May 2014
Sudhanshu Mishra
@debugger22
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
@debugger22
May 31 2014 22:54
sympy/sympy#7546
Aaron Meurer
@asmeurer
May 31 2014 23:19
I don’t know what arg is supposed to be in the eval_rewrite_as functions