[sympy] Re: I thought you might like this!

2009-07-15 Thread Robert Kern
sites have done similarly annoying things. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco --~--~-~--~~--

[sympy] Re: SciPy 09 sympy tutorial video

2009-08-19 Thread Robert Kern
; It's one 1h42min. > > Do you know if the output from the laptop was captured at all? As it > would be good if that could be used instead of the camera pointing at > the screen. (From what I know it is quite common for the feed to be > recorded as well as the presenter.) I do not b

[sympy] Re: cse and exponents with integer fractions

2009-09-22 Thread Robert Kern
erical analysis.  How difficult would it be to > add an option to cse to make it output expr**(3.0/2)? cse() is not the place to put such logic. The code-generation tool is the place to do that. cse() is not the only operation that will generate such expressions. -- Robert Kern "I have c

[sympy] Re: IPython.ipapi stopped working

2009-10-14 Thread Robert Kern
On Wed, Oct 14, 2009 at 13:26, Ondrej Certik wrote: > Any ideas how to fix this? I can't run doctests anymore due to this > bug, unless I install old ipython again... IPython's trunk is undergoing a major reorganization. Go back to the last release. -- Robert Kern "I

Re: [sympy] sympy.roots failure

2010-01-11 Thread Robert Kern
ives one real root. > > As far as I know there is no symbolical algorithm to determine roots > of polynomials of 5th order. Nor can there be for general quintics: http://en.wikipedia.org/wiki/Abel–Ruffini_theorem -- Robert Kern "I have come to believe that the whole world is an eni

Re: [sympy] Re: [IPython-dev] using reST for representing the notebook cells+text

2010-02-24 Thread Robert Kern
t being the hugely important player here. Certainly, you are going to have a Python API that will represent that tree of text nodes as Python objects, but I just don't see the point of making the repr() of that be the lingua franca format of the notebook file. It's just a wasted opportunity.

Re: [IPython-dev] [sympy] Re: using reST for representing the notebook cells+text

2010-02-24 Thread Robert Kern
ed opportunity. > > Again, I think the biggest issues with XML are: > > * No one wants to edit XML by hand. I don't want to write Python code in that tree style by hand, either. Too many things to get wrong. I don't see anyone editing notebooks outside of the notebook apps,

Re: [IPython-dev] [sympy] Re: using reST for representing the notebook cells+text

2010-02-24 Thread Robert Kern
ds == valid file. The same is actually true for any other format. > Doing these types of things using XML would require all of this to be > put into the centralized XML schema, making it difficult for third > parties to extend.  Plus all of the additional logic associated with > that Cell ty

Re: [IPython-dev] [sympy] Re: using reST for representing the notebook cells+text

2010-02-24 Thread Robert Kern
On Wed, Feb 24, 2010 at 17:04, Mikhail Terekhov wrote: > On Wed, Feb 24, 2010 at 4:04 PM, Robert Kern wrote: >> >> I am almost certain that their use cases and workloads are much >> different than the notebook's would be. Python's parser isn't exactly

Re: [sympy] Is SymPy project interested in this

2010-03-08 Thread Robert Kern
that many of SymPy's algorithms are particularly amenable to hardware acceleration. Do you have something specific in mind? -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as tho

Re: [sympy] GSoC 2010

2010-03-22 Thread Robert Kern
On Mon, Mar 22, 2010 at 19:03, Augustus Q Odena wrote: > It's possible that the continued interest in writing new graph modules is a > testament to the quality of the existing ones, Or the ease of starting new ones. -- Robert Kern "I have come to believe that the whole world

Re: [sympy] Action verbs in sympy: user interface

