[sympy] Re: Convert sympy to javascript

2013-05-10 Thread James
Hi Dennis Sorry to revive an old thread, but I am also looking into compiling sympy to javascript (also only the basic math) - did you have success? On Saturday, September 24, 2011 4:48:57 PM UTC+3, dennis wrote: You are right, I don't need to convert the whole project. What I need for my

Re: [sympy] Re: SymPy Live not working properly

2020-01-15 Thread James .
rom the commit history of the SymPy Live >> repo. >> >> The advantage of the App Engine is that it does autoscaling and >> automatic sandboxing. >> >> Aaron Meurer >> >> On Tue, Jan 14, 2020 at 11:32 AM James . >> wrote: >>

Re: [sympy] Re: SymPy Live not working properly

2020-01-17 Thread James .
working now above things, but at this link https://github.com/sympy/sympy-live this command " ../google_appengine/dev_appserver.py" giving error -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails

Re: [sympy] Re: SymPy Live

2020-01-19 Thread James .
from 2 days but still couldn't solve . On Sat, Jan 18, 2020, 01:21 James . wrote: > working now above things, but at this link > https://github.com/sympy/sympy-live this command " > ../google_appengine/dev_appserver.py" > giving error > -- You received this message b

Re: [sympy] Re: SymPy Live

2020-01-19 Thread James .
github.com/sympy/sympy-live/pull/139 > After merging that PR sympy live will not work locally but will work > when pushed to google. > > > On Sun, 19 Jan 2020 at 12:59, James . wrote: > > > > Hi everyone, > > If anyone using sympy live shell on their local ma

Re: [sympy] Re: SymPy Live

2020-01-19 Thread James .
if you dont mind can u pls tell me in specific while running this command(../../google-cloud-sdk/bin/dev_appserver.py .) its showing like this "'..' is not recognized as an internal or external command, operable program or batch file."" my cloud sdk in this path "C:\Users

Re: [sympy] Re: SymPy Live not working properly

2020-01-14 Thread James .
Hi,My name is James, i am a 3rd year undergraduate student from India. I am using python from 3 years, from a couple of months ago I started using sympy and I am very much interested in refactoring sympy live.can someone help me what are the prerequisites I need to do this? On Tue, Jan 14, 2020

Re: [sympy] Re: SymPy Live not working properly

2020-01-17 Thread James .
"" git submodule update Cloning into 'C:/Users/James/AppData/Local/Google/Cloud SDK/sympy-live/static'... Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. fatal: clone of 'g...@gith

Re: [sympy] Re: SymPy Live not working properly

2020-01-17 Thread James .
> > On Fri, Jan 17, 2020 at 6:41 AM James . wrote: > > > > https://github.com/sympy/sympy-live/blob/master/README.rst > > from this i have followed every step,but im not able to see the gui of > sympy live shell in my local server,i think its because of this command "

Re: [sympy] Re: SymPy Live not working properly

2020-01-17 Thread James .
where is this " dev_appserver.py " i cant find it anywhere On Fri, Jan 17, 2020 at 11:08 PM James . wrote: > just now added ssh key,still same error coming.. > > > On Fri, Jan 17, 2020 at 10:38 PM Aaron Meurer wrote: > >> I think you will need to add yo

Re: [sympy] Re: SymPy Live

2020-01-20 Thread James .
ows). > > Probably there is a tutorial somewhere that explains how to use > google-cloud-sdk more generally. It might be worth going through > something like that before trying to get sympy-live to work. > > > On Mon, 20 Jan 2020 at 05:29, James . wrote: > > > > if yo

[sympy] Re: understanding physics.units

2009-04-08 Thread Ryan James
On Tue, 2009-04-07 at 20:16 -0400, Neal Becker wrote: On Tuesday 07 April 2009, Riccardo Gori wrote: 2009/4/7 flyeng4 flye...@gmail.com I am trying to understand physics.units. Here is an ipython session illustrating my mental block In [32]: from sympy.physics.units import *

[sympy] Re: documentation for Sum?

2009-07-30 Thread James Pearson
: Interactive File: /usr/lib/python2.6/site-packages/sympy/concrete/summations.py Definition: Sum(*args, **kwargs) Docstring: no docstring Also, beware of capitalization, because it is significant. So, the project name may be SymPy, but the module is sympy. -- James Pearson -- The best way

[sympy] Preventing Rational from reducing

2009-08-06 Thread James Pearson
. -- James Pearson -- The best way to predict the future is to invent it. - Alan Kay --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sympy group. To post to this group, send email to sympy@googlegroups.com To unsubscribe

