[sympy] intersection of Line and Line with Real points (floating point values)

2009-12-03 Thread sebastian
ce the slope of the two lines is different (l1.slope = -3.59147710424874; l2.slope = -1.57379854112001), they do intersect in a point ,but SymPy doesn't seem to compute this point. What am I doing wrong? Thanks, Sebastian -- You received this message because you are subscribed to the Goog

Re: [sympy] sympy subs speed in Monte Carlo

2010-04-28 Thread Sebastian
b: > y = fsympy(x, f, b) is 300 times faster than y = Y.subs({X:x, F:f, > B:b}) and only 10% slower than straightaway y = x/f -b > > So that works but I do not consider it elegant. Something better? > > Take a look into lambdify - it basically does what you proposed without doing the fil

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

2010-04-30 Thread Sebastian
access to that repo. This would simplify the >> workflow in a number of ways: >> >> * Trivial to fork sympy on github. >> * No need for developers to manage multiple remotes if they are >> hosting branches on github. >> * Easy to submit pull requests to trigger co

Re: [sympy] Future plans for pattern matching

2010-05-02 Thread Sebastian
x, v1: 3, u2: y, v2: 5, u3: x, v3: 2}) Then you could look at the returned expression, decide which wilds to substitute and then make an atomic substitution. > > Aaron Meurer > On May 2, 2010, at 10:46 AM, basti wrote: > > Thanks for your comments! If you find anything in the guides hard

Re: [sympy] Future plans for pattern matching

2010-05-03 Thread Sebastian
are some possible solutions I can think of, but I don't like them too much. Maybe some other people can comment on this? > Many of the existing methods are in need of a good cleanup. I think you > should start with this. It'll simplify further work on the subject and > you'll

Re: [sympy] partial derivatives, please explain

2010-05-04 Thread Sebastian
had thought that DY.doin() would work but that gives > "raise AttributeError()". > First, the name of the method is doit. Second, DY is a python tuple which doesn't have this method. > So there is obviously something I do not understand, please some help > Janwillem > > Seb

[sympy] Re: Future plans for pattern matching

2010-05-04 Thread Sebastian
ull it and build the documentation or just view it online (without nice formatation) on: http://github.com/bastikr/sympy/blob/hints/doc/src/modules/hinting.txt What do you think? Would this be an acceptable way to do it? Sebastian On May 4, 4:12 am, smichr wrote: > Sebastian wrote: > > (1

Re: [sympy] Future plans for pattern matching

2010-05-04 Thread Sebastian
On 05/04/2010 05:08 PM, Ronan Lamy wrote: > Le lundi 03 mai 2010 à 22:11 +0200, Sebastian a écrit : > >> Thanks for all your comments, it's very helpful to get so thorough feedback. >> >> On 05/03/2010 06:21 PM, Ronan Lamy wrote: >> >>> Le diman

Re: [sympy] Future plans for pattern matching

2010-05-04 Thread Sebastian
> Substitution > > > I think that structural substitution should be a separate function, not > just a subroutine handling a special case in subs. This would be useful > for common subexpression elimination, at least. > > What do you under

[sympy] Speedup atomic substitution

2010-05-05 Thread Sebastian
l try to polish everything a little bit so that it can be included into sympy as fast as possible... Sebastian === First line: expression, pattern; Second line: Runtime old code; Third Line: Runtime new code Caching of the substitution functions is turned off.

Re: [sympy] Re: Future plans for pattern matching

2010-05-07 Thread Sebastian
ger default values for other hints. But maybe to set all keywords at once to the same value might not for all cases where hints are needed be a good choice. > After doing this, I wonder if the keyword manager for running scripts > might be enlisted to handle some of this...I never looked into

Re: [sympy] Re: Future plans for pattern matching

2010-05-07 Thread Sebastian
o in the HintManager). > This is a good idea - to have hints which can set default values for other hints. It would already be possible to simply subclass the HintManager and implement such logic, but I think this really deserves some special treatment directly inside the HintManager. I'll