2010-03-30 Thread Robert Kern
ink it makes sense to keep it.  But >> then, let simply also make .N a method so it is consistent. > > Sage also only has the .n() method and a N() function. > > So should we have all .evalf(), .n() and .N() methods? If someone > expects to have .N() too, we can do that (Sage does

Re: [sympy] Action verbs in sympy: user interface

2010-03-30 Thread Robert Kern
d argue that duplicating methods is the worst option for the newbies and is more harmful than leaving things alone. Create the consistent function/method if you must, but deprecate the inconsistent one. Of course, that has costs as well. -- Robert Kern "I have come to believe that the whol

Re: [sympy] Multiple inheritance issues

2010-07-07 Thread Robert Kern
not clear to me. Mixing super(Klass, self).__init__() and BaseKlass.__init__(self) calls in the same inheritance tree negates the purpose of super(). You will end up with repeated calls to certain __init__()s. If you consistently use super(), you won't. -- Robert Kern "I have come

Re: [sympy] Modules with(out) copyright information

2010-10-24 Thread Robert Kern
in a package. The LICENSE file already present is quite sufficient legally. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth."   -- Umberto Eco

Re: [sympy] delete sympify, just use S

2010-12-06 Thread Robert Kern
cting "convert" to "cv" is *not* easy to understand. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth."   -- Umberto Eco -- You

Re: [sympy] import symbol as stdlib_symbol in __init__.py

2010-12-28 Thread Robert Kern
mbol, to a separate directory from sympy/core. This is probably the best idea. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth."   -- Umberto Eco

Re: [sympy] missing things from Mathematica

2011-03-08 Thread Robert Kern
ng for scikits, I think umbrella namespace packages (distinct from organization-owned namespace packages like enthought) are more trouble than they're worth, whether implemented with setuptools or pkgutils. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmles

Re: [sympy] numpy array for sympy

2011-03-18 Thread Robert Kern
y to use the basic array feature.  Since numpy has to > be compiled, this will be very useful, since, for example, you can't install > it on the Google App Engine.  Therefore, the implementation in SymPy should > match the numpy implementation. That's not very informative.

Re: [sympy] GSoC 2011 - Oleksandr Gituliar - random numbers from distributions of arbitrary form in N dimensions

2011-03-24 Thread Robert Kern
rid schemes for Metropolis sampling that require derivative information from the PDF. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth."   -- Umbert

Re: [sympy] Re: Who uses SymPy?

2011-05-12 Thread Robert Kern
e in strings.  So > probably the best way is to use an actual parser. You could use the tokenize module. I'm not sure if that's available on the App Engine, but it probably is. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is mad

Re: [sympy] Re: Preparing for the 0.7.0 Release

2011-05-12 Thread Robert Kern
it has already > passed review. A more helpful message would be > > sympy/core: Set keep_sign = True > > so atleast I know which part has changed. You can use `git log --name-status` to have git show you the files that were modified. -- Robert Kern "I have come to believe that the

Re: [sympy] Re: Random Variables

2011-05-24 Thread Robert Kern
r of *policy*, to define __eq__ methods in such a way as to return a bool, like most other types, in order to allow sympy objects to be used in a variety of contexts like most Python objects you will encounter. In particular, most sympy objects can be used as dictionary keys or set members. -- Ro

Re: [sympy] Re: Random Variables

2011-05-25 Thread Robert Kern
runs f.__eq__((1,2)), gets back (1,2), passes it to bool() to interpret it as a real boolean, gets True, so it thinks (1,2) is an object that is already in there. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad

Re: [sympy] A parser for SymPy

2011-08-09 Thread Robert Kern
n-specific, if one already exists http://www.dalkescientific.com/Python/python4ply.html -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth."   -- U

Re: [sympy] A parser for SymPy

2011-08-09 Thread Robert Kern
On Tue, Aug 9, 2011 at 23:20, Aaron Meurer wrote: > On Tue, Aug 9, 2011 at 9:53 PM, Robert Kern wrote: >> On Tue, Aug 9, 2011 at 22:49, Jeff Pickhardt wrote: >>> For implementation, I was thinking of either >>> >>> 1) forking the CoffeeScript parser

Re: [sympy] What should Matrix([1,2,3]) give?

2011-08-29 Thread Robert Kern
t;    as rows and produce a column vector and Matrix([[1,2,3]]) should > produce a row vector.  But numpy will >    not consider changing their syntax: a request to that effect was > almost instantly tabled. Sorry if the speed of that seemed rude. I just happened to be checking my email

