Amit Saha | 30 Oct 11:38 2014
Picon

Slow Point() object creation

Hi all,

Just noticed that creating even 1000 point objects is quite slow:

from sympy import Point
 <at> profile
def create_points():
    for i in range(1000):
        Point(i, i)
        i**2

create_points()

A random profiling run using https://github.com/rkern/line_profiler is here at:
https://gist.githubusercontent.com/amitsaha/bdde2b959658dda81536/raw/acf98e57aa5c3afbef497768fb777f5de2a5048f/gistfile1.txt

On an average this code takes 0.3 s. is there any way that this can be improved?

Thanks,
Amit.

--

-- 
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+unsubscribe@...
To post to this group, send email to sympy@...
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/CANODV3ksscGCmrsLE8c2dOf70Qu3X7WhuzCk1rZBZjdGD8aYJw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

(Continue reading)

Christophe Bal | 29 Oct 11:40 2014
Picon

Formal methods are not human one

Hello.

I'm looking for formal outputs that are not calculated as a human can do (this is for a free french "book"). Do you know such kind of examples ?

Christophe BAL

PS : this questions has been posted on both Sage and Sympy lists.

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to sympy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
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/CAAb4jGkNc8QcUAxhYnhoRN017tEXfDZrtABVr4w_OTQEhfXSqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Christophe Bal | 29 Oct 11:38 2014
Picon

Looking for wrong results

Hello.

I'm writing a french book about SageMathCloud and I'm looking for known wrong results given by Sage or Sympy due to floats calculations, or due to the formal method used. Do you know such things ? My idea is to show to new user that a CAS or a numerical tool is not Math God.

I've already posted this question on the Sage list without a lot of success.

Christophe BAL

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to sympy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
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/CAAb4jGkfLT8oK_-v9KGbgw6q18oPOOauaG%3DAV7dNRNKL0hOQ1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Aaron Meurer | 28 Oct 18:23 2014
Picon

Prepping for SymPy 0.7.6

We are just about ready to create a release candidate for SymPy 0.7.6.
The only remaining blocking PR to my knowledge is
https://github.com/sympy/sympy/pull/8293. I hope to get that merged
and a release branch started (and likely a release candidate) by the
end of the week.

Aaron Meurer

--

-- 
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+unsubscribe@...
To post to this group, send email to sympy@...
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%3D6L_xYXmKfTZkijFo3v6DxfUxwvFT_ruVeYYtj_RQNJLDQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Joachim Durchholz | 28 Oct 14:38 2014

A goof-up in symbolic math software

http://www.ams.org/notices/201410/rnoti-p1249.pdf

It's hammering Mathematica, but of course bugs like that can happen with 
any symbolic math software.
Still, SymPy might be able to milk arguments from it. Such as: being 
open source, it's easier to find and fix the source of miscalculations 
like the one reported in that paper.

(I find it also remarkable that Wolfram let a known problem lie dormant 
for so long. That paper is going to hurt their name, badly.)

--

-- 
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+unsubscribe@...
To post to this group, send email to sympy@...
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/544F9C5F.7080800%40durchholz.org.
For more options, visit https://groups.google.com/d/optout.

Dario Beraldi | 28 Oct 12:40 2014
Picon

Constant in trig solution?

Hello,

This might be a super dumb question...

If you do

solve(sin(x))

You get

Out[1]: [0, π]

But shouldn't the "complete" answer be [0, pi * k] with k any integer?

This is on SymPy 0.7.5

Thanks for clarification!

Dario

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to sympy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
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/0970e35a-57d7-4a7c-9b8e-8837c74e748d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Priyanka Jha | 27 Oct 12:37 2014
Picon

How to Contribute to SymPy: Naive Pythoner

Hello, Everyone!
I am new to SymPy, but the concept of Sympy looks good to me, I have a basic understanding of python. How should I look forward to contribute to it.
Please somebody guide me, where to start.
What are the basic tasks I can do as a new python Programmer?

Thanks,
Priyanka Jha

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to sympy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
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/074b5382-7aed-4236-bc19-49adb69bb2f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ankit Vadehrā | 25 Oct 19:37 2014
Picon

Sparse Matrix suport in SymPy

I'm working on PageRank calculation for a Wikipedia dump.
and i require Sparse Matrix construction as well as operation. Is that possible in Sympy?
Additional details related to the project are present here:



-Thanks

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to sympy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
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/6e5b782f-4572-45c1-8f16-556bc6575a2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Björn Dahlgren | 25 Oct 15:51 2014
Picon

Re: Refine away Piecewise using assumptions.


> I looked for Q.is_false without luck, I also looked for an Inequality class
> but found nothing.

Wouldn't that just be ~Q.is_true? It seems to work for me. The !=
class is called Unequality (to distinguish it from > "inequalities").


Yes, you are absolutely right - I always thought ~ was short for "not" (which didn't work),
now I know about __invert__, thanks!

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to sympy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
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/9f210043-3ef9-4c34-bd5a-675106a369fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Adhitya Kamakshidasan | 24 Oct 17:07 2014
Picon

Starting to work on issue

I would like to work upon this issue which has been reported.

https://github.com/sympy/sympy/issues/7570

Would someone please tell me, how to get started with this? 

Where should I start to look for this issue? 

Highly eager to get this going. Sorry, to be asking so trivial questions.

Regards,

Adhitya

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to sympy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
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/72b4309a-8feb-4ed0-8700-3f2966878873%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Björn Dahlgren | 24 Oct 16:45 2014
Picon

Refine away Piecewise using assumptions.

Consider the following short example:

http://nbviewer.ipython.org/urls/gist.githubusercontent.com/bjodah/720617780e83d7c35797/raw/c297ecf76a8e26a711b7c7868839f2dfb221bc10/gistfile1.txt

refine with Q.is_true(...) works ok for refining away Piecewise from a solution (although it's a bit picky, e.g. Eq(k**3,0) was needed instead of Eq(k, 0) for example)
It fails to refine to the default though (see last row).

I looked for Q.is_false without luck, I also looked for an Inequality class but found nothing.
I know work on new assumptions is still in the pipeline, my example is with latest sympy in conda (0.7.5), is there away in 0.7.5 or in master to do what I am looking for?

Btw. I have a hackish solution to get out only the defaults of Piecewise here is someone is interested.

Best regards,
/Björn


--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to sympy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
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/2fd9a5db-8b47-4779-9be8-c50c02a431dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gmane