Re: [sympy] track patches from other developers using github

2010-04-29 Thread James Pearson
what you've already got working (or you're doing it already); I haven't really been paying much attention to the sympy development process. [0]: http://docs.sympy.org/sympy-patches-tutorial.html [1]: http://progit.org/book/ch3-4.html -- James Pearson -- The best way to predict the future

Re: [sympy] Python 3

2010-06-21 Thread James Pearson
On Mon, Jun 21, 2010 at 1:38 AM, Christophe BAL projet...@gmail.com wrote: Hello, do you think that one day sympy will be avaible for Python 3 ? Considering that Python 3.0 was released in December '08, it would be nice to see SymPy at least start moving in that direction. The difficulty is

Re: [sympy] Python 3

2010-06-21 Thread James Pearson
On Mon, Jun 21, 2010 at 9:52 AM, James Pearson james.m.pear...@gmail.comwrote: Considering that Python 3.0 was released in December '08, it would be nice to see SymPy at least start moving in that direction. My apologies if this sounded a bit rude, as the team has already done quite a bit

Re: [sympy] Python 3

2010-06-21 Thread James Pearson
On Mon, Jun 21, 2010 at 12:36 PM, Ondrej Certik ond...@certik.cz wrote: We need to find someone who would take a lead on this and start pushing things in. Would you have time to do it? Possibly. I just started work again after the quarter-end and a week off, and it's looking like I will be

Re: [sympy] Re: git.sympy.org

2010-07-03 Thread James Pearson
On Sat, Jul 3, 2010 at 1:20 AM, Ondrej Certik ond...@certik.cz wrote: We need to create some better pages. It's as simple as just cloning the repo, and pushing it in. What kind of things (if any) did you have in mind? Would we like to eventually have all of the wiki pages there, instead, or

[sympy] checking for a lambda

2010-07-06 Thread James Pearson
/sympy/blob/master/sympy/utilities/iterables.py#L54 -- James Pearson -- There is no clear division between Gods and Men -- one blends softly casual into the other. -- Iblis Ginjo, Options for Total Liberation -- You received this message because you are subscribed to the Google Groups sympy

[sympy] Re: checking for a lambda

2010-07-06 Thread James Pearson
). We get an additional DeprecationError from the latter, but we have plenty of those as it is, and collections.Callable didn't exist until 2.6. -- James Pearson -- If life is but a dream, then do we only imagine the truth? No! By following our dreams we make our own truths! -- The Legend of Selim

Re: [sympy] checking for a lambda

2010-07-06 Thread James Pearson
at http://github.com/xiongchiamiov/sympy/compare/master...tempfix2 -- James Pearson -- Of all the subjects of human behavior, two are most storied: warfare and love. -- Cogitor Eklo, Ruminations on Things Lost -- You received this message because you are subscribed to the Google Groups sympy

Re: [sympy] github's gist for sympy

2010-08-10 Thread James Pearson
On Mon, Aug 9, 2010 at 1:07 PM, Ondrej Certik ond...@certik.cz wrote: and instead of a plain text / Python source code, it would be an interactive sympy session. The online version would show the results. So it would be similar to a public notebook, like this:

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

2010-10-24 Thread James Pearson
On Sun, Oct 24, 2010 at 1:25 PM, Priit Laes plaes...@gmail.com wrote: [snip] 2) Some of the modules already contain the brief description about the module. Having short description also helps people get a quick grips about the functionality that's implemented there.. While I agree with the

[sympy] bug in lowergamma derivative ?

2013-09-26 Thread James Fiedler
, 3.0) + 4.60445798227974 In [12]: _.evalf() Out[12]: 12.9008705652269 James -- 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+unsubscr...@googlegroups.com

Re: [sympy] bug in lowergamma derivative ?

2013-09-26 Thread James Fiedler
Hi, Yeah, I'm willing to do that. I'm actually trying to learn Git now, so this would be good practice. Of course, that also means it might take me a minute to figure out how to do this. James On Thursday, September 26, 2013 3:32:45 PM UTC-5, Tom Bachmann wrote: Hi, good catch. Thanks

Re: [sympy] bug in lowergamma derivative ?

2013-09-26 Thread James Fiedler
Thanks. I think I got it. I just submitted the pull request. I think there already was a test for the derivative with respect to first argument, but it also had the wrong sign. James On Thursday, September 26, 2013 7:30:29 PM UTC-5, Aaron Meurer wrote: No problems. We have a guide written up

[sympy] GSoC - Linearization of Equations of Motion (PyDy improvements)