Re: [sympy] What should Matrix([1,2,3]) give?

2011-08-29 Thread Robert Kern
On Mon, Aug 29, 2011 at 12:25, Aaron Meurer wrote: > On Mon, Aug 29, 2011 at 11:17 AM, Robert Kern wrote: >> On Mon, Aug 29, 2011 at 02:26, smichr wrote: >>> I posted something to an issue which doesn't automatically ping to >>> everyone so am copying the di

Re: Geometric Algebra in Python

2008-01-02 Thread Robert Kern
On Jan 1, 10:33 am, Alan Bromborsky <[EMAIL PROTECTED]> wrote: > I trying to determine if you would be interested in adding a geometric > algebra package to sympy. Attached are pdf files introducing geometric > algebra (imag_numbers.pdf) and a description of a python module I am > developing for

Re: Performance history of SymPy and Sympy Core projects

2008-01-03 Thread Robert Kern
ni-mannheim.de/cabench/diractiv.html -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco --~--~-~--~~~--

Re: Performance history of SymPy and Sympy Core projects

2008-01-03 Thread Robert Kern
ms for CASes with code in Axiom, Derive, Macsyma, Maple, Mathematica, MuPAD, and Reduce (as of 1999; the timings will have to be redone): http://www.math.unm.edu/~wester/cas_review.html -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is m

Re: Overriding in Python

2008-01-13 Thread Robert Kern
org/ref/numeric-types.html -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco --~--~-~--~~~---~-

Re: compiling functions to machine code

2008-04-08 Thread Robert Kern
realize you don't have time to finish it, please attach your latest > files to our issues, so that we can polish it and get it in. IIRC, the SAGE folks mentioned that they had tried tcc and found too many bugs in it. For this purpose, it might work, though. -- Robert Kern "I hav

Re: Source of inspiration: real.py

2008-04-14 Thread Robert Kern
good to see real.py getting some TLC again. Where did you upload it to? -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had

Re: Function evaluation confusion (and numerics)

2008-04-17 Thread Robert Kern
y's the odd one out, but it's not going to change this late in the game. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umber

[sympy] Re: docstrings

2008-05-24 Thread Robert Kern
ly stay one-liners. Don't give docstring contributors more work to do! -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco --~--~-

[sympy] Re: Identifying repeated subexpressions in systems of equations

2008-06-15 Thread Robert Kern
e there is no repeated subexpression. The idea is to reduce the amount of unnecessarily repeated computation (usually numerical) when there are subexpressions that pop up several times in the complete expression. For example, Mathematica has an example of its common subexpression elimination: http:

[sympy] Re: Identifying repeated subexpressions in systems of equations

2008-06-15 Thread Robert Kern
ASTs. I never followed up on it since I had no way (at that time) to regenerate Python code from the modified ASTs. http://groups.google.com/group/comp.lang.python/browse_thread/thread/de32cd3d1b5c3359/0c93c996bd1ad1e1 -- Robert Kern "I have come to believe that the whole world is an enigma

[sympy] Re: Identifying repeated subexpressions in systems of equations

2008-06-15 Thread Robert Kern
On Sun, Jun 15, 2008 at 17:46, Ondrej Certik <[EMAIL PROTECTED]> wrote: > > On Mon, Jun 16, 2008 at 12:10 AM, Robert Kern <[EMAIL PROTECTED]> wrote: >> Actually, that example is not relevant since there is no repeated >> subexpression. The idea is to redu

[sympy] Re: Identifying repeated subexpressions in systems of equations

2008-06-15 Thread Robert Kern
of expressions (e.g. my old use case) is an exercise left to the reader. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco -

[sympy] Re: Identifying repeated subexpressions in systems of equations

2008-06-16 Thread Robert Kern
com/issues/attachment?aid=3304519749492286715&name=cse.py -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco --~--~-~--~~

[sympy] Re: Identifying repeated subexpressions in systems of equations

