[sympy] Solving for undetermined coefficients

2014-06-08 Thread Avichal Dayal
How do I solve for undetermined coefficients in equations like:- >>> eq =a[0]*cos(x) + (a[1] - 1)*sin(x) >>> solve(eq, a[0], a[1]) [{a₀: (-a₁ + 1)⋅tan(x)}] I would like to get a[0] = 0 and a[1] = 1 as solutions. Solve works well when terms in 'x' are algebraic expressions however not for transce

Re: [sympy] Re: Help with Vector

2014-06-08 Thread Matthew Rocklin
I think that it is reasonable for the first couple lines of any sympy function foo to be def foo(expr, ...): if hasattr(expr, '_eval_foo'): return expr._eval_foo() This would work well for trigsimp On Sat, Jun 7, 2014 at 11:59 PM, Sachin Joglekar wrote: > I see your point. But in

[sympy] Re: How can I call sympy by javascript with django / jquery or ajax

2014-06-08 Thread Björn Dahlgren
On Saturday, 7 June 2014 02:16:19 UTC+2, Peter wrote: > > > Hi Björn, > In the meantime, I tried to install SympyGamma and the Google app engine, > as it is described in the manual. Unfortunately I don't know now how I can > check if everything works fine, because some steps were discribed for

Re: [sympy] Re: Removing the UniversalSet

2014-06-08 Thread Richard Fateman
Here are some comments on sets in CAS http://www.cs.berkeley.edu/~fateman/papers/sets.pdf I think that if you want to deal with subsets of the real numbers you should look at the literature from interval arithmetic to see how you can get your underwear in knots, even with such a simple domain wh

[sympy] Re: Erroneous series expansion of tan(x)

2014-06-08 Thread Avichal Dayal
After shifting tan(x) by pi/2, it finds the series of tan(x - pi/2) at x0 = 0 And that is what we are getting:- http://www.wolframalpha.com/input/?i=tan%28x-pi%2F2%29+series+at+x%3D0 -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from

[sympy] Help Please

2014-06-08 Thread Shreyas Ragit
Hello, I am new to SymPy and want to contribute but don't know where to start.Can somebody help me to get started. -- 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 symp

[sympy] Re: Help Please

2014-06-08 Thread Björn Dahlgren
Hi Shreyas, I'm copy-pasting Aaron's reply from the other week: Take a look at https://github.com/sympy/sympy/issues?labels=Easy+to+Fix&milestone=&page=1&state=open and https://github.com/sympy/sympy/wiki/development-workflow and let us know if you have any questions. If you know python an

[sympy] Behavior of Float objects with .format() method

2014-06-08 Thread Amit Saha
I came across this: >>> from sympy import Float >>> Float(1.25343) 1.253430 >>> '{0:.2f}'.format(Float(1.25343)) Traceback (most recent call last): File "", line 1, in ValueError: Unknown format code 'f' for object of type 'str' Is this known/expected? Shouldn't it work? This works:

[sympy] New Version of galgebra

2014-06-08 Thread Alan Bromborsky
I have updated my fork of sympy at github (brombo/sympy) and something strange is happening in my imports. The following is the result of a python terminal session (using my updated sympy) >>> from sympy.galgebra.ga import Ga Traceback (most recent call last): File "", line 1, in ImportErr

Re: [sympy] New Version of galgebra

2014-06-08 Thread Joachim Durchholz
Am 09.06.2014 04:39, schrieb Alan Bromborsky: Please help? Can someone see the forest for the trees? I have no idea what's actually happening. The whole issue sounds like letter case differences in a file name or something similarly "it's doing almost what I'm thinking". -- You received thi