2014-03-13 Thread James Crist
All, I have a rough draft of my GSoC proposal up herehttps://github.com/pydy/pydy/wiki/GSoC-2014-Application:-Jim-Crist-%28Linearization-Routines-for-Equations-of-Motion%29. It would be great if I could get some constructive criticism on how to improve it. I also am wondering what people

Re: [sympy] Re: Don't forget to submit your GSoC proposals in Melange

2014-03-15 Thread James Crist
I just submitted a draft to sympy on melange. It said successfully saved, but I can't see my proposal in my submissions. In case it didn't work, here's a link to the current draft:

[sympy] Re: Don't forget to submit your GSoC proposals in Melange

2014-03-15 Thread James Crist
Tried it again, and this time it worked. I look forward to hearing your comments. -Jim On Saturday, March 15, 2014 2:24:57 PM UTC-5, Avichal Dayal wrote: I submitted my proposal. Hope there are no issues except the formatting ones. Please review when you have time. Thank You! -- You

[sympy] Linearize Method Interface - Opinion Thread

2014-05-28 Thread James Crist
I'm working on methods to linearize the equations of motion (EOM) generated in sympy.physics.mechanics. The goal is to have a function `linearize` that can take in a `KanesMethod`, `LagrangesMethod`, or any other system of equations (and ideally a matrix of equations, I think that can work

[sympy] Re: Linearize Method Interface - Opinion Thread

2014-05-29 Thread James Crist
On Wednesday, May 28, 2014 8:42:34 PM UTC-5, moorepants wrote: Jason moorepants.info +01 530-601-9791 On Wed, May 28, 2014 at 12:06 PM, James Crist cris...@umn.edujavascript: wrote: I'm working on methods to linearize the equations of motion (EOM) generated

[sympy] Re: Linearize Method Interface - Opinion Thread

2014-05-29 Thread James Crist
knowledge on Linearization procedures.(Since I am not a mechanics major, I do not have much knowledge on the things). I want to be helpful with other aspects(other than visualizations). It shall be really helpful for me. Thanks Tarun Gaba On Thu, May 29, 2014 at 8:27 PM, James Crist cris

[sympy] Re: Convert from a system of linear equations to a matrix

2014-06-06 Thread James Crist
I just answered this on gitter earlier today, but you can just take the jacobian of the system to get its matrix form. For example: In [1]: from sympy import * In [2]: a, b, c, d = symbols('a, b, c, d') In [3]: x1, x2, x3, x4 = symbols('x1:5') In [4]: x = Matrix([x1, x2, x3, x4]) In [5]:

Re: [sympy] Re: Convert from a system of linear equations to a matrix

2014-06-14 Thread James Crist
-5, Aaron Meurer wrote: That's a clever trick. I should have thought of that. Is there any reason you let system = A*x - B instead of A*x + B? The latter seems more natural. Aaron Meurer On Sat, Jun 7, 2014 at 12:28 AM, James Crist cris...@umn.edu javascript: wrote: I just answered

Re: [sympy] Re: Convert from a system of linear equations to a matrix

2014-06-15 Thread James Crist
more natural to me too. Should we make a convenience function that does this? I think this use of jacobian would be lost on most people. Aaron Meurer On Sat, Jun 14, 2014 at 6:29 PM, James Crist cris...@umn.edu javascript: wrote: It's just the convention I'm most used to. Systems

[sympy] Getting `nan` or `oo` after subs when not simplified

2014-06-26 Thread James Crist
The code I'm working on in sympy.physics.mechanics often results in large expressions (100,000 + operations, biggest I've seen was 31,000,000 operations). Once these expressions are obtained, we often need to substitute in values/symbols (this is the operating point). However, due to the

[sympy] Re: Getting `nan` or `oo` after subs when not simplified

2014-06-27 Thread James Crist
signsimp didn't seem to help. I'll try to get a gist of the expression up tomorrow, it's so huge I haven't succesfully ran simplify on it. However, I had the same thing happen with a readable expression. The issue was something like: expr = sin(a)/tan(a) expr.subs(a, 0) nan expr =

[sympy] A faster (but *only* should be used for its design case in sympy.physics.mechanics) subs. Please Review