2008-06-17 Thread Robert Kern
>to_eliminate.append(subtree) >seen_subexp.add(subtree) > > It's awesome. Then one just takes the to_eliminate list and substitute > it for x_0, x_1, ... > > On Mon, Jun 16, 2008 at 8:28 AM, Robert Kern <[EMAIL PROTECTED]> wrote: >> On Sun, Jun

[sympy] Re: Identifying repeated subexpressions in systems of equations

2008-06-18 Thread Robert Kern
E. It opens the possibility for the user to select the optimizations they need. These are also things that can be added later, so having the core CSE implementation could go in right away (pending unit tests and multiple expressions). -- Robert Kern "I have come to believe that the whole w

[sympy] Re: Identifying repeated subexpressions in systems of equations

2008-06-18 Thread Robert Kern
ay, > it's ok with me too. I can probably implement multiple expression support + unit tests + subtraction preprocessing in a few days time. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to int

[sympy] Re: Identifying repeated subexpressions in systems of equations

2008-06-18 Thread Robert Kern
On Wed, Jun 18, 2008 at 05:44, Ondrej Certik <[EMAIL PROTECTED]> wrote: > > On Wed, Jun 18, 2008 at 11:50 AM, Robert Kern <[EMAIL PROTECTED]> wrote: >> I can probably implement multiple expression support + unit tests + >> subtraction preprocessing in a few days tim

[sympy] Re: license choice

2008-06-23 Thread Robert Kern
lished under an open source license *before* someone else tries to patent it. Under essentially all patent regimes, prior publication of the invention by someone else is grounds for preventing or invalidating a patent (with a lot of effort). The VTK situation is different; the VTK code was written a

[sympy] Re: Identifying repeated subexpressions in systems of equations

2008-07-01 Thread Robert Kern
ixing it > generally) and when you or anyone else finds time, it can be improved. It's just about ready. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had

[sympy] Re: moving mpmath from sympy/thirdparty to sympy/

2008-07-01 Thread Robert Kern
On Tue, Jul 1, 2008 at 17:28, Ondrej Certik <[EMAIL PROTECTED]> wrote: > > Hi, > > how about moving mpmath directly to sympy/ ? +1 -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to

[sympy] Re: Identifying repeated subexpressions in systems of equations

2008-07-06 Thread Robert Kern
ixing it > generally) and when you or anyone else finds time, it can be improved. 'tis done. http://www.enthought.com/~rkern/cgi-bin/hgwebdir.cgi/sympy/ -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own ma

[sympy] Re: Identifying repeated subexpressions in systems of equations

2008-07-06 Thread Robert Kern
On Sun, Jul 6, 2008 at 05:45, Ondrej Certik <[EMAIL PROTECTED]> wrote: > > On Sun, Jul 6, 2008 at 12:36 PM, Robert Kern <[EMAIL PROTECTED]> wrote: >> >> On Tue, Jul 1, 2008 at 10:38, Ondrej Certik <[EMAIL PROTECTED]> wrote: >>> Any progress on this? I

[sympy] Re: Identifying repeated subexpressions in systems of equations

2008-07-06 Thread Robert Kern
from rewrite import cancel, trim, apart > > from sqrtdenest import sqrtdenest > + > +from cse import cse I'd rename the module, in this case. It makes it difficult to import the module from the sympy.simplify package. This is necessary if someone needs to change the default opt

[sympy] Re: Identifying repeated subexpressions in systems of equations

2008-07-06 Thread Robert Kern
On Sun, Jul 6, 2008 at 07:55, Ondrej Certik <[EMAIL PROTECTED]> wrote: > > On Sun, Jul 6, 2008 at 2:19 PM, Robert Kern <[EMAIL PROTECTED]> wrote: >> >> On Sun, Jul 6, 2008 at 07:13, Ondrej Certik <[EMAIL PROTECTED]> wrote: >>> diff --git a/sympy/simp

[sympy] Re: [pypy-dev] sympy tests: pypy vs cpython incompatibilities

2008-10-11 Thread Robert Kern
titem__ > attribute has worked for me. The rationale being that any iterable has > a way to access its individual items. That's not true at all. The whole point of __iter__ is to allow iterables that do not need to allow access via __getitem__. Generators, file objects, probably all

