When I was using a development repository and wanted to test with PyPy, I
wrote a little bash function that would set PYTHONPATH to include whatever
repository I was interested in, and then call PyPy. That way I didn't need
to change my environment, and could easily switch from tree to tree.
it is a bug and we should fix it.
>
> Aaron Meurer
>
>
>
> On Thu, Aug 3, 2017 at 6:23 PM, Rathmann <rathm...@gmail.com
> > wrote:
>
>> Is anyone else seeing
>>
>>
>> . . .
>>
>> PYTHONPATH=..: sphinx-build -b html -d _build/doctr
Is anyone else seeing
. . .
PYTHONPATH=..: sphinx-build -b html -d _build/doctrees -W src _build/html
Running Sphinx v1.5.3
loading pickled environment... done
Warning, treated as error:
WARNING: latex_use_modindex is deprecated. Use latex_domain_indices instead.
Makefile:49: recipe for
So far as I know, Sympy uses the underlying Python types for integer
arithmetic.(No separate Karatsuba or Strassen multiplication
algorithms, at least not for integers.)
On Tuesday, January 17, 2017 at 12:59:28 PM UTC-8, Antonio Donato Filho
wrote:
>
> Equivalent to gmpy2 MPZ in sympy.
>
To me, the relevant concept seems to be software coupling, as railed
against by structured programming gurus in the 1970s and 80s.
Having imports which know exactly where a symbol is defined, increase the
knowledge that one part of our code has of other parts.
Coupling is often unavoidable,
Well, couldn't you use a limit argument?
(-1)**(2*n) is 1 for any finite n, hence the limit of this expression as n
increases without bound is also 1.
*If* your idea of unbounded integer has something to do with limits, then
this argument might apply.
On Wednesday, September 17, 2014
Cool, thanks! I'll pull down your branch and play with it.
For something like this, I think the main issue is defing a good interface,
and then how to document it.
One caution is that SymPy *does* already define operations on Equality,
e.g., Eq(a,c)+c gives c+(a==b).
Where the latter makes
I have been playing with SymPy and IPython Notebook and thought it
would be useful to be able to explicitly perform some of the
operations that are in the toolset taught in a high-school algebra
class.
This would be things like
- Adding the same thing to both sides of an equation.
-
in
sympy.physics.mechanics to build up a rigid body system and find the
equations of motion, the use the former.
Jason
moorepants.info
+01 530-601-9791
On Wed, Aug 13, 2014 at 10:13 PM, Rathmann rathm...@gmail.com
javascript: wrote:
Hello,
I have been watching the lectures of Susskind's Theoretical
Oops - except the m \ddot{x} formats properly in the notebook.
On Thursday, August 14, 2014 11:09:08 AM UTC-7, Rathmann wrote:
Thanks a lot! It turned out that init_vprinting() gives the behavior I
wanted.
In case others want to go down this path, I am appending a minimal
notebook entry
Hello,
I have been watching the lectures of Susskind's Theoretical Minimum
course, and using Sympy with IPython notebook to take notes, and work
through some of the examples.
Sympy is serious overkill for this purpose, but overall it has been working
well.
A couple of questions:
- What
You can also run setupegg.py. See
http://docs.sympy.org/latest/install.html#git
This had worked for me. It useful if you are developing and using Sympy at
the same time.
On Wednesday, July 9, 2014 11:16:19 PM UTC-7, Nabeel Valapra wrote:
Yea Thanks
--
You received this message because
I think in general Smpy's goal is to extend rather than duplicate what is
already available in the Python Standard Library. (There are a few
exceptions in core.compatibility, but that is for internal use, and only
comes into play with older versions of Python.)
If you want to enumerate only
Interestingly, the problem that Richard Fateman uses to introduce his
critique of Press (and other systems) doesn't look to be a happy one for
Sympy.
from sympy.abc import x
from sympy import cos, solve
solve(cos(x)+cos(3*x)+cos(5*x), x)
At least in my (not quite up to date) tree, this gives a
Thanks -- this one makes sense. (It is shuffles the multiplications into a
balanced tree so that the top-level multiplication is the product of all
the odds (=n) times the product of the evens.)
Sympy itself uses prime swing.
On Friday, May 16, 2014 9:50:57 AM UTC-7, Richard Fateman wrote:
Right, balancing the multiplication tree can be a win, for the reasons you
give.
But, I don't think your code snippet is doing any of that. If I run a
version (attached) that prints out the multiplies it evaluates, (fact 100)
gives:
(2 . 1)
(3 . 2)
(4 . 6)
(5 . 24)
(6 . 120)
(7 . 720)
Well, I wouldn't have used such colorful language, but I share
Prof. Fateman's skepticism on the utility of lgamma for computing
factorials.
I tried the expression as given, (see attachment, if you want to try
yourself or point out errors) and it begins to diverge from the correct
value at n=17
Hi,
I recently did a merge on one of my branches, and started getting
ERROR:root:rsvg-convert: command not found
when I did a make html.
Fix was straightforward - just install librsvg2-bin. I just wanted to
check that this was intentional, and related to recent changes in Sympy
Thanks. Updated development workflow to point to README.rst.
On Friday, January 17, 2014 1:40:00 PM UTC-8, Sergey Kirpichev wrote:
Fix was straightforward - just install librsvg2-bin. I just wanted to
check that this was intentional, and related to recent changes in Sympy (as
opposed to
Hello Thilina,
If by object oriented, you mean that the user needs to classify their
equation and then construct an appropriate solver object, my initial
reaction is that this would be less easy to use than the current
interface.
By analogy, a user calls integrate and (usually) doesn't care
...@gmail.com javascript: wrote:
On Sat, Nov 30, 2013 at 03:37:48PM -0800, Rathmann wrote:
Well, independent of the architectural issues, this seems like a
(significant?) regression. The attached file fails (at least for
me) for
Python3 with a current git build, where
Well, independent of the architectural issues, this seems like a
(significant?) regression. The attached file fails (at least for me) for
Python3 with a current git build, where it presumably was OK when we used
2to3 on the Python3 version.
What is the best way to fix? Edit the iteritems
On Saturday, August 24, 2013 11:57:03 AM UTC-7, Matthew Brett wrote:
xrange seems like rather a specific case though. If you need a
iterator instead of a list, you have to use xrange in Python 2.
Cheers,
Matthew
core.compatibility is currently
if PY3:
. . .
xrange = range
For adoption rates, is there a way to get the download numbers from github
for the 0.73 release? The old
http://code.google.com/p/sympy/downloads/list page gives some numbers, but
these are a bit hard to interpret. I am assuming that Python 3 is still a
fairly small minority, but numbers
Maybe a -1 if this means changing xrange. We use it a lot, and it has the
advantage of being unambiguous. And, given a unified source base, I would
value clarity over esthetics.
On Wednesday, August 21, 2013 4:41:20 PM UTC-7, Aaron Meurer wrote:
Thanks. I think we should change the codebase
Sounds good. I have added a few lines to this effect to the development
workflow page.
On Saturday, August 17, 2013 9:56:28 AM UTC-7, Rathmann wrote:
Now that we are on a single code base, I have a few questions on how
best to write/test code going forward. In particular, do we have
Now that we are on a single code base, I have a few questions on how
best to write/test code going forward. In particular, do we have a
convention on how to handle name changes?
One approach might be to have Sympy's code base reflect one of Python
2/3s names/syntax, and adjust as best we can for
As one of those git newbies I much appreciate the efforts to keep the
development-workflow page updated.
On Friday, August 16, 2013 7:52:33 PM UTC-7, Aaron Meurer wrote:
I just pushed some changes to the development workflow page
(https://github.com/sympy/sympy/wiki/development-workflow) to
How do you want to define closed form?
If you allow Meijer G-functions, isn't pretty much anything integable?
There are lots of examples expression without elementary antiderivatives:
sin(x)/x , e**(-x**2), etc., but Sympy gives answers for these, of course.
On Monday, May 27, 2013 10:53:22
But Sympy returns a result for x**x as well. It is just not in terms that
most will find easy to understand:
integrate(x**x)
Piecewise((x*x**x*gamma(x + 1)/gamma(x + 2), Abs(x) 1), (x*x**x*gamma(x +
1)/gamma(x + 2) + gamma(x + 1)/gamma(x + 2) + gamma(-x - 1)/gamma(-x),
Abs(1/x) 1),
Oops, sorry. Apparently I haven't been updating my branch properly.
On Monday, May 27, 2013 10:53:22 AM UTC-7, Aaron Meurer wrote:
What is a good example of a (preferably simple) integral that SymPy
will not likely be able to ever do, because there really aren't any
closed forms of it,
A good example implementation for linear and quadratic equations is Dario
Alpern's calculator at http://www.alpertron.com.ar/QUAD.HTM
His calculator gives both an answer and a generally helpful explanation of
the algebraic manipulations it used to arrive at the answer.
He provides java source
I would greatly appreciate comments on
https://github.com/sympy/sympy/pull/1848
This provides efficient implementations for enumerating and counting
multiset partitions.
Rationale for including in Sympy:
This provides a faster implemenation of existing user-visible
functionality.
:
You might need sudo python setupegg.py develop if you are not already root.
On Sat, Dec 1, 2012 at 11:59 PM, Sean Vig sean@gmail.comjavascript:
wrote:
On Sat, Dec 1, 2012 at 12:26 PM, Rathmann pkrat...@gmail.comjavascript:
wrote:
Thanks. But that is what I tried?
python setup.py
Hi,
On the install page of the documentation
http://docs.sympy.org/0.7.2/install.html#git , it talks about
If you want to install SymPy, but still want to use the git version, you
can run from your repository:
$ setup.py develop
But, at least when I try it, setup.py it complains of an
09:07, Rathmann pkrat...@gmail.com javascript:wrote:
Hi,
On the install page of the documentation
http://docs.sympy.org/0.7.2/install.html#git , it talks about
If you want to install SymPy, but still want to use the git version, you
can run from your repository:
$ setup.py develop
36 matches
Mail list logo