Sorry the example actually raises an exception, My bad. So you can either comment out that line which will also skip other transformations or you can replace convert_ops to something else already included in the standard_transformations if you don't want to change the current behavior. e.g: auto_number is already included in the standard transformations and thus, can be causes no behavior changes except converting xor.
transformations.extend((auto_number, custom_implicit_transformation)) On Friday, January 23, 2015 at 10:57:28 AM UTC+5:30, Sahil Shekhawat wrote: > > I couldn't find a way to use xor in Gamma, so a hack would be skip > transformation of ^ to ** which is here: > https://github.com/sympy/sympy_gamma/blob/master/app/logic/logic.py#L154 > e.g. > > transformations.extend(tuple(custom_implicit_transformation)) > > > On Friday, January 23, 2015 at 7:52:51 AM UTC+5:30, Eric Tilley wrote: >> >> Hello! >> >> I am hosting a copy of Sympy Gamma on a Google App Engine server and >> using its JSON interface as a backend for my project. I am strong in C# and >> Python but no so great at web languages, so modifying the backend has been >> a challenge for me. I have made some modifications to Gamma to make fit my >> needs but have been stumped by one problem: I noticed that Gamma treats the >> ^ character as ** while Sympy Live treats is as an xor. I cannot seem to >> find a way to change this behavior in Gamma. Does anyone have any >> suggestions about how this could be implemented? >> >> Thanks, >> Eric >> > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/9ddf8862-e079-405b-9473-bdc3714e5332%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