[sympy] Re: Sympy design question about encapsulation

2008-11-03 Thread Robert Kern
rmat rather than type makes a fair bit of sense in this context. Your compromise hits a nice sweet spot of getting excellent output for all of the builtin stuff and satisfactory-to-excellent output for new stuff the printer might not know about. -- Robert Kern "I have come to believe that

[sympy] Re: R->L operator precedence

2008-11-10 Thread Robert Kern
Associativity of operations is handled by the parser, not the classes. You might be able to fake it by making __mul__ unimplemented and only implement __rmul__, but that might be fragile. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that

[sympy] Re: should sympy be LGPL?

2008-11-12 Thread Robert Kern
product and resold with lots of bragging about how they're better than the open source GMP), but is there an actual threat to sympy? Hypothetical threats don't impress me much. -- Robert Kern "I have come to believe that the whole world is an enig

[sympy] Re: Yes, SymPy should be LGPL! (please help)

2008-11-15 Thread Robert Kern
ackages, though. > I think _we_ should set the rules, not some company, and if _we_ manage > SymPy to be succcessful product, EPD would just be _forced_ to ship it. Huh. And I thought we were talking about freedom, here... -- Robert Kern "I have come to believe that the whole world i

[sympy] Re: Yes, SymPy should be LGPL! (please help)

2008-11-16 Thread Robert Kern
On Sun, Nov 16, 2008 at 11:39, William stein <[EMAIL PROTECTED]> wrote: > > On Nov 15, 5:15 pm, "Robert Kern" <[EMAIL PROTECTED]> wrote: >> On Sat, Nov 15, 2008 at 18:07, Kirill Smelkov <[EMAIL PROTECTED]> wrote: >> > EPD can ship LGPL >> &g

[sympy] Use cases for complicated pattern matching/replacement?

2008-12-26 Thread Robert Kern
e sophisticated pattern-matching available in some other symbolic math system that you wish sympy could do? If you can describe what you'd like to be able to do, I'll see what I can do about implementing it. -- Robert Kern "I have come to believe that the whole world is an enigma,

[sympy] Re: Use cases for complicated pattern matching/replacement?

2008-12-27 Thread Robert Kern
On Sat, Dec 27, 2008 at 09:47, Neal Becker wrote: > > On Saturday 27 December 2008, Robert Kern wrote: >> I'm spending my holiday tinkering time playing around with Parsing >> Expression Grammars (Google it, if you're curious). I'd like to make a >> PEG

[sympy] Re: Use cases for complicated pattern matching/replacement?

2008-12-27 Thread Robert Kern
On Sat, Dec 27, 2008 at 13:20, Ondrej Certik wrote: > I'd be interested to look at your code --- if you publish your > repository somewhere, I'll play with it. http://www.enthought.com/~rkern/cgi-bin/hgwebdir.cgi/silvereye/ I'll try to write some getting-started docs tomor

[sympy] Re: Use cases for complicated pattern matching/replacement?

2008-12-28 Thread Robert Kern
On Sun, Dec 28, 2008 at 06:16, Ondrej Certik wrote: > On Sun, Dec 28, 2008 at 7:49 AM, Robert Kern wrote: >> >> On Sat, Dec 27, 2008 at 13:20, Ondrej Certik wrote: >>> I'd be interested to look at your code --- if you publish your >>> repository so

[sympy] Re: Sending updates

2009-01-07 Thread Robert Kern
; Considering what sympy is you will need math constructs at some point to > document it so latex is required to make html. No, sphinx.ext.jsmath can be used to generate HTML with LaTeX equations without needing a LaTeX installation. -- Robert Kern "I have come to believe that the whole wo

[sympy] Re: pickling protocol 2 is broken, 0 works

2009-01-10 Thread Robert Kern
r __new__(). I have a patch on sympy-patches that does this for all of the classes tested by test_pickle. There may be other classes that don't work. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to in