Re: [sympy] Re: Future plans for pattern matching

2010-05-07 Thread Sebastian
On 05/07/2010 11:31 PM, Aaron S. Meurer wrote: > On May 7, 2010, at 2:44 PM, Sebastian wrote: > > >> On 05/07/2010 02:57 PM, smichr wrote: >> >>>> Of Chris's stuff, I like some of the shortcuts he has implemented that >>>> reduce typing fo

[sympy] Re: Future plans for pattern matching

2010-05-13 Thread Sebastian
hings much faster. I won't have much time this weekend, but if you have questions regarding substitution and pattern matching I'll try to answer them as good as I can... Sebastian -- You received this message because you are subscribed to the Google Groups "sympy" group. To

Re: Reinteract + Sympy == Better interactive Python CAS

2008-02-01 Thread Sebastian
Hi Suray, I did know of your project, but have not tried it out yet. Nevertheless, it looks very amazing, as far as I can tell from just reading through the description. > If we could create a mathml visualizer for Reinteract, we will > have a good looking shell. I havn't found a good mathml

Re: Google Summer of Code Application

2008-03-31 Thread Sebastian
Hi Philipp, Last summer I started a project that seems to be very similar to what you are describing. http://code.google.com/p/symbide/ Although it has some limitations, I think the basis is pretty well written. It supports sympy (e.g. you don't have to define numbers and variables explicitly),

[sympy] Re: Geometric Algebra Module

2008-08-27 Thread Sebastian
hg push http://freehg.sympy.org/u/brombo/sympy. Hope this helps, Sebastian --~--~-~--~~~---~--~~ 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 unsubs

[sympy] Re: More git and sympy ?'s

2008-11-09 Thread Sebastian
> My git clone has as its origin this: git://github.com/certik/sympy > Use git://git.sympy.org/sympy Sebastian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this grou

[sympy] Re: Sympy scripting and inputting functions

