Re: [sympy] Codegen and autowrap for tensor objects

2014-02-07 Thread Matthew Rocklin
You might be interested in Theano and in the SymPy->Theano printers. On Fri, Feb 7, 2014 at 6:18 PM, Vlad Seghete wrote: > Last time I checked what I want to do was not possible using sympy but > several versions have come out since then, adding a few features that I > just can't get to work. >

Re: [sympy] Re: An inequality sympy should be able to deduce?

2014-02-07 Thread Harsh Gupta
Thanks for posting this on the mailing list. There's also a bug in the new `solve_univariate_inequalities` ``` In [2]: x = Symbol('x', positive=True) In [3]: y = Symbol('y') In [4]: solve_univariate_inequality(exp(x) > 1, x) Out[4]: False In [5]: solve_univariate_inequality(exp(y) > 1, y

Re: [sympy] tensors and derivatives

2014-02-07 Thread tjhnson
On Friday, February 7, 2014 7:54:33 PM UTC-6, Aaron Meurer wrote: > > I don't think the Indexed objects are real tensors. They were designed > for use with the code generation module. It would be better to get > this functionality with the new tensor module, I think (assuming my > understanding

[sympy] Codegen and autowrap for tensor objects

2014-02-07 Thread Vlad Seghete
Last time I checked what I want to do was not possible using sympy but several versions have come out since then, adding a few features that I just can't get to work. First, what I am already doing is generating numpy arrays containing (large) sympy expressions in each element. Currently I am e

Re: [sympy] Preventing Polynomial Evaluation

2014-02-07 Thread someone
> What do you mean it will break compatibility? Of course, any code that > writes hermite(2, x) and expects a polynomial will break, but that's > the point of the change. That is exactly what I mean. And this may occur deep within some other algorithms, for example heurisch maybe. The tests will s

Re: [sympy] Preventing Polynomial Evaluation

2014-02-07 Thread someone
Hi, > > We should just change all the special polynomial objects to not > > evaluate by default. Please try PR #2890. -- 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

Re: [sympy] Re: An inequality sympy should be able to deduce?

2014-02-07 Thread Aaron Meurer
No, unfortunately, non-trivial relational assumptions like this are largely not implemented. As you may or may not know, the assumptions system in SymPy is currently in a bit of a mess. There are two assumptions systems, the "old" one, which is the one you used, and the "new" one, which uses ask()

Re: [sympy] tensors and derivatives

2014-02-07 Thread Aaron Meurer
I don't think the Indexed objects are real tensors. They were designed for use with the code generation module. It would be better to get this functionality with the new tensor module, I think (assuming my understanding of it is correct). Aaron Meurer On Fri, Feb 7, 2014 at 2:30 PM, wrote: > Hi

Re: [sympy] Re: Review requirements for GSoC students?

2014-02-07 Thread Aaron Meurer
Formally, only one pull request is required. But we do take into account your total contribution, and communication with the community. Also, you should be aware that the pull request for eligibility has to be to the sympy repo (as opposed to Gamma or Live or csympy), if I remember correctly. Unfo

Re: [sympy] Preventing Polynomial Evaluation

2014-02-07 Thread Aaron Meurer
What do you mean it will break compatibility? Of course, any code that writes hermite(2, x) and expects a polynomial will break, but that's the point of the change. Aaron Meurer On Fri, Feb 7, 2014 at 7:09 PM, someone wrote: > Hi, > >> We should just change all the special polynomial objects to

Re: [sympy] Preventing Polynomial Evaluation

2014-02-07 Thread someone
Hi, > We should just change all the special polynomial objects to not > evaluate by default. Ok, let me fix that. But be aware that this *will* break compatibility in all cases. I don't think we can avoid that with reasonable effort. (And I will not try.) -- You received this message because yo

[sympy] tensors and derivatives

2014-02-07 Thread tjhnson
Hi, I was wondering if its possible to take derivatives with respect to indexed symbols. For example, >>> from sympy.tensor import IndexedBase, Idx>>> x = IndexBase('x')>>> i, j = >>> map(Idx, ['i', 'j'])>>> x[i].diff(x[j])ValueError: Can't differentiate wrt >>> the variable: x[j], 1 I'd like

[sympy] Re: GSOC 2014: Series expansion

2014-02-07 Thread Avichal Dayal
Also I wanted to ask about 'The Lpoly2 Distributed polynomials in series'. It is the work of Mario Pernici which is upon review process now. https://github.com/sympy/sympy/pull/609 How will it affect the series code? I'm also a bit unclear of what the aim of this project. Apart from formal power

