[sympy] Re: Factor options

2014-12-08 Thread Chris Smith
Are you thinking of something like this? >>> def efactor(e, I=None): ... r = roots(e) ... rad = set().union(*[i.atoms(Pow) for i in r]) ... if I: ... rad.add(I) ... return factor(e, extension=rad) ... >>> efactor(x**4+1) (x**2 - sqrt(2)*x + 1)*(x**2 + sqrt(2)*x + 1) >>> print filldede

Re: [sympy] Re: GitHub multiple CI services

2014-12-08 Thread Aaron Meurer
OTOH, maybe it actually has stopped being free. It looks like it hasn't run in a long time https://ci.appveyor.com/project/asmeurer/conda-973/history. Aaron Meurer On Mon, Dec 8, 2014 at 4:48 PM, Ondřej Čertík wrote: > On Mon, Dec 8, 2014 at 3:41 PM, Aaron Meurer wrote: >> AppVeyor is free (we

Re: [sympy] Re: GitHub multiple CI services

2014-12-08 Thread Ondřej Čertík
On Mon, Dec 8, 2014 at 3:41 PM, Aaron Meurer wrote: > AppVeyor is free (we use it with conda). However its limitations are > very restrictive (I think you only get 30 min for all builds > combined), and it is very slow (it often takes 24 hours for a built to > even start). Nice, here is the AppVe

Re: [sympy] Re: GitHub multiple CI services