2008-11-23 Thread Sebastian
u might want to do the following: >> f = lambdify(s, der) (For more information on lambdify read it's docstring) Now you can compute the numerical value of the derivative easily: >> f(1) 2.0 >> f(2) 2.6302769476946342 Hope this helps, Sebastian --~--~-~--~~

[sympy] Re: Substitution order

2009-05-20 Thread Sebastian
er be fixed in sympy anyway. Sebastian Pablo W. wrote: > Hello, > > I have been using sympy a lot recently (economical modelling) and > (while it's a great software) I found a strange behavior when doing > substitution : it is not respecting operators priority. I thin

[sympy] Re: Function vs. Symbol

2009-05-28 Thread Sebastian
Just go through the printers implemented in the printing directory. Especially printer.py is useful and for some full implementation examples you can go through str.py and repr.py. I hope this helps, Sebastian --~--~-~--~~~---~--~~ You received this message bec

[sympy] Re: Function vs. Symbol

2009-05-28 Thread Sebastian
Luke wrote: > Sebastian, > Thanks for the reply. I have read printer.py, str.py, and repr.py, > and am still confused as to how to properly customize Sympy's printing > system. > > Suppose I want to put the _print_myclass(self, e) code into my > subclass of StrPrint

[sympy] Re: Function vs. Symbol

2009-05-28 Thread Sebastian
Luke wrote: > Sebastian, > Thanks again for the responses, I really appreciate it. I was a > little confused in your second example, see below. > > On May 28, 5:17 pm, Sebastian wrote: >> Luke wrote: >>> Sebastian, >>> Thanks for the reply. I ha

[sympy] Re: Function vs. Symbol

2009-05-28 Thread Sebastian
Luke wrote: > Ok, thanks. > > Any ideas regarding the xsym("*") error? Not really, I don't even know where this xsym comes from and what it does, but maybe you are printing unicode to a non-unicode terminal? Sebastian --~--~-~--~~~---~--

[sympy] set_main() function in Geometric Algebra Module

2009-07-17 Thread Sebastian Haase
) in the respective scope... What do you think ? (Also: the use of "from sympy.galgebra.GA import *" is discouraged -- could it be changed to "from sympy.galgebra import GA" !?) Regards, Sebastian Haase --~--~-~--~~~---~--~~ You received this

[sympy] magic squares

2009-07-27 Thread Sebastian Haase
t conform to "good style", e.g >>> magic_square.ismagic(None) NotImplemented > there is lots of special code related to "None" handling, and some questionable use global variables >>> magic_square.magic(2) TypeError: No such magic square

[sympy] Re: magic squares

2009-07-28 Thread Sebastian Haase
any suggestion, where it would fit into the sympy "tree" ? - Sebastian On Mon, Jul 27, 2009 at 7:25 PM, Ondrej Certik wrote: > > Hi Sebastian! > > On Mon, Jul 27, 2009 at 6:57 AM, Sebastian Haase wrote: >> >> Hi, >> >> would it "conceptually&q

[sympy] Re: codenode 0.1 has been released!

2009-09-01 Thread Sebastian Haase
Hi Alex, looks really very nice. What is the recommend, i.e. quickest way to show off some nice (unicode) math term and some graph plots ? I thinking of some 1-3 lines just wet the appetite ... Regards, Sebastian Haase On Tue, Sep 1, 2009 at 2:19 PM, Neal Becker wrote: > > Ah,

[sympy] Re: if not import * then what?

2009-11-12 Thread Sebastian Haase
seem bad choices for me ... My two cents, Sebastian Haase On Thu, Nov 12, 2009 at 3:24 PM, smichr wrote: > > I'm just looking for some feedback about what is useful to see in the > documentation. I've finished making all imports explicit in the *py > files and am w

Re: [sympy] [Ann] SymPy 0.6.6 released

2009-12-21 Thread Sebastian Haase
mpy installs into the bin directory (besides isympy): ~/sebPy/bin/test ~/sebPy/bin/doctest Are those quite "generic" names for a (global) bin directory !? Regards, Sebastian Haase On Sun, Dec 20, 2009 at 10:56 PM, Vinzent Steinberg wrote: > Hi all, > > we just released a new ve

Re: [sympy] Re: [Ann] SymPy 0.6.6 released

2009-12-21 Thread Sebastian Haase
On Mon, Dec 21, 2009 at 5:04 PM, Vinzent Steinberg wrote: > On Dec 21, 10:04 am, Sebastian Haase wrote: >> Hi, >> Congratulations to the new release! >> >> After a quick setup.py install on my amd64 Debian I have a few >> comments - found maybe a bug: >&

Re: [sympy] conversion units

2010-06-17 Thread Sebastian Haase
er method to get it ? > - > > Matteo, I would do it like this: > >>>> from sympy.physics import units as u >>>> u.feet/u.mm > 1524/5 >>>> _.n() > 304.8000 > ok, let's keep hijacking... just out of curiosity - how did

Re: [sympy] conversion units

2010-06-17 Thread Sebastian Haase
On Thu, Jun 17, 2010 at 12:35 PM, Matteo Boscolo wrote: >>just out of curiosity - how did you get all those trailing zeros ? > From  the python schell .. > May be the printed velue was > 304.80001 > I just make a mistake in copy paste .. ;-) > > Regards, > Matteo Now I'm relieved ;-) Thank

Re: [sympy] Re: conversion units

2010-06-17 Thread Sebastian Haase
On Thu, Jun 17, 2010 at 2:33 PM, smichr wrote: >> Now I'm relieved ;-) Thanks.   BTW: I just learned that the new Python >> 3000 (py3k) will change this "ugly" float printing feature (repr(1.1) >> is then "1.1" not "1.1000...0002") -- finally >> -S. > > Are they changing the feature or changin

[sympy] geometry API doc

2010-09-06 Thread Sebastian Haase
ation ? Thanks, Sebastian Haase -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options,

Re: [sympy] geometry API doc

