These are chat archives for sympy/sympy/optics

30th
May 2014
Sudhanshu Mishra
@debugger22
May 30 2014 19:28
Is there a way I can rewrite an Expr as pde using _eval_rewrite_as_pde?
Sean Vig
@flacjacket
May 30 2014 19:33
i think rewrite lets you pass string arguments, which would let you do something like that
so it'd be something like expr.rewrite('pde')
Sudhanshu Mishra
@debugger22
May 30 2014 19:33
oh thanks!
I was trying expr.rewrite(sin) :(
Sudhanshu Mishra
@debugger22
May 30 2014 19:55
And how we do we declare a multivariate function?
For e.g.
E(x, t).
I've to represent its partial derivative with respect to x and t.
Aaron Meurer
@asmeurer
May 30 2014 20:04
expr.diff(x)
Sudhanshu Mishra
@debugger22
May 30 2014 20:05
I mean, like we do f = Function('x')
can we do E = Function('x, t')
And when I pass E in the Derivative class
x and t should be aware of that.
Sean Vig
@flacjacket
May 30 2014 20:06
umm, do you want f(x, t) ?
Sudhanshu Mishra
@debugger22
May 30 2014 20:06
yea
Sean Vig
@flacjacket
May 30 2014 20:07
you'd declare f = Function('f') or f = symbols('f', function=True)
then you do f(x,t)
the argument to Function is the name of the function, not the arguments
*not the arguments of the function
Sudhanshu Mishra
@debugger22
May 30 2014 20:08
Thanks
It was very silly
Sean Vig
@flacjacket
May 30 2014 20:08
haha, np