Re: [sympy] how to create algebra or generate operation or construct theory with sympy

2014-02-07 Thread monde wilson
Hi Author of this module, My gmail account vincent monde is hacked, i can not use any more. now i open a new account wilson monde account could you show that how to express associative property and distributivity property with category package? Regards, Wilson Monde Aaron Meurer於 2014年2月6日星期

[sympy] Re: An inequality sympy should be able to deduce?

2014-02-07 Thread Patrick O'Neill
Howdy folks, I'm a very new to sympy, and am stumped by the following error. Considering the following code snippet: from sympy import * print sympy.__version__ #'0.7.4.1-git' epsilon,beta = var("epsilon,beta",positive=True) (exp(epsilon*beta) - 1).is_positive # is None Sympy knows that beta and

Re: [sympy] Sympy gamma on hacker news

2014-02-07 Thread Nitin Agarwal
Hi, As of now sympy gamma needs more improvement to make it much better than the current version, I have got aware of the code, logic and workflow of the sympy core module code implemented till date. I would like to work on it further so as to improve, But I would stuck in deciding where to start

Re: [sympy] Re: Review requirements for GSoC students?

2014-02-07 Thread Nitin Agarwal
Well, this is really a good idea for the community as well as the students to get aware of the code of sympy. It will enable the community to have discussions on the issues currently present and on the students side, it will be good to get aware of the code of various modules of sympy. Making this

Re: [sympy] Guiding Sympy though trig substitutions

2014-02-07 Thread Matthew Rocklin
A few parts of sympy allow you to specify objective functions for simplification. Pure trig simplification with the fu algorithm is one. In [6]: fu? Objective function example >>> fu(sin(x)/cos(x)) # default objective function tan(x) >>> fu(sin(x)/cos(x), measure=lambda x: -x.count_ops()) # maxi

[sympy] Re: Behaviour of Vector.express

2014-02-07 Thread Sachin Joglekar
Its fixed now. On Friday, February 7, 2014 3:14:54 PM UTC+5:30, TARUN GABA wrote: > > Hi, > I am curious about how the Vector.express function behaves, when we call > it from a Zero Vector. > For example: > > >>>from sympy.physics.mechanics.point import Point > >>>A = Point() > >>>type(A) > sympy

Re: [sympy] how to create algebra or generate operation or construct theory with sympy

2014-02-07 Thread monde wilson
Hi Author of this module, when i remember the login name vincent monde account, i forget the password could you show that how to express associative property and distributivity property with category package? will adjunction be implemented in future in category package? Regards, Wilson Monde

[sympy] Guiding Sympy though trig substitutions

2014-02-07 Thread Alex Clifton
I was wondering if there was a way to “guide” sympy in performing trig identities to get the output into a specific form? Below, I go into detail and have attached a working version of the file for reference. In the expression of P, the coefficients D, F, G, H, and J are assumed to be real valu

Re: [sympy] Preventing Polynomial Evaluation

2014-02-07 Thread Freddie Witherden
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/02/2014 01:43, Aaron Meurer wrote: > We should just change all the special polynomial objects to not > evaluate by default. jacobi_normalized actually *is* a class, but > it evaluates whenever the degree is an explicit integer. But > there's no

[sympy] Re: Behaviour of Vector.express

2014-02-07 Thread Sachin Joglekar
You are right. It should actually return Vector(0), i.e. sympy.physics.vector.vector.Vector (with the new physics.vector module) or sympy.physics.mechanics.essential.Vector (for the old version of the mechanics core). I'll fix this. On Friday, February 7, 2014 3:14:54 PM UTC+5:30, TARUN GABA wr

[sympy] Re: problem in django while implementing ipython notebook to sympy_gamma

2014-02-07 Thread SAHIL SHEKHAWAT
i am currently writing basic functionalities beacuse i was writing and testing simultaneously..(by my own standards).. please bare with me for some more hours!! On Monday, February 3, 2014 9:02:51 PM UTC+5:30, SAHIL SHEKHAWAT wrote: > > hey friends, > for some time now i have been working on im

[sympy] Behaviour of Vector.express

2014-02-07 Thread TARUN GABA
Hi, I am curious about how the Vector.express function behaves, when we call it from a Zero Vector. For example: >>>from sympy.physics.mechanics.point import Point >>>A = Point() >>>type(A) sympy.physics.mechanics.point.Point >>>A.pos_from(A) 0 >>>type(A.pos_from(A)) sympy.physics.mechanics.essent