2010-09-07 Thread Sebastian Haase
rchive.com/sage-de...@googlegroups.com/msg08112.html ((I guess the current page at that URL has nothing to do with pydoctor anymore - does it ? )) ) Cheer, Sebastian On Mon, Sep 6, 2010 at 7:22 PM, Aaron S. Meurer wrote: > I think whoever wrote that was planning in importing the class/function

Re: [sympy] geometry API doc

2010-09-07 Thread Sebastian Haase
gets generated automatically from all source code doc strings, it might be a feasible addition to the sphinx documentation (until that's complete)... My 2 euro cents. - Sebastian -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to t

Re: [sympy] geometry API doc

2010-09-08 Thread Sebastian Haase
On Tue, Sep 7, 2010 at 11:04 PM, Aaron S. Meurer wrote: > On Sep 7, 2010, at 12:41 PM, Sebastian Haase wrote: > >> On Tue, Sep 7, 2010 at 8:10 PM, Ondrej Certik wrote: >>> On Tue, Sep 7, 2010 at 8:42 AM, Aaron S. Meurer wrote: >>>> I never knew about that.  

[sympy] state of SymPy

2011-01-04 Thread Sebastian Haase
cer ? Obviously, (I think) Mathematica's notebook is unsurpassed - but I guess, for that one could use Sage ... Thanks, Sebastian Haase -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@googleg

Re: [sympy] state of SymPy

2011-01-05 Thread Sebastian Haase
you still often find yourself double checking results in Maple / Mathematica... ? ) Thanks again, Sebastian On Wed, Jan 5, 2011 at 9:12 AM, Ondrej Certik wrote: > On Wed, Jan 5, 2011 at 12:40 AM, Aaron S. Meurer wrote: >> Hi! >> >> This is an interesting question.  I t

Re: [sympy] state of SymPy

2011-01-05 Thread Sebastian Haase
On Wed, Jan 5, 2011 at 11:30 AM, Ondrej Certik wrote: > On Wed, Jan 5, 2011 at 10:23 AM, Sebastian Haase wrote: >> Thanks for the extensive answer. My friend is doing symbolic analysis so far. >> >> Maybe one more question: >> Who here on the list is using others CASs

Re: [sympy] Changing the default printing order to lex (or grlex or grevlex)

2011-01-06 Thread Sebastian Haase
t > issue 2138, which should also be easy), because the options are already > there.  So I would like to do this before the release, if people want to do > it. > > Aaron Meurer > > Is it possible to keep the default order for series, and change it for polys ? Meaning: to intro

Re: [sympy] Re: moving the wiki to github

2011-02-08 Thread Sebastian Haase
t; > http://wiki.sympy.org > > If so, I will go ahead and do it. I will then see whether there is > some way to redirect wiki.sympy.org to the github page. > > Ondrej > Is there a way to get the left side menu-like links back to the new wiki. E.g. , I don't find any do

Re: [sympy] Re: moving the wiki to github

2011-02-08 Thread Sebastian Haase
On Tue, Feb 8, 2011 at 10:03 AM, Ondrej Certik wrote: > On Tue, Feb 8, 2011 at 12:23 AM, Sebastian Haase wrote: >> On Tue, Feb 8, 2011 at 9:10 AM, Ondrej Certik wrote: >>> On Mon, Feb 7, 2011 at 10:47 PM, Ondrej Certik wrote: >>>> Hi, >>>> >&

Re: [sympy] Re: moving the wiki to github

2011-02-10 Thread Sebastian Haase
Is it possible to keep somehow redirect while having wiki.sympy.org showing up in the browser's address bar ? It would look much nicer ... more professional ... Regards, Sebastian Haase On Thu, Feb 10, 2011 at 7:25 PM, Ondrej Certik wrote: > On Wed, Feb 9, 2011 at 4:34 PM, Ondre

Re: [sympy] Re: SymPy's mission

2011-05-03 Thread Sebastian Haase
would this relate to - say - the sage community then ? -Sebastian -- 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 from this group, send email to sympy+unsubscr...@goo

Re: [sympy] zoo*zoo == nan

