Re: [sympy] making a class print using a printer

2013-06-02 Thread Lucas Wilkins
bobjects. You can also use > it to get the options that have been set on the LaTeXPrinter and print > accordingly (e.g., inline vs. equation). > > Aaron Meurer > > > On Sun, Jun 2, 2013 at 11:13 AM, Lucas Wilkins > > wrote: > > I have a class that does

[sympy] making a class print using a printer

2013-06-02 Thread Lucas Wilkins
I have a class that does not extend a sympy object, but I would like it to print latex in the ipython shell (%load_ext sympyprinting), so I did something like class Thing: def _latex(self): return r"$\LaTeX$" I thought this should be enough, but it is not, what else is needed to get

Re: [sympy] Preventing an expression from evaluating

2013-06-01 Thread Lucas Wilkins
Is there some reason not to do this? (except for the way it prints) hold = Function("Hold") def release(expr): return expr.replace(hold, Id) print sin(pi), sin(hold(pi)), release(sin(hold(pi))) :L On Saturday, 1 June 2013 05:08:53 UTC+1, Aaron Meurer wrote: > > There have been many discuss

Re: [sympy] Re: sqrt in solve

2013-06-01 Thread Lucas Wilkins
advanced will require better deduction on the part of > the assumptions system. > > Aaron Meurer > > On Thu, May 30, 2013 at 4:48 PM, Lucas Wilkins > > wrote: > > Do you mean sympy.core.numbers.Zero? Or do mean the general problem that > > symbolically, zero i

[sympy] Re: sqrt in solve

2013-05-30 Thread Lucas Wilkins
Do you mean sympy.core.numbers.Zero? Or do mean the general problem that symbolically, zero is often the same as lack of objects? Should I flag it as an issue? On Thursday, 30 May 2013 21:46:53 UTC+1, Lucas Wilkins wrote: > > Hi, I've found some inappropriate behaviour of the sol

[sympy] sqrt in solve

2013-05-30 Thread Lucas Wilkins
Hi, I've found some inappropriate behaviour of the solve function. >>> x,y = symbols("x y", real=True, nonnegative=True) >>> solve(y-x**2,x) [-sqrt(y), sqrt(y)] The only non-negative case where both sqrt(y) and -sqrt(y) should be solutions is where y=0, in which case they are equal a

[sympy] Re: Cyclic groups

2013-05-19 Thread Lucas Wilkins
Actually, what I mean is elements that have the same algabraic structure as cyclic groups. On Sunday, 19 May 2013 18:40:55 UTC+1, Lucas Wilkins wrote: > > Is there an implementation of cyclic groups ready made somewhere? > > :L > -- You received this message because you are su

[sympy] Cyclic groups

2013-05-19 Thread Lucas Wilkins
Is there an implementation of cyclic groups ready made somewhere? :L -- 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+unsubscr...@googlegroups.com. To post to thi

Re: [sympy] Information Geometry Module

2013-05-16 Thread Lucas Wilkins
eom and/or stats should be done in SymPy, > so that everyone benefits. > > Aaron Meurer > > > On Thu, May 16, 2013 at 6:26 PM, Lucas Wilkins > > wrote: > > Hello Everybody! > > > > I've been thinking about making some CAS tools for information geometry

[sympy] Information Geometry Module

2013-05-16 Thread Lucas Wilkins
Hello Everybody! I've been thinking about making some CAS tools for information geometry for a long time now. I've been using Mathematica for my information geometry stuff, but the task of making a concrete Mathematica module depressed me, firstly because I don't like the language so much, and