I wrote a Quaternion class which provides basic quaternion operations (please see the attachment).I have never made an open source contribution before so I am sorry if any of these questions are stupid.Here are my queries :1) What module of sympy should I put this file in?
2) Is my code good enough to be added to sympy? If not, what changes should I make?
3) printing issue :In my code I used 2 classes for printing (CustomStrPrinter and CustomLatexPrinter) and set the default to CustomStrPrinter.The issue is that if I set the default to CustomLatexPrinter it works fine for IPython shell commands but when I call the print function on expressionsit prints the latex form of the expression.I want shell commands to use the CustomLatexPrinter (if latex is available) and print statements to use the CustomStrPrinter.I guess I am confused about this whole printing thing.In short, I want the printing to work in the way it works for sympy matrices (gives a fancy latex matrix in IPython shell commands but gives a normal string when print is used).
4) I made some functions in the code called diff, integrate, exp and ln and they can be called on a Quaternion object q asq.integrate()q.exp()q.ln()but I also want them to work when sympy.integrate(q), sympy.exp(q), sympy.ln(q) are used. How should I accomplish this?
--
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 sympy+unsubscribe@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/5f67df3d-3979-435f-bda9-b96570a295a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.