Re: [sympy] Re: Doing a release

2015-09-01 Thread Aaron Meurer
OK, I have created a release branch for 0.7.6.1, which is just 0.7.6 plus
the IPython fixes https://github.com/sympy/sympy/pull/9883. Are there any
other fixes needed for IPython? I tested the notebook in the release branch
and the MathJax printing works.

Otherwise, I will probably push this out later tonight or tomorrow.

Aaron Meurer

On Tue, Sep 1, 2015 at 10:39 AM, Aaron Meurer  wrote:

> I think there are already some breaking changes in master, no? Maybe we
> should just do a bugfix 0.7.7 release to fix the Jupyter stuff.
>
> Aaron Meurer
>
> On Tue, Sep 1, 2015 at 2:45 AM, Francesco Bonazzi  > wrote:
>
>>
>>
>> On Tuesday, 1 September 2015 06:30:20 UTC+2, AMiT Kumar wrote:
>>>
>>>
>>> Also we have yet not settled with a single assumption system.
>>>
>>>
>> Maybe the two assumption systems should be merged before the release of
>> version 1.0. It would be a bit weird to release version 1.0, and later
>> deprecate the old-style assumptions system.
>>
>> --
>> 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 this group, send email to sympy@googlegroups.com.
>> Visit this group at http://groups.google.com/group/sympy.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sympy/471ddadb-0eb4-4139-98ec-a7b193b70a15%40googlegroups.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6J7YVOSkz%2Bdzs%3DnQfQppbn6VHUBOyqJuwgfYknZ9Rb-sw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[sympy] Problem with dsolve

2015-09-01 Thread amsympy

To solve the Euler-Lagrange equation I wrote the following problem :

-

# -*- coding: utf-8 -*-

from sympy import Symbol, Function, diff
from sympy.calculus.euler import euler_equations
from sympy.solvers.ode import dsolve
from sympy import init_printing

init_printing()

x = Function('x')

t = Symbol('t')

# Intégrande
L = 1 + diff(x(t),t)**2


# Equation d'Euler-Lagrange
eq = euler_equations(L, x(t), t)


# General solution

dsolve(eq[0],x(t))


# Particular solution

dsolve(eq[0], x(t), ics = {x(0): 1, x(1): 2})

-

but sympy do not provides me the particular solution, that is, the result 
with or without the initial conditions is the same. It seems that sympy 
does not take into account the ics provided


-- 
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 this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/f51c1b4e-b175-4c14-a09e-06aa8e63fd64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[sympy] dsolve ignore the initial conditions

2015-09-01 Thread amsympy

I wrote the following problem to solve the Euler-Lagrange equation using 
dsolve. But sympy dot not provide me the particular solution of the 
Euler-equation, that is, with or without the initial conditions (ics), 
sympy give me the same result (the general solution). It seems that sympy 
does not take into account the ics provided.

The program:
=

# -*- coding: utf-8 -*-

from sympy import Symbol, Function, diff
from sympy.calculus.euler import euler_equations
from sympy.solvers.ode import dsolve
from sympy import init_printing

init_printing()

x = Function('x')

t = Symbol('t')

# Integrand
L = 1 + diff(x(t),t)**2


# Euler-Lagrange equation
eq = euler_equations(L, x(t), t)


# Genral solution (without ics)

dsolve(eq[0],x(t))


# Particular solution (the initial conditions (ics) are specified)

s = dsolve(eq[0], x(t), ics = {x(0): 1, x(1): 2})

-- 
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 this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/b7fae6cc-8b68-43cc-b4ac-ec63fc361c8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sympy] Re: Doing a release

2015-09-01 Thread Aaron Meurer
The current plan is not to deprecate the old assumptions syntax, but to
allow both. In fact, in master, ask(Q.real(x)) will call x.is_real (it also
calls some other stuff too, so it should be at least as smart), so you can
start migrating to the new assumptions syntax. The reverse doesn't work yet
(even if you put Q.real(x) in the global assumptions).

It would be nice to finish completing the breaking changes that are
planned. I believe the only one remaining to be fixed after Sudhanshu's
GSoC project relates to oo.is_real. Is there anything else Sudhanshu?
Perhaps we should try to work out some of the performance issues.

How long will it be until the solvers are in a 1.0 ready state, especially
now that GSoC is over?

Aaron Meurer

On Tue, Sep 1, 2015 at 2:45 AM, Francesco Bonazzi 
wrote:

>
>
> On Tuesday, 1 September 2015 06:30:20 UTC+2, AMiT Kumar wrote:
>>
>>
>> Also we have yet not settled with a single assumption system.
>>
>>
> Maybe the two assumption systems should be merged before the release of
> version 1.0. It would be a bit weird to release version 1.0, and later
> deprecate the old-style assumptions system.
>
> --
> 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 this group, send email to sympy@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/471ddadb-0eb4-4139-98ec-a7b193b70a15%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2BJRtP1vqApCs0HZrYN_3e03C1Md0ckFXK%3DkEduz_hzKA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sympy] Convert between numeral systems

2015-09-01 Thread Robert Pollak


On Friday, July 17, 2015 at 11:20:15 PM UTC+2, Chris Smith wrote:
>
> Is this what you are looking for?
>
> >>> from sympy.ntheory.factor_ import digits
> >>> digits(1234,20)
> [20, 3, 1, 14]
>

Thank you! So there really was something hidden in SymPy :) Unfortunately, 
as this is part of ntheory, it also cannot convert floats.

-- 
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 this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/5ad0ebee-ceb3-46d0-88f4-5c81ba95c76e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sympy] Re: Doing a release

2015-09-01 Thread Aaron Meurer
I think there are already some breaking changes in master, no? Maybe we
should just do a bugfix 0.7.7 release to fix the Jupyter stuff.

Aaron Meurer

On Tue, Sep 1, 2015 at 2:45 AM, Francesco Bonazzi 
wrote:

>
>
> On Tuesday, 1 September 2015 06:30:20 UTC+2, AMiT Kumar wrote:
>>
>>
>> Also we have yet not settled with a single assumption system.
>>
>>
> Maybe the two assumption systems should be merged before the release of
> version 1.0. It would be a bit weird to release version 1.0, and later
> deprecate the old-style assumptions system.
>
> --
> 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 this group, send email to sympy@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/471ddadb-0eb4-4139-98ec-a7b193b70a15%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6LScuX4gD%2BLGfpsP82C1Fo58Y-MjsGO%3DhENpJp34i9AsA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.