2014-12-08 Thread Jason Moore
Ok, I see. Nevermind then. Jason moorepants.info +01 530-601-9791 On Mon, Dec 8, 2014 at 5:41 PM, Aaron Meurer wrote: > AppVeyor is free (we use it with conda). However its limitations are > very restrictive (I think you only get 30 min for all builds > combined), and it is very slow (it often

Re: [sympy] Re: GitHub multiple CI services

2014-12-08 Thread Aaron Meurer
AppVeyor is free (we use it with conda). However its limitations are very restrictive (I think you only get 30 min for all builds combined), and it is very slow (it often takes 24 hours for a built to even start). Aaron Meurer On Mon, Dec 8, 2014 at 3:56 PM, Jason Moore wrote: > Actually their "

Re: [sympy] testing test_sage.py

2014-12-08 Thread Ondřej Čertík
Hi Ralf, Thanks for looking into it. We test against Sage regularly on Travis. Here is the part that installs Sage: https://github.com/sympy/sympy/blob/4a732fd3234043baef640ab65ec9900bca802780/.travis.yml#L114 and here is the actual test: https://github.com/sympy/sympy/blob/4a732fd3234043baef64

Re: [sympy] GitHub multiple CI services

2014-12-08 Thread Ondřej Čertík
On Mon, Dec 8, 2014 at 1:39 PM, Aaron Meurer wrote: > https://github.com/blog/1935-see-results-from-all-pull-request-status-checks > > Looks like GitHub now fully supports multiple CI services for pull > requests. I think this was an issue at some point for CSymPy. It also > means we can take a se

Re: [sympy] Re: GitHub multiple CI services

2014-12-08 Thread Jason Moore
Actually their "free" is very confusing: http://www.appveyor.com/pricing Does anyone know if this is actually free for open source? Jason moorepants.info +01 530-601-9791 On Mon, Dec 8, 2014 at 4:54 PM, Jason Moore wrote: > Could be worth checking out http://www.appveyor.com/ for windows buil

Re: [sympy] Re: GitHub multiple CI services

2014-12-08 Thread Jason Moore
Could be worth checking out http://www.appveyor.com/ for windows builds. It seems like it is free for open source projects. Jason moorepants.info +01 530-601-9791 On Mon, Dec 8, 2014 at 3:52 PM, Sergey Kirpichev wrote: > On Monday, December 8, 2014 11:41:00 PM UTC+3, Aaron Meurer wrote: >> >>

[sympy] Re: GitHub multiple CI services

2014-12-08 Thread Sergey Kirpichev
On Monday, December 8, 2014 11:41:00 PM UTC+3, Aaron Meurer wrote: > > It also > means we can take a second look at > https://github.com/sympy/sympy/pull/1960 >

[sympy] Re: Factor options

2014-12-08 Thread Sergey Kirpichev
In [6]: factor(x**4 + 1, extension=[I, sqrt(2)]) Out[6]: ⎛ ___ ___ ⎞ ⎛ ___ ___ ⎞ ⎛ ___ ___ ⎞ ⎛ ___ ⎜╲╱ 2╲╱ 2 ⋅ⅈ⎟ ⎜╲╱ 2╲╱ 2 ⋅ⅈ⎟ ⎜╲╱ 2╲╱ 2 ⋅ⅈ⎟ ⎜╲╱ 2 ⎜x - ─ - ───⎟⋅⎜x - ─ + ───⎟⋅⎜x + ─ - ───⎟⋅⎜x + ─ + ⎝

[sympy] GitHub multiple CI services

2014-12-08 Thread Aaron Meurer
https://github.com/blog/1935-see-results-from-all-pull-request-status-checks Looks like GitHub now fully supports multiple CI services for pull requests. I think this was an issue at some point for CSymPy. It also means we can take a second look at https://github.com/sympy/sympy/pull/1960. Aaron

[sympy] Re: Factor options

2014-12-08 Thread Paul Royik
This is good method, but it doesn't work for x^4+1 On Monday, December 8, 2014 4:51:26 PM UTC+2, Chris Smith wrote: > > If you don't know what extension to use you can just rebuild the > expression from the roots: > > >>> efactor = lambda e: Mul(*[(x - r)**m for r,m in > roots(e).items()]).subs

[sympy] testing test_sage.py

2014-12-08 Thread Ralf Stephan
Hello, the most recent Sage has sympy-0.7.5. When testing the sympy file test_sage.py using ./sage -t local/lib/python2.7/site-packages/sympy/external/tests/test_sage. py I get six fails, the same with Sage-6.2+sympy-0.7.4. Now I'm asking myself, how does the sympy test robot test the git master

[sympy] Re: Factor options

2014-12-08 Thread Paul Royik
Thank you very much. How do I discard complex roots? On Monday, December 8, 2014 4:51:26 PM UTC+2, Chris Smith wrote: > > If you don't know what extension to use you can just rebuild the > expression from the roots: > > >>> efactor = lambda e: Mul(*[(x - r)**m for r,m in > roots(e).items()]).su

[sympy] Re: Factor options

2014-12-08 Thread Chris Smith
If you don't know what extension to use you can just rebuild the expression from the roots: >>> efactor = lambda e: Mul(*[(x - r)**m for r,m in roots(e).items()]).subs( ... x,e.free_symbols.pop()) >>> efactor(y**6 - 20*y**4 + 77*y**2 + 242) (y - sqrt(11))**2*(y + sqrt(11))**2*(y - sqrt(2)*I)*(y +

Re: [sympy] New to sympy: Implement Spherical Coordinates in Vector module

2014-12-08 Thread Francesco Bonazzi
Interesting function, can be really a useful workaround. Anyways, I think that the most polite way is to use assumptions, such as: >>> refine(sqrt(abs(sin(t)**2)), Q.positive(sin(t))) sin(t) Anyways, there's a bug while simplifying expressions made up of diffgeom's coord functions, example: In

Re: [sympy] Factor options

2014-12-08 Thread Mateusz Paprocki
Hi, On 8 December 2014 at 01:05, Paul Royik wrote: > How should I use factor to factor expression over irrational numbers? > > For example, > x^2-4 produces (x-2)(x+2) > x^2-2 produces (x-sqrt(2))(x+sqrt(2)) > x^4+1 produces (x^2-sqrt(2) x+1) (x^2+sqrt(2) x+1) > x^2+1 produces x^2+1 (only complex