SAMPAD SAHA | 30 Jun 20:24 2016
Picon
Gravatar

Sphinx Documentation

How to add sphinx documentation in Sympy ?

Regards
Sampad Kumar Saha
Mathematics and Computing
I.I.T. Kharagpur



--
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 https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CANzav4FU9ShSOSEB7hifXOJxE4RC2M1%2BMTyAC5StqxAkY6UCgA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Андрей Ширшов | 30 Jun 12:28 2016
Picon

Mathjax error in sympy 1.0

Hello!

In Jupyter Notebook:

>> import sympy as sp
>> sp.init_session(quiet=True)
IPython console for SymPy 1.0 (Python 3.5.1-64-bit) (ground types: python)

>> n = sp.symbols("n")
>> k = 100
>> sp.sequence(x/(k-n), (n, 1, k))

Unstead of mathjax formula I get rectange with the following text:

\left\[\frac{x}{99}, \frac{x}{98}, \frac{x}{97}, \frac{x}{96}, \ldots\right\]

If change \left\[ -> left [ and \right\] -> \right ]

then output works fine. Please fix it.

Best regards, Andrey.


--
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 https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/ada7385d-7fc1-410b-9002-af973a073956%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Poul Riis | 28 Jun 22:44 2016
Picon

Parametric vector function

The example below works but I would like to do something like
fvec=vector([tt*sin(tt),tt*cos(tt),sqrt(tt)])
in stead of
fvecx=tt*sin(tt)
fvecy=tt*cos(tt)
fvecz=sqrt(tt)
Is that possible? If yes, how?


Poul Riis




from math import *
from sympy import *


tt=Symbol('tt')
fvecx=tt*sin(tt)
fvecy=tt*cos(tt)
fvecz=sqrt(tt)
fvecxlambdified = lambdify(tt, fvecx)
fvecylambdified = lambdify(tt, fvecy)
fveczlambdified = lambdify(tt, fvecz)
fvecxdiff=fvecx.diff(tt)
fvecxdifflambdified=lambdify(tt,fvecxdiff)
fvecydiff=fvecy.diff(tt)
fvecydifflambdified=lambdify(tt,fvecydiff)
fveczdiff=fvecz.diff(tt)
fveczdifflambdified=lambdify(tt,fveczdiff)


print("fx(1)=",fvecxlambdified(1))
print("fy(1)=",fvecylambdified(1))
print("fz(1)=",fveczlambdified(1))


print("fx'(1)=",fvecxdifflambdified(1))
print("fy'(1)=",fvecydifflambdified(1))
print("fz'(1)=",fveczdifflambdified(1))

--
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 https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/9050bf01-19e2-423a-8467-f2175e21275f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dan Lewis | 28 Jun 08:13 2016
Picon

dsolve produces an incorrect result?

Hi folks,

Looks like sympy/dsolve produces an incorrect solution to an ODE:

from sympy import *mass, g, b, t = symbols('mass g b t')v, x = symbols('v x', cls=Function)paraChute = mass*v(t).diff(t)-mass*g+b*(v(t))**2solution = dsolve(paraChute,v(t),hint='lie_group')solution
Out[1]:
Eq(v(t), sqrt(g)*sqrt(mass)/(sqrt(b)*tanh(sqrt(b)*sqrt(g)*(C1*mass + t)/sqrt(mass))))

Sorry in advance if I'm doing something silly - the solution shouldn't be 1/tanh.  Should be tanh.

--
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 https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/92f8fe37-45df-4cc0-9ebc-7330f0bb20d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Adam S | 28 Jun 16:35 2016
Picon

subs function giving me error message

Hi,
I am getting confused on Python 3 error message using subs:

from sympy import *
x, y = symbols('x y')
fun = cos(x) + 1
fun.subs(x,y)

--> cos(y) + 1

which is okay. It does at it should.

from sympy import *
x, y = symbols('x y')
fun2=1
fun2.subs(x,y)

--> Attribute error: 'int' object has not attribute 'subs'

What is the failure here?  How to fix this?  I used sympy online and it works, but on desktop it does not.  Why?

I used recently anaconda to download python 3 and other libraries etc.

--
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 https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/eec9cfdd-1b15-4b3d-8541-a7a2ea157b6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Amit Saha | 28 Jun 02:14 2016
Picon
Gravatar

Webcast: Doing Math with Python

Hi all,

