Re: [sympy] Want to contribute to Sympy

2015-01-10 Thread Akash Agrawall
Hi Saurabh, Thank you for sharing the details. I have completed reading the documentation. Inspired from this pull request: https://github.com/asmeurer/sympy/pull/57 , I want to start working on this issue. Can I continue on the same? Thank you, Akash On Thu, Jan 8, 2015 at 4:08 PM, Saurabh Jha

[sympy] Re: Changing Inequality solver output API to set Interval (as_set())

2015-01-10 Thread AMiT Kumar
Yes, we can convert set Interval to Boolean object,using as_relational(). In [4]: Interval(0,1).as_relational(x) Out[4]: 0 ≤ x ∧ x ≤ 1 Thanks Sergey, for clearing the doubt. Cheers! Amit Kumar. -- You received this message because you are subscribed to the Google Groups "sympy" group. To

[sympy] bug in lambdify functionality with trigonometric functions?

2015-01-10 Thread Quirine
Dear Sympy community, The following line of code gives: >>> from sympy import * >>> x,y=symbols('x y') >>> f=lambdify(x,y*cos(x)) >>> f(1) 0.54030230586814*y works fine, but interchanging x and y: >>> f=lambdify(x,x*cos(y)) >>> f(1) Traceback (most recent call last): File "", line

[sympy] Re: bug in lambdify functionality with trigonometric functions?

2015-01-10 Thread James Crist
`lambdify` is intended for numeric evaluation (but can be made to evaluate symbolically). By default, the functions `sin`, `cos`, etc... are pulled from `math` or `numpy`, which expect floats (and if not given a float, they attempt to convert to float). What's happening here, is you're passing

[sympy] Are indirect imports problematic?

2015-01-10 Thread Joachim Durchholz
E.g. some modules do from sympy import log others do from sympy.functions.elementary.exponential import exp Pros of doing just direct imports - 01) Code review can instantly see where some symbol originates from. 02) This should eliminate some circular import