[sympy] Re: pickling protocol 2 is broken, 0 works

2009-01-11 Thread Robert Kern
On Sun, Jan 11, 2009 at 10:20, Ondrej Certik wrote: > > On Sat, Jan 10, 2009 at 11:25 PM, Robert Kern wrote: >> >> On Wed, Nov 12, 2008 at 10:57, Ondrej Certik wrote: >>> >>> Hi, >>> >>> I'd like to draw your attention to these two i

[sympy] Re: constrained, parametric optimisation

2009-01-12 Thread Robert Kern
ematica : > > http://reference.wolfram.com/mathematica/ref/Minimize.html#61381153 How complicated are your target functions? How complicated are your constraints? -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad a

[sympy] Differences between "python setup.py test" and py.test

2009-01-13 Thread Robert Kern
_rsolve_bulk[18] and test_rsolve_bulk[22]). Any ideas? -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying trut

[sympy] Re: Differences between "python setup.py test" and py.test

2009-01-13 Thread Robert Kern
On Tue, Jan 13, 2009 at 22:53, Ondrej Certik wrote: > > On Tue, Jan 13, 2009 at 7:58 PM, Robert Kern wrote: >> >> So I think I have a fix for issue 1263, but when I run "python >> setup.py test" I get one error (test_issue1016). When I run py.test >> f

[sympy] Re: bug?

2009-02-09 Thread Robert Kern
o that it works with numpy types, but doesn't use numpy.bool_ > explicitely? Do you *need* to typecheck? If so, then try this out: http://www.enthought.com/~rkern/cgi-bin/hgwebdir.cgi/deferredisinstance -- Robert Kern "I have come to believe that the whole world is an enigma, a harml

[sympy] Re: python query

2009-02-10 Thread Robert Kern
l You may want to ask basic Python questions on the tutor mailing list: http://mail.python.org/mailman/listinfo/tutor -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as

[sympy] Re: Possible bug in Basic.__call__

2009-02-11 Thread Robert Kern
d/628ebc799ee57ec1/ > > If you'd like to help to get this fixed, it'd be really awesome. I > think Lance is not working on this anymore, so this issue is open for > anyone to fix. :) Well, you should at least raise NotImplementedError until then.

[sympy] Re: Splitting Mathtext from Matplotlib

2009-02-25 Thread Robert Kern
if you think the project is a worthwhile undertaking. +lots -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth.&

[sympy] Re: 0.6.4.beta2 released

2009-03-12 Thread Robert Kern
ing: Module sympy was already imported from > /home/nbecker/sympy-0.6.4.beta2/sympy/__init__.pyc, but > /usr/lib/python2.5/site-packages/sympy-0.6.3_hg-py2.5.egg is being added to > sys.path You need to uninstall the old 0.6.3. -- Robert Kern "I have come to believe that the whole

[sympy] Re: Google Summer of Code 2009

2009-03-16 Thread Robert Kern
putation: Elementary Algorithms_ describes an algorithm along these lines and gives references which should help implement the special cases: http://web.cs.du.edu/~jscohen/ElementaryAlgorithms/ -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma

[sympy] Re: A new concept of flying. How can that be?

2009-04-04 Thread Robert Kern
I rejected the message, > asking him to first explain why he sent the spam as the first message > in this thread. Might be worth emailing the Yahoo address from the JMCAD home page. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma

[sympy] Re: understanding physics.units

2009-04-07 Thread Robert Kern
cies are also measured in 1/s (technically radians/s but radians are a ratio of distances and so are "unitless" by the usual logic), but they differ from Hz by a factor of 2*pi. Sadly, units are not the most rigorous of mathematical constructs. -- Robert Kern "I have come to believe t

[sympy] Re: understanding physics.units

2009-04-07 Thread Robert Kern
On Tue, Apr 7, 2009 at 20:28, Fredrik Johansson wrote: > > On Wed, Apr 8, 2009 at 2:44 AM, Robert Kern wrote: >> >> On Tue, Apr 7, 2009 at 15:18, flyeng4 wrote: >> >>> In [40]: 1/s >>> Out[40]: 1/s <-- Makes sense but might be 'hz'? >&g

