[sympy] Re: Need help with tests

2012-07-07 Thread Saurabh Jha
This is the code along with documentation from sympy import diff, integrate, sympify, expand, Symbol x=Symbol('x') def Delta(expr, d = 1): """Takes as input function expression and returns the diffrence between final value(function's expression incremented to 1) and initial value (function

Re: [sympy] Need help with tests

2012-07-07 Thread Aaron Meurer
It's hard to tell without seeing the code. What you wrote should work. Aaron Meurer On Jul 7, 2012, at 5:44 AM, Saurabh Jha wrote: > Hi, > >I implemented a Delta() function as a part of my project of > implementation of Kauers' algorithm > >It takes as input function expression and retu

Re: [sympy] trigonmetric simplification

2012-07-07 Thread Aaron Meurer
Once https://github.com/sympy/sympy/pull/1258 is fixed and merged, trigsimp() will be able to do it. Aaron Meurer On Jul 7, 2012, at 4:41 PM, Chris Smith wrote: > On Sat, Jul 7, 2012 at 10:48 AM, pallab wrote: >> How to get that >> >> sin(4)-2*cos(2)*sin(2) >> >> is zero? > > eq > sin(4)

Re: [sympy] trigonmetric simplification

2012-07-07 Thread Chris Smith
On Sat, Jul 7, 2012 at 10:48 AM, pallab wrote: > How to get that > > sin(4)-2*cos(2)*sin(2) > > is zero? >>> eq sin(4) - 2*sin(2)*cos(2) >>> simplify(eq.rewrite(exp)) 0 -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send emai

[sympy] trigonmetric simplification

2012-07-07 Thread pallab
How to get that sin(4)-2*cos(2)*sin(2) is zero? simplify, trigsimp, expand(trig=true) nothing works. Pallab -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this group

Re: [sympy] Re: can not do integral of sqrt(sin(x))

2012-07-07 Thread pallab
It does work. Sorry that I made a mistake. On Saturday, July 7, 2012 6:30:26 AM UTC-4, rl wrote: > > A first start: > > http://github.com/sympy/sympy/pull/1408 > > -- You received this message because you are subscribed to the Google Groups "sympy" group. To view this discussion on the web visi

[sympy] Need help with tests

2012-07-07 Thread Saurabh Jha
Hi, I implemented a Delta() function as a part of my project of implementation of Kauers' algorithm It takes as input function expression and returns the difference between final value(function's expression incremented to 1) and initial value (function's expression) . I saved the cha

Re: [sympy] Re: can not do integral of sqrt(sin(x))

2012-07-07 Thread rl
A first start: http://github.com/sympy/sympy/pull/1408 -- You received this message because you are subscribed to the Google Groups "sympy" group. To view this discussion on the web visit https://groups.google.com/d/msg/sympy/-/vkHPwsB_yYAJ. To post to this group, send email to sympy@googlegro

Re: [sympy] Re: can not do integral of sqrt(sin(x))

2012-07-07 Thread Tom Bachmann
Hi, There are a couple of things to say here. First I think you have confused when you give boundaries via x or via z. After substitution, the integrand becomes sqrt(z)/sqrt(1-z**2), so let's discuss this. Then we have: In [26]: i = Integral(sqrt(z)/sqrt(1-z**2), (z, 0.3, 0.4)) In [29]: i.do

[sympy] symbolic Boolean algebra

2012-07-07 Thread Chris Drake
Hey all, I have a Python module that does symbolic Boolean algebra at: https://github.com/cjdrake/pyeda It's just a hobby project for me to hack on EDA algorithms, and so far I have only gotten to expression representations. It might be interesting to sympy crowd b/c I chose not to automaticall

Re: [sympy] can not do integral of sqrt(sin(x))

2012-07-07 Thread Joachim Durchholz
Am 07.07.2012 01:18, schrieb Aaron Meurer: According to http://en.wikipedia.org/wiki/Elliptic_integral, every elliptic integral can be reduced to an expression containing only the three Legendre canonical forms. So I wonder if that is algorithmic. The article says you need to find the "appropr