On Thursday, November 5, 2015 at 3:56:09 PM UTC+2, Imran Ali wrote:
>
> If I simply hard code each metric, every thing works properly. For
> example, take egg carton surface,
>
> from sympy.diffgeom import Manifold, Patch, CoordSystem, TensorProduct
> from sympy import sin,cos
> dim
What you should do is post the complete code to stackoverflow, as you
have done here.
Aaron Meurer
On Fri, Nov 6, 2015 at 10:51 AM, Kalevi Suominen wrote:
>
>
> On Thursday, November 5, 2015 at 3:56:09 PM UTC+2, Imran Ali wrote:
>>
>> If I simply hard code each metric, every
I decided to use "cleaner" solution: create a custom Pow subclass that
evaluates. What method should I override?
On Wednesday, November 4, 2015 at 9:25:17 PM UTC+2, Aaron Meurer wrote:
>
> You can generally do this sort of thing using replace().
> Unfortunately, the pattern matcher doesn't
You want to override eval. Take a look at
http://docs.sympy.org/latest/guide.html#functions for an example.
Aaron Meurer
On Fri, Nov 6, 2015 at 1:42 PM, Paul Royik wrote:
> I decided to use "cleaner" solution: create a custom Pow subclass that
> evaluates. What method
Thank you.
How to override behaviour, so that above expression,
i.e.(-1)**(2/3).is_real outputs True?
On Friday, November 6, 2015 at 9:51:39 PM UTC+2, Aaron Meurer wrote:
>
> You want to override eval. Take a look at
> http://docs.sympy.org/latest/guide.html#functions for an example.
>
> Aaron