2012-02-25 Thread Sebastian Haase
what is zoo anyway - I was not able to find anything - even on google -Sebastian PS: sorry for beeing OT On Sat, Feb 25, 2012 at 10:16 AM, Aaron Meurer wrote: > Why is zoo*zoo nan? > > In [71]: zoo*zoo > Out[71]: nan > > It seems to me that the result should just

Re: sympy on Windows: 1. broken from wx-PyShell 2. 100% CPU w/ plot

2008-03-23 Thread Sebastian Haase
in proofing your code for true-division (Python 3000). It sure would make sense for a math package like sympy ;-) Thanks for the quick reply -- I will go and get the new pyglet 1.1. I suppose I can do a drop-in replacement into C:\Python25\Lib\site-packages\sympy\thirdparty\pyglet\pyglet Thanks

Re: sympy on Windows: 1. broken from wx-PyShell 2. 100% CPU w/ plot

2008-03-24 Thread Sebastian Haase
hat it's worth, I found a handful problems in PIL (which were easy to fix, yet I did not feed those back upstream). In summary, I see this as a challenge ;-) -Sebastian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: sympy on Windows: 1. broken from wx-PyShell 2. 100% CPU w/ plot

2008-03-29 Thread Sebastian Haase
On Tue, Mar 25, 2008 at 11:54 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > > On Mon, Mar 24, 2008 at 9:50 AM, Sebastian Haase <[EMAIL PROTECTED]> wrote: > > > > On Sun, Mar 23, 2008 at 10:50 PM, Ryan James <[EMAIL PROTECTED]> wrote: > > > > &

Re: Google Summer of Code Application

2008-03-31 Thread Sebastian Haase
very well developped platform and comes with a super helpful community. Many SciPy tools (e.g. the new MayaVi2) are build around wxPython. Thanks for writing free code, Sebastian Haase On Mon, Mar 31, 2008 at 12:58 PM, PhilippStrack <[EMAIL PROTECTED]> wrote: > > Hello, > >

Re: wildcard symbols