2014-07-02 Thread James Crist
I wrote this up today. In physics.mechanics we often have to sub symbols for values (or a smaller subset of symbols, i.e. the operating point). For the huge expressions generated, `subs` is extremely slow. Also, it subs inside derivatives, which is not ideal (we are currently using a hacky

[sympy] Re: A faster (but *only* should be used for its design case in sympy.physics.mechanics) subs. Please Review

2014-07-03 Thread James Crist
On Wed, Jul 2, 2014 at 9:10 PM, James Crist cris...@umn.edu javascript: wrote: I wrote this up today. In physics.mechanics we often have to sub symbols for values (or a smaller subset of symbols, i.e. the operating point). For the huge expressions generated, `subs

[sympy] Re: A faster (but *only* should be used for its design case in sympy.physics.mechanics) subs. Please Review

2014-07-03 Thread James Crist
code. There's also the strategies submodule that Matthew added which looks useful, but I couldn't figure out how to use it. On Thursday, July 3, 2014 11:12:55 AM UTC-5, James Crist wrote: Checking for these conditions in general would prove extremely tricky. I've updated the gist with my

Re: [sympy] Re: Getting `nan` or `oo` after subs when not simplified

2014-07-07 Thread James Crist
* simplifying that expression. This way you are targeting only trouble expressions and not working with the whole expression tree. On Friday, June 27, 2014 9:35:09 PM UTC-5, James Crist wrote: signsimp didn't seem to help. I'll try to get a gist of the expression up tomorrow

Re: [sympy] Re: Getting `nan` or `oo` after subs when not simplified

2014-07-16 Thread James Crist
On Friday, July 11, 2014 11:13:28 PM UTC-5, Richard Fateman wrote: The obvious brute force method would be to use software floats in which case you could increase the precision and the range of the numbers involved. I'm assuming the NaNs come from division by zero where the denominator is

[sympy] Matrix Code Generation Opinion Thread

2014-08-04 Thread James Crist
I'm working on adding support ofr codegeneration with Matrix objects. Currently an `indexed` type is supported that results in low-level contiguous arrays. These are always converted into loops though (and I don't really understand what they're for). In contrast, the intent here is to provide

Re: [sympy] Matrix Code Generation Opinion Thread

2014-08-04 Thread James Crist
on this problem seems sensible. Thanks again, -Matt On Mon, Aug 4, 2014 at 4:13 PM, Jason Moore moorepa...@gmail.com wrote: Jason moorepants.info +01 530-601-9791 On Mon, Aug 4, 2014 at 3:27 PM, James Crist crist...@umn.edu wrote: I'm working on adding support ofr codegeneration with Matrix

Re: [sympy] Matrix Code Generation Opinion Thread

2014-08-04 Thread James Crist
for the outer Matrix as is already shown in the docs? On Mon, Aug 4, 2014 at 11:34 PM, Tim Lahey tim.la...@gmail.com wrote: On 5 Aug 2014, at 0:14, James Crist wrote: @Tim: They're for representing tensors. Of course, the can be used for a number of things, including calculating finite

Re: [sympy] Matrix Code Generation Opinion Thread

2014-08-05 Thread James Crist
routine. On Tue, Aug 5, 2014 at 11:46 AM, Aaron Meurer asmeu...@gmail.com wrote: On Mon, Aug 4, 2014 at 5:44 PM, Tim Lahey tim.la...@gmail.com wrote: I've answered your questions below. On 4 Aug 2014, at 18:27, James Crist wrote: *1. Sympy Matrices are always 2 dimensional, should

[sympy] Autowrap, ufuncify, and matrices

2014-08-14 Thread James Crist
This is part of my continuing my work on making sympy capable of generating code for evaluating matrix functions. So far the codeprinters and codegen is done(ish); all that's left is autowrap. Questions: 1. Should functions created by autowrap create matrices that would be in-out parameters

[sympy] ufuncify now creates actual ufuncs

2014-08-27 Thread James Crist
I still need to do some cleanups and add tests, but I finally have this working and thought I'd share. I'm really happy with this: In [1]: from sympy import * In [2]: a, b, c = symbols('a, b, c') In [3]: expr = (sin(a) + sqrt(b)*c**2)/2 In [4]: from sympy.utilities.autowrap import ufuncify

Re: [sympy] ufuncify now creates actual ufuncs

2014-08-27 Thread James Crist
on this today but it looks like you've by passed what I had working. Do you have a PR with this? Jason moorepants.info +01 530-601-9791 On Wed, Aug 27, 2014 at 11:11 PM, Matthew Rocklin mrock...@gmail.com wrote: Cool On Wed, Aug 27, 2014 at 8:07 PM, James Crist crist...@umn.edu wrote: I

Re: [sympy] ufuncify now creates actual ufuncs

2014-08-27 Thread James Crist
tomorrow. Jason moorepants.info +01 530-601-9791 On Wed, Aug 27, 2014 at 11:26 PM, James Crist crist...@umn.edu wrote: Not yet. I wrote it this morning during an extremely boring meeting, and haven't had a chance to clean it up. This doesn't solve your problem about broadcasting a matrix

Re: [sympy] ufuncify now creates actual ufuncs

2014-08-29 Thread James Crist
, James Crist cris...@umn.edu javascript: wrote: I was wondering about that. I wasn't sure if the overhead from looping through the inputs multiple times would outweigh improvements from fast C loops. Glad that in your case it does. I've thrown a WIP PR up: https://github.com/sympy/sympy

Re: [sympy] ufuncify now creates actual ufuncs

2014-08-29 Thread James Crist
wrote: Jason moorepants.info +01 530-601-9791 On Fri, Aug 29, 2014 at 2:38 AM, James Crist crist...@umn.edu wrote: I was planning on going to bed, but ended up working on this instead. I have no self control... Anyway, I've uncovered some things: 1. Addition

Re: [sympy] ufuncify now creates actual ufuncs

2014-08-29 Thread James Crist
For handling Pow? horner(x**11) results in x**11. Or were you recommending applying horner to an entire expression tree? On Fri, Aug 29, 2014 at 3:55 PM, Tim Lahey tim.la...@gmail.com wrote: I recommend that you use the horner function in polys. On 29 Aug 2014, at 16:48, James Crist wrote

Re: [sympy] ufuncify now creates actual ufuncs

2014-09-01 Thread James Crist
no additional kwargs. If pow is overridden by the user, it will not be included in the code printout. Easy, simple, and requires no user facing changes. Thoughts? On Sat, Aug 30, 2014 at 3:04 PM, Björn Dahlgren bjo...@gmail.com wrote: Cool! Great work! On Friday, 29 August 2014 22:48:23 UTC+2, James

Re: [sympy] ufuncify now creates actual ufuncs

2014-09-03 Thread James Crist
. - Jim On Wednesday, September 3, 2014 10:49:03 AM UTC-5, Ondřej Čertík wrote: Hi James, On Mon, Sep 1, 2014 at 2:37 PM, James Crist cris...@umn.edu javascript: wrote: I prefer either to pass -ffast-math flag (setting compiler flags is already an issue since we need to indicate

Re: [sympy] Fwd: Python Weekly - Issue 157

2014-09-18 Thread James Crist
.com/track/click?u=e2e180baf855ac797ef407fc7id=bf9baee8d0e=c9acab854b In this talk, James Powell shows us his experiences with the worst and most evil things he's encountered when coding in Python and gives demos on how to get around those errors to turn them into good ideas. Network

Re: [sympy] Fwd: Python Weekly - Issue 157

2014-09-18 Thread James Crist
. We could print out code for the expanded form of (x + a1)*(x + a2)*...*(x + an), or we could factor it, and reduce the number of operations significantly. On Thu, Sep 18, 2014 at 6:03 PM, James Crist crist...@umn.edu wrote: Oh hey, that's kinda neat. On one of the slides you mention

Re: [sympy] Fwd: Python Weekly - Issue 157

2014-09-18 Thread James Crist
And I suppose for matrix expressions, if a user tried to generate code for x = A^-1*B, we could recognize that and replace it with a matrix solve routine, rather than explicitly calculating the inverse. On Thu, Sep 18, 2014 at 6:23 PM, James Crist crist...@umn.edu wrote: Hmmm, it appears I

Re: [sympy] Fwd: Python Weekly - Issue 157

2014-09-18 Thread James Crist
do this now, but I'd love to see some research in this area). Aaron Meurer On Thu, Sep 18, 2014 at 6:27 PM, James Crist cris...@umn.edu javascript: wrote: And I suppose for matrix expressions, if a user tried to generate code for x = A^-1*B, we could recognize that and replace

[sympy] Help with aliasing assumptions

2014-09-18 Thread James Crist
I have a new SymPy type that serves to represent a unit of computation (contains an expression/expressions that is/are being computed). I'd like to be able to alias queries on the assumptions of the element to assumptions of the underlying expression it represents. Example: a, b, c =

Re: [sympy] Re: Help with aliasing assumptions

2014-09-19 Thread James Crist
value. I suspect there will be issues with how you define Routine, however, since it looks like in the first example that the expression is returned directly while in the second case it is not(?). On Thursday, September 18, 2014 10:32:01 PM UTC-5, James Crist wrote: I have a new SymPy type

Re: [sympy] Re: Help with aliasing assumptions

2014-09-25 Thread James Crist
asme...@gmail.com javascript: wrote: On Fri, Sep 19, 2014 at 9:20 AM, James Crist cris...@umn.edu javascript: wrote: it looks like in the first example that the expression is returned directly while in the second case it is not(?) Ideally, for routines with one expr, `routine

Re: [sympy] variable limit in ufuncify?

2014-09-25 Thread James Crist
I'd hazard that it's a limit in the internals of numpy for how they handle broadcasting, but I can't be certain on that. However, we can handle this, you just need to frame your problem in a better way. You're trying to do optimization, so generally you'd frame your optimal condition as a

Re: [sympy] variable limit in ufuncify?

2014-09-26 Thread James Crist
@david: This is all in sympy master. The codegen stuff has had major work done to it in the last development cycle. On Fri, Sep 26, 2014 at 10:10 AM, David Shin shin.da...@gmail.com wrote: James, Your code doesn't seem to work as expected: $ python demo.py 10 Traceback (most recent call

[sympy] Re: The slowest of the slow

2014-09-26 Thread James Crist
The `test_kane3` test I think is not a good test in general. It's going to run slow, and personally I've never had it complete (although my laptop is slow). It's a fine example of the capabilities of our library, but as a test - not so good. I doubt the rest of the mechanics team would agree

Re: [sympy] Re: Help with aliasing assumptions

2014-09-26 Thread James Crist
instead. That's what I get for trying to do things the easy way :/ Anyway, problem is *tentatively* solved. Still need to do the same for `MatrixExpr` types, this only works for `Expr`. Can't imagine it will be that different though. - Jim On Thursday, September 25, 2014 12:07:51 PM UTC-5, James

Re: [sympy] variable limit in ufuncify?

2014-10-01 Thread James Crist
to confirm, the latest official release is 0.7.5 and does not work with your code. Is that right? Do you know when the next release will be? On Friday, September 26, 2014 10:12:23 AM UTC-5, James Crist wrote: @david: This is all in sympy master. The codegen stuff has had major work done

[sympy] Interest in adding timeout argument to potentially long running calls (potential implementation included)?

2014-10-23 Thread James Crist
For the large expressions that we see in `mechanics`, calls to `simplify` can take an extremely long time. However, for simple expressions, simplification is desirable. Currently we don't simplify by default inside any of our library code, as it's impossible to tell whether the expression can

Re: [sympy] Interest in adding timeout argument to potentially long running calls (potential implementation included)?

2014-10-23 Thread James Crist
still be a problem though. This was just a proposal - I'm not adamant that sympy needs such a feature. On Thursday, October 23, 2014 2:39:01 PM UTC-5, Joachim Durchholz wrote: Am 23.10.2014 um 20:23 schrieb James Crist: However, this isn't the easiest thing to do in Python. The best

Re: [sympy] Interest in adding timeout argument to potentially long running calls (potential implementation included)?

2014-10-23 Thread James Crist
like doing that until I get some validation on the concept. On Thursday, October 23, 2014 3:06:22 PM UTC-5, James Crist wrote: What's composable in this context? Easy to write without intruding too much into the actual function. That would not affect SymPy itself

Re: [sympy] Interest in adding timeout argument to potentially long running calls (potential implementation included)?

2014-10-23 Thread James Crist
A second proof of concept PR, this time using a context manager. I actually like this more, but it has its own issues as well. https://github.com/sympy/sympy/pull/8297 On Thursday, October 23, 2014 4:14:27 PM UTC-5, James Crist wrote: Proof of concept PR here https://github.com/sympy/sympy

[sympy] Re: Interest in adding timeout argument to potentially long running calls (potential implementation included)?

2014-10-24 Thread James Crist
. On Thursday, October 23, 2014 1:23:07 PM UTC-5, James Crist wrote: For the large expressions that we see in `mechanics`, calls to `simplify` can take an extremely long time. However, for simple expressions, simplification is desirable. Currently we don't simplify by default inside any

[sympy] Re: Prepping for SymPy 0.7.6

2014-10-28 Thread James Crist
I really want to get this one in before the release: https://github.com/sympy/sympy/pull/7824. On Tuesday, October 28, 2014 12:24:02 PM UTC-5, Aaron Meurer wrote: We are just about ready to create a release candidate for SymPy 0.7.6. The only remaining blocking PR to my knowledge is

Re: [sympy] Arbitrary constraints?

2014-11-10 Thread James Crist
You need to include the assumptions in the call to refine: refine(sqrt((x - y)**2), Q.positive(x - y)) x - y If I remember correctly, the `assuming` context manager also works for this, but I can't be certain. On Monday, November 10, 2014 6:30:25 PM UTC-6, Andrew Spielberg wrote: Hi Aaron,

[sympy] Writing a fast pattern matcher, updates and questions

2014-11-26 Thread James Crist
All, In my spare time, I've been working on implementing a fast pattern matcher that accounts for Associative and Commutative symbols. It's going to be a while before I'm ready to release the code (it needs some serious cleanup), but as of now it is partly functional. Some notation: T = set

Re: [sympy] Writing a fast pattern matcher, updates and questions

2014-11-27 Thread James Crist
Oh boy, this is going to be a big post. Responding to everyone in turn: *@Aaron:* Nonlinear, AC pattern matching is NP complete. Linear AC pattern matches can be found in polynomial time. Interesting. Why is that? Joachim got it right, having each match constrained by other matches,

Re: [sympy] Writing a fast pattern matcher, updates and questions

2014-11-29 Thread James Crist
rules in a ruleset is small (~none for non-AC patterns), but it does exist. - Jim Crist On Sat, Nov 29, 2014 at 10:29 AM, Aaron Meurer asmeu...@gmail.com wrote: On Fri, Nov 28, 2014 at 6:40 PM, Richard Fateman fate...@gmail.com wrote: On Thursday, November 27, 2014 7:49:30 PM UTC-8, James

Re: [sympy] Writing a fast pattern matcher, updates and questions

2014-11-29 Thread James Crist
predicates for each path will get increasingly expensive. On Sat, Nov 29, 2014 at 11:39 AM, James Crist crist...@umn.edu wrote: @Richard, Thanks for the Jenks paper, that was a good read. I also read your paper on semantic matching http://dl.acm.org.ezp2.lib.umn.edu/citation.cfm?id=806300, which

[sympy] Re: Regarding Contributions to sympy

2014-12-19 Thread James Crist
Hello, Read this: https://github.com/sympy/sympy/wiki/introduction-to-contributing On Friday, December 19, 2014 10:39:56 AM UTC-6, GAURAV MISHRA wrote: Hi everyone I am Gaurav and i am pursuing my B.Tech in Computer Science (3 year) from IIIT Hyderabad (India).I am a Mathematics and

Re: [sympy] Re: PyDy Website Sprint this weekend Sat February 7, 2015 18:00-3:00 UTC

2015-02-02 Thread James Crist
Clearly Jim needs to move out to the West Coast. I'm working on it :) I would suggest deciding on a technology beforehand If we're hosting our docs at readthedocs (as Jason said on the wiki), then website will be a gallery, blog, some prose pages, and that's it. Any of the popular static

[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] Re: test_kane3 sort-of fails in master

2015-01-03 Thread James Crist
Bleagh, I still need to fix this, completely forgot about it. Somewhere in all the changes made in my GSoC project, this test stopped working. Due to the large size of the expression involved (just printing it takes forever), debugging the failure is tricky. Currently it's left with the

Re: [sympy] new idea

2015-01-08 Thread James Crist
Isn't this similar to SymPy Gamma? http://gamma.sympy.org/ On Wednesday, January 7, 2015 5:36:57 PM UTC-6, Anas Belkhadir wrote: did you understand me what i want to say ?? 2015-01-07 21:28 GMT+00:00 Francesco Bonazzi franz@gmail.com javascript:: On Wednesday, January 7, 2015

[sympy] Re: How do I construct this rational expression?

2015-03-28 Thread James Crist
One way that's pretty common is to do something like: result = whatever your testing solution = something you type in assert simplify(result - solution) == 0 This is better than constructing a special case form, because that form may change in the future. On Saturday, March 28, 2015 at 9:28:00

[sympy] [code quality] - Pure formatting PRs possibly harmful?

2015-04-14 Thread James Crist
I expect this to turn into a flamewar, so I'm going to ask everyone to only give one opinion (voting style). Please please please don't fight about this. I just got back from PyCon, and there was a presentation there on pep 8 formatting, and one of the main points was that pure formatting PRs

[sympy] The great issue cleanup of 2015

2015-04-16 Thread James Crist
As of this writing, SymPy has 1648 issues open. That's more than numpy, scipy, or pandas (more than numpy and scipy combined!). Further, our issue tagging system is a mess. We can do better than this! Many of these issues are imported from google code, and may be already fixed in master (some

Re: [sympy] Re: The great issue cleanup of 2015

2015-04-17 Thread James Crist
On Friday, April 17, 2015 at 8:17:56 AM UTC-5, Harsh Gupta wrote: Great initiative, I suggest adding `needs decision` to the classifier tag. It is for the issues for which we are not sure if they are valid or not. `Needs Decision` already exists, and is a special (pink) tag. The reason for

Re: [sympy] The great issue cleanup of 2015

2015-04-17 Thread James Crist
wrote: Glad to see you taking this on. Quite a few issues are either duplicate or already fixed, so there is definitely some cleanup possible. On Fri, Apr 17, 2015 at 12:40 AM, James Crist crist...@umn.edu wrote: As of this writing, SymPy has 1648 issues open. That's more than numpy

Re: [sympy] The great issue cleanup of 2015

2015-04-17 Thread James Crist
On Friday, April 17, 2015 at 1:34:55 PM UTC-5, Joachim Durchholz wrote: - Help labeling. I haven't found a way to enable tagging for people that do not have full write access to the repository. I suspect GitHub does not offer any. This is also the reason why tagging does not happen very

Re: [sympy] The great issue cleanup of 2015

2015-04-17 Thread James Crist
making the PR. I'd like to remove it unless someone makes a strong argument to the contrary. ​Perhaps, we can reword it.​ How about Needs changes or Waiting for changes? Sudhanshu Mishra On Sat, Apr 18, 2015 at 12:35 AM, James Crist cris...@umn.edu javascript: wrote: On Friday, April 17

Re: [sympy] The great issue cleanup of 2015

2015-04-17 Thread James Crist
...@durchholz.org wrote: One thing I saw proposed elsewhere is to group labels, by naming them group:label. Am 17.04.2015 um 07:40 schrieb James Crist: *Submodule tags (html #FF, blue):* Everything after `sympy.` for the specific submodule. Keep the naming and casing consistent with the sympy

Re: [sympy] [code quality] - Pure formatting PRs possibly harmful?

2015-04-14 Thread James Crist
, Joachim Durchholz j...@durchholz.org wrote: Am 14.04.2015 um 19:54 schrieb James Crist: For example, say I make a tiny bug fix in function foo - I could also clean up some of the code in foo. That way the last person to touch foo is not someone who added a space between an operator, but someone

Re: [sympy] [code quality] - Pure formatting PRs possibly harmful?

2015-04-14 Thread James Crist
to be the main symbolics engine for sage, as the increased user base would probably result in an increased development team. On Tue, Apr 14, 2015 at 4:31 PM, James Crist crist...@umn.edu wrote: Have you tried git blame -CCC -M? According to the manpage it is supposed to be smarter about stuff. I had

Re: [sympy] The great issue cleanup of 2015

2015-04-17 Thread James Crist
Do people still use this? Many recent beginner PRs have been tagged with it. If no one is attached, I'd like to remove it. - Jim On Fri, Apr 17, 2015 at 6:28 PM, Aaron Meurer asmeu...@gmail.com wrote: On Fri, Apr 17, 2015 at 2:05 PM, James Crist crist...@umn.edu wrote: On Friday, April 17

Re: [sympy] Recommendations for creating symbols

2015-04-02 Thread James Crist
. On Thu, Apr 2, 2015 at 11:54 AM, Joachim Durchholz j...@durchholz.org wrote: Am 02.04.2015 um 18:46 schrieb James Crist: Performance: Using symbols() in all contexts might have performance ramifications, creating new Symbol() objects means more memory pressure than reusing precreated symbols

Re: [sympy] Recommendations for creating symbols

2015-04-02 Thread James Crist
Performance: Using symbols() in all contexts might have performance ramifications, creating new Symbol() objects means more memory pressure than reusing precreated symbols from sympy.abc (which happen 521 times in SymPy itself, hopefully just in test code). We cache symbol creation,

[sympy] GSoC Pull Request Label

2015-05-28 Thread James Crist
Hello GSoC Students (and mentors!), In the next few days/weeks, GSoC pull requests will start coming in. This is really exciting! After the pull requests come in, it's important to start reviewing these in a timely fashion. While each student has a mentor/mentors who will work with them

[sympy] Save matrix to file

2015-05-25 Thread James Tran
Dear all, The matrix in sympy save as dictionary. I want to save a big matrix with size 3x3. Is there any method to save it to hard-disk driver? I tried with numpy but it cannot work. Thank you, -- You received this message because you are subscribed to the Google Groups sympy group.

Re: [sympy] physics/mechanics questions

2016-06-02 Thread James Milam
Theoretically you should be able to transform the results of Lagrange's >> method to those of Kane's. I'm not sure if that procedure is laid out >> anywhere in the literature. But it may have some complications. >> >> The f's are simply vector equations of those variable

  1   2   >