I am very excited to share that I am doing a webcast this coming week
with O'Reilly titled "Doing Math with Python"
(http://www.oreilly.com/pub/e/3712). For those who may not be familiar
with my book, SymPy forms a core part in three chapters, so the
webcast may be interesting as well.

You can register for it on the event page. Here are the date and time
of the webcast:

Wed, June 29th at 7 PM, San Francisco
Wed, June 29th at 10pm, New York
Thu, Jun 30th at 3am - London
Thu, Jun 30th at 7:30am - Mumbai
Thu, Jun 30th at 10am - Beijing
Thu, Jun 30th at 11am - Tokyo
Thu, Jun 30th at 12pm - Sydney

I have created a GitHub repository
(https://github.com/doingmathwithpython/oreilly-webcast-2016) which
will have the rough transcript, final slides and the code examples as
Jupyter Notebooks.

Hope you can join me there.

Best Wishes,
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 https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CANODV3nCFnxmB3f1vfUEpC6bdYgOBdy6U%3DDRP_DhJTFVzGvVDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Sartaj Singh | 27 Jun 20:26 2016
Picon

Docker Image for Sympy

Hi,

I was playing around with docker. It occurred to me that it will be nice to have an official sympy docker image. This could be useful in the tutorials as people are not expected to install anything but just pull the image. I tried to google and find if there is a sympy image already but I couldn't find much. Do we want something like this? Let me know if it's a good idea. I can go ahead and make an image for sympy.

--
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 https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/e99a42cd-5853-4135-8f17-fc3ab99a9e54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Francesco Bonazzi | 24 Jun 13:52 2016
Picon

Multiple dispatch in SymPy

Hi,

are there any actual intentions of ever introducing multiple dispatch support to SymPy? Has the idea been completely abandoned?

I would like to have it as a dependency, some SymPy code could be made much more readable with it.

For those who are unfamiliar with the topic, some time ago we had this library developed for the purpose:

http://multiple-dispatch.readthedocs.io/en/latest/

https://github.com/mrocklin/multipledispatch

--
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 https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/ec315a80-a33e-4dcb-a4f8-5f70af359cca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Kshitij Saraogi | 23 Jun 12:27 2016
Picon

Automatic simplification leads to wrong results in domain determination

While developing the methods for determining the domain and range of the given function, 
I stumbled across the following particular case:

In []: x = symbols('x')

In []: x/x
Out[]: 1

In []: (x-1)**2/(x-1)
Out[]: x - 1

In []: (x**2 - 2*x + 1)/(x-1)
Out[]: (x**2 - 2*x + 1)/(x - 1)

Having read this wiki, I know that automatic simplification is a known issue.

In the case of determining domains, this leads to incorrect results.
For example, 

In []: continuous_domain(x/x, x,S.Reals)
Out[]: (-oo, 0) U (0, oo)

However, with the automatic simplification, this is not quite the case.
The function `x/x` gets automatically simplified to `1` which does not take into account the singularity at x = 0.

The same situation arises with the case of `(x - 1)^2/ (x - 1)` which simplifies to `x - 1`.

I would like some inputs on handling these issues.

--
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 https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/65fc3b03-cdb9-450b-b2f9-2e4cd402d846%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Aaron Meurer | 21 Jun 04:15 2016
Picon
Gravatar

GSoC midterm evaluations are open

GSoC midterm evaluations are now open. All students and mentors,
please go to https://summerofcode.withgoogle.com/ and fill it out. For
students with multiple mentors, only the primary mentor needs to fill
out the evaluation.

The deadline is June 27th, but please do me a big favor and fill it
out *NOW*, not on the 27th. If for some reason you can't fill it out
by that deadline let me and Ondrej know about it now.

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 https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2BbQk6aE3QxVZx-W5kXQLWYUxaiKgbufDtZVEwhN-uBug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

ruggero cyrille | 20 Jun 21:52 2016
Picon

Interested in contributing to Sympy, especially in the area of code generation

Hi, I'm a third year undergraduate in computer science in France and I'm looking for a summer project. Since I already used Sympy and appreciated it, I'm interested in contributing to it.

Since I took several courses on compilers, I wanted to get my hand into code generation. I'm interested in writing an LLVM IR backend similar to the C backend. But after reading this thread and this one, I realized that there was already a developper working actively on it, so I wanted to know if my efforts would be useful to the project.

I also wanted to fix some easy to fix issues. But the ones I read in the tracker were already fixed.

I thank you in advance for your advices.

--
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 https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/4c0f948d-5103-48d0-9d68-85d6a7b9f036%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gmane