[sympy] Re: understanding physics.units

2009-04-07 Thread Robert Kern
On Tue, Apr 7, 2009 at 22:18, Fredrik Johansson wrote: > > On Wed, Apr 8, 2009 at 3:35 AM, Robert Kern wrote: >>> I disagree, 1/s is the definition of the hertz, period (pun accidental :-). >> >> Sorry, but that's just not true. There are other 1/s quantities

[sympy] Re: pure Python parser for Python expressions

2009-05-03 Thread Robert Kern
nces, > evaluate each using eval() and add them together. It's feasible to write and maintain a pyparsing parser for Python's expression subgrammar. This also opens up the possibility for easily extending the grammar to add other operators and such. -- Robert Kern "I have come to

[sympy] Re: pure Python parser for Python expressions

2009-05-03 Thread Robert Kern
On Sun, May 3, 2009 at 11:06, Robert Kern wrote: > On Sun, May 3, 2009 at 10:59, Ondrej Certik wrote: > >> Google app engine supports eval(), so we may just write a simple >> preparser based on the "re" module (also available on the app engine), >> that con

[sympy] Re: Operator precedence

2009-05-10 Thread Robert Kern
e you can redefine > operator precedence for user defined types. Unlikely. Operator precedence is a parsing issue. The parser knows nothing about the types. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad

[sympy] Re: Could Someone Tell How to Install python-sphinx on windows so it works

2009-05-12 Thread Robert Kern
sympy. > On linux, at least, I > have "rst2html" and not "rst2html.py", so I don't know which way is > the correct one here. If you install from docutils source, it is rst2html.py. Debian and possibly other distributions rename it. -- Robert Kern "I have

[sympy] Re: Could Someone Tell How to Install python-sphinx on windows so it works

2009-05-13 Thread Robert Kern
cannot find the file specified. > make: *** [sphinx-build] Error 2 > > I don't think windows uses NULL ? No, that's a C NULL pointer in that error message, not a file name. Most likely, it is saying that you do not have an rm executable. -- Robert Kern "I have come to believe

[sympy] Re: Parsing -- Python parser generator module

2009-05-13 Thread Robert Kern
s a starting point. I don't think this one stands out in any particular respect. http://nedbatchelder.com/text/python-parsers.html -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret

[sympy] Re: Extending Python

2009-05-14 Thread Robert Kern
eas. However, this has been suggested before and rejected, so don't bother. Please look at the packages I've pointed you to that will let you do what you want right now. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible

[sympy] Re: Bessel Function Zeros

2009-05-14 Thread Robert Kern
s jn_zeros() function only works with integer n's, but a spherical Bessel function with integer n uses a regular Bessel function with non-integer n. If we had a jv_zeros() we could do it, but we don't. -- Robert Kern "I have come to believe that the whole world is an enigma, a harml

[sympy] Re: Substitution order

2009-05-20 Thread Robert Kern
out by Sebastian and Aaron. I didn't realize there > is such a big problem in there. One way to fix it is check if "a" and > "b" is positive, only then split sqrt(a/b) to sqrt(a)/sqrt(b). Hmm, I thought I fixed that already: http://c

[sympy] Re: Simple question

2009-05-20 Thread Robert Kern
mpy/simplify/simplify.py Definition: trigsimp(expr, deep=False, recursive=False) Docstring: Usage = trigsimp(expr) -> reduces expression by using known trig identities etc. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless eni

[sympy] Re: Strange simplification

2009-05-26 Thread Robert Kern
**14)**(3/2)) - (w**(-12))**(1/2)*(48*I*(w**28)**(1/2) - 64*w**14)**(1/2)*log(-10560*pi*w**2*(w**(-12))**(1/2)*(48*I*(w**28)**(1/2) - 64*w**14)**(1/2) + +inf*pi**2*w**2 - 120*pi*(w**(-12))**(3/2)*(48*I*(w**28)**(1/2) - 64*w**14)**(3/2)))/(32*pi) -- Robert Kern "I have come to believe that th