2008-04-01 Thread Sebastian Haase
ctive shell. Like this: >>> 1.4*1024 1433.6 >>> _/180 7.964 >>> _ 7.964 I do see however that "_" would be nice for your porpuse --- is there maybe some other sign (i.e. valid var name) that could be used instead !? [[ Python 3.0 will support unico

[sympy] Re: replace distutils with setuptools

2008-06-10 Thread Sebastian Haase
n community. It seems impossible: python.org does not seem to mention it at all --except PEP 365 -- Adding the pkg_resources module-- which was rejected and PEP 361 -- Python 2.6 and 3.0 Release Schedule --which makes it sound like it is already in Python 2.5 What is the current state ? Are &q

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

2008-11-16 Thread Sebastian Haase
t; to it that I often thought would be preferable. Could someone please summarize (again) the risks and/or disadvantages of LGPL from a COMPANY POINT OF VIEW !? Or, in other words, who would be thrown off by LGPL ? Thanks, Sebastian Haase --~--~-~--~~~---~--~~ Yo

[sympy] Re: Unicode pretty-print under Windows

2009-06-03 Thread Sebastian Haase
l ? And it handles unicode ?? That would be really nice... -- Sebastian Haase --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroup

[sympy] Re: Unicode pretty-print under Windows

2009-06-03 Thread Sebastian Haase
On Wed, Jun 3, 2009 at 9:36 PM, Gael Varoquaux wrote: > > On Wed, Jun 03, 2009 at 09:33:48PM +0200, Sebastian Haase wrote: >> This is very interesting to hear !  Is it built on top of the wx wxPyShell ? > > No. The architecture of that thing is less than ideal. It is built on

[sympy] Fwd: [SciPy-user] prime factorization...

2009-06-21 Thread Sebastian Haase
, so how about the factorization part !? Regards, Sebastian Haase PS: hope to see some of you in Leipzig this year [SciPy-user] prime factorization... > Hi all, > Is there any function in scipy that gives the prime factorization? > ie 50 -> [5, 5, 2]? > TIA > Cheers, > > --

[sympy] Re: solution to exp(x*(x-3))-2*(x-1)*(x-2)=0

2009-06-24 Thread Sebastian Haase
be solved for in an essentially non-algebraic way. HTH, Sebastian Haase --~--~-~--~~~---~--~~ 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 fro

[sympy] solving for Euler angles

2019-12-11 Thread Sebastian Luque
Hello, I'm learning Sympy and trying to replicate a solution for the Euler pitch and roll angles as described in a well-known Application Note: https://cache.freescale.com/files/sensors/doc/app_note/AN3461.pdf In particular, Equations 24 through 26. Here's the set up matching the reference fram

[sympy] TypeError using sympy.stats.P

2015-03-19 Thread Sebastian Koslowski
Can somebody explain this behavior? Or is this a bug? Thanks, Sebastian First run: Python 3.3.2 (default, Dec 4 2014, 12:49:00) Type "copyright", "credits" or "license" for more information. IPython 2.3.1 -- An enhanced Interactive Python. ? -> Introduction

Re: [sympy] TypeError using sympy.stats.P

2015-03-24 Thread Sebastian Koslowski
On Thursday, March 19, 2015 at 6:02:46 PM UTC+1, Joachim Durchholz wrote: > > > One cause of random behaviour is built right into Python. > Set the environment variable PYTHONHASHSEED to an integer when starting > SymPy, and this source of randomness is eliminated and you'll get > repeatable b

Re: [sympy] TypeError using sympy.stats.P

2015-03-24 Thread Sebastian Koslowski
kages/sympy/core/relational.py in __nonzero__(self) 101 102 def __nonzero__(self): --> 103 raise TypeError("cannot determine truth value of\n%s" % self) 104 105 __bool__ = __nonzero__ TypeError: cannot determine truth value of -oo < -inf On Tue, M

Re: [sympy] TypeError using sympy.stats.P

2015-03-24 Thread Sebastian Koslowski
On Tue, Mar 24, 2015 at 1:13 PM, Francesco Bonazzi wrote: > > Try this: > > res = P(N0 <= 1.1001, evaluate=Fales) > res.doit() > > and see whether the exception is raised by the first or the second step. > It is raised by the first step. -- You received this message because you are subscribed

Re: [sympy] TypeError using sympy.stats.P

2015-03-25 Thread Sebastian Koslowski
This fixes it for me: https://github.com/sympy/sympy/pull/9199 -- 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. To post to this grou

[sympy] factoring matrix

2017-02-15 Thread Sebastian Luque
Hello, I'm trying to work out the derivation of the relationship between Euler angle rates in terms of Euler angles and angular rates in body frame (e.g. http://dma.ing.uniroma1.it/users/lss_da/MATERIALE/Textbook.pdf section 1.2.2). I have developed this for the so-called "Tait-Bryant" rotation a

Re: [sympy] factoring matrix

2017-02-15 Thread Sebastian Luque
Brilliant! Thank you. On Wednesday, February 15, 2017 at 3:35:24 PM UTC-6, Jason Moore wrote: > > If you take the Jacobian with respect to your b vector I think you should > get A. > > > Jason > moorepants.info > +01 530-601-9791 > > On Wed, Feb 15, 2017 at 1:1

[sympy] latex print system of equations

2017-02-17 Thread Sebastian Luque
Hello, I cannot find the proper sympy incantation so that the following system of equations (sy is my alias for sympy: >>> sy.Eq(omega_e, euler_rates, evaluate=False) Eq(Matrix([ [ \dot\phi], [\dot\theta], [ \dot\psi]]), Matrix([ [\omega_x + \omega_y*sin(\phi)*tan(\theta) + \omega_z*cos(\phi)*

[sympy] Looking for reviewers: Update of German SymPy webpage

2022-01-13 Thread Sebastian Ehlert
1] and are now looking for German speakers eager to review the new translations [2]. I translated most of the text blocks, except for the funding page and some unclear formulations. Feedback is welcome. All the best Sebastian (@awvwgk) [1]: https://www.sympy.org/de/index.html [2]: https://github