[sympy] Re: Strange simplification

2009-05-26 Thread Robert Kern
On Tue, May 26, 2009 at 17:04, Neal Becker wrote: > > On Tuesday 26 May 2009, Robert Kern wrote: >> On Tue, May 26, 2009 at 15:08, Luke wrote: >> > I get the same behavior on my machine. >> >> Hmm, I don't. >> > I'm using 0.6.4, ar

[sympy] Re: Strange simplification

2009-05-26 Thread Robert Kern
ence. No, I'm just dumb. That's from numpy. In [3]: from sympy import * In [4]: %sym -r f w Adding real variables: f w In [5]: s = 2*pi*I*f In [6]: ia = (-2*s**2*w**2 + w**4)/(s**4 + w**4) In [7]: simplify(powsimp(integrate(ia, (f, 0, oo Out[7]: 0 > What exactly does it mean

[sympy] Re: RETE algorithm - opensource example

2009-05-27 Thread Robert Kern
hm like the previously mentioned Pychinko. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco --~--~-~--~~

[sympy] Re: simplification question

2009-06-01 Thread Robert Kern
grammar. That said, it would be better just to pass the input to sympify() and use the list comprehension in the second branch. That would future-proof the function in case you decide to allow more things in the sympy expression grammar (Unicode? u'\{GREEK SMALL LETTER PI}'?). -- Robert

[sympy] Re: [sage-windows] Re: gtalk chat request

2009-06-04 Thread Robert Kern
(renderer._renderer.buffer_rgba(0, 0), >    330                        renderer.width, renderer.height, > > IOError: [Errno 22] invalid mode ('wb') or filename: > 'C:\\Users\\Ondrej\\Desktop > \x07.png' Watch your backslashes! \a is the bell character. -- Robert

[sympy] Re: git and site-package coexistence

2009-06-06 Thread Robert Kern
e full path to your git checkout. For example, I have my checkout in /Users/rkern/git/sympy/ (i.e. /Users/rkern/git/sympy/setup.py exists). Thus, I would have just the line /Users/rkern/git/sympy in my .pth file. -- Robert Kern "I have come to believe that the whole world is an enigma, a harml

[sympy] Re: git and site-package coexistence

2009-06-07 Thread Robert Kern
On Sun, Jun 7, 2009 at 02:40, smichr wrote: > On Jun 7, 7:18 am, Robert Kern wrote: >> The easiest thing for you to do is add a file named "sympy.pth" into >> your site-packages. It should have just one line: the full path to >> your git checkout. For example,

[sympy] Re: codegen: tests that generate output files

2009-06-08 Thread Robert Kern
now (I tested on > both linux and mac and it just works). See also my comment here: > > http://code.google.com/p/sympy/issues/detail?id=1463#c4 scipy.weave already has most of the infrastructure that you need. -- Robert Kern "I have come to believe that the whole world is an enigma, a har

[sympy] Re: codegen: tests that generate output files

2009-06-08 Thread Robert Kern
On Mon, Jun 8, 2009 at 14:39, Ondrej Certik wrote: > > On Mon, Jun 8, 2009 at 1:18 PM, Robert Kern wrote: >> scipy.weave already has most of the infrastructure that you need. > > Do you mean the build support stuff? Or code generation? Build support. > Btw, to learn it, ju

[sympy] Re: Question about hooks

2009-06-13 Thread Robert Kern
" ? >>> >> >> What hooks do you mean? >> >> Ondrej > > I'm talking about the use of the cracter ' ['. Maybe I do not use the > right word (I'm french). In programmer's English: [] = "brackets" or "square brackets&qu

[sympy] Re: Question about hooks

2009-06-13 Thread Robert Kern
On Sat, Jun 13, 2009 at 19:03, Ondrej Certik wrote: > > On Sat, Jun 13, 2009 at 5:57 PM, Robert Kern wrote: >> In programmer's English: >> >> [] = "brackets" or "square brackets" >> {} = "braces" or "curly braces" or

  1   2   >