Re: [sympy] Ideas for extending Mul

2010-07-24 Thread Alan Bromborsky
Brian Granger wrote: On Fri, Jul 23, 2010 at 8:30 PM, Ronan Lamy wrote: Le vendredi 23 juillet 2010 à 17:41 -0700, Brian Granger a écrit : On Wed, Jul 21, 2010 at 1:15 PM, Aaron S. Meurer wrote: First off, pragmatically speaking, is there a reason why you need to use the core

Re: [sympy] Re: readthedocs.org

2010-08-22 Thread Alan Bromborsky
Ondrej Certik wrote: On Sat, Aug 21, 2010 at 11:54 PM, Ondrej Certik wrote: On Thu, Aug 19, 2010 at 11:50 AM, Ondrej Certik wrote: Hi, this is an interesting project, where we can host our development docs: http://ericholscher.com/blog/2010/aug/16/announcing-read-docs/ It's a new p

Re: [sympy] PythonCAD sympy integration

2010-09-08 Thread Alan Bromborsky
matteo.bosc...@boscolini.eu wrote: Hi all, I'm working on a project named PythonCAD, that is a 2d cad program written in python using the pyqt interface I use geometry module from sympy to compute the operation between entity.. such intersection ...unit mesure .. I have in my entity class stru

[sympy] Symbolic Determinant Problem

2011-02-17 Thread Alan Bromborsky
I run: from sympy import * (a1,a2,a3,b1,b2,b3) = symbols('a1 a2 a3 b1 b2 b3') AB = Matrix([[a1*b1,a1*b2,a1*b3],[a2*b1,a2*b2,a2*b3],[a3*b1,a3*b2,a3*b3]]) print AB print AB.det() and get: [a1*b1, a1*b2, a1*b3] [a2*b1, a2*b2, a2*b3] [a3*b1, a3*b2, a3*b3] 0 Am I doing something wrong? -- You rec

Re: [sympy] Re: Symbolic Determinant Problem

2011-02-17 Thread Alan Bromborsky
On 02/17/2011 09:49 AM, Julien Rioux wrote: Nothing wrong. The zero determinant follows since the columns of your matrix are linearly dependent. Or am I missing something? -- Julien I goofed. The elements of the determinant I am evaluating are dot products and not the product of scalar symbo

Re: [sympy] General Relativity package based on Sympy

2011-03-08 Thread Alan Bromborsky
On 03/08/2011 01:02 PM, Brian Granger wrote: Alexander, I discovered Sympy just a few months ago, and I'm impressed. I started to develope a General Relativity package based on Sympy at my University. I've already written classes like Christoffel, Geodesic (which computes the geodesic equations

[sympy] GSOC Project

2011-03-18 Thread Alan Bromborsky
A possible suggestion for GSOC would be to looking into incorporating pydx - http://gr.anu.edu.au/svn/people/sdburton/pydx/doc/index.html into sympy. -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegro

Re: [sympy] GSOC Project

2011-03-18 Thread Alan Bromborsky
On 03/18/2011 04:24 PM, Ronan Lamy wrote: Le vendredi 18 mars 2011 à 16:05 -0400, Alan Bromborsky a écrit : A possible suggestion for GSOC would be to looking into incorporating pydx - http://gr.anu.edu.au/svn/people/sdburton/pydx/doc/index.html into sympy. pydx is GPL, so it can'

Re: [sympy] Idea to create stereometry module fro sympy in GSoC 2011

2011-03-20 Thread Alan Bromborsky
want to know your opinion. What do you think about it? Thank you. Hello Alexander. I am Alan Bromborsky and I wrote the geometric algebra module for sympy. With regard to stereometry you might want to google "geometric algebra conformal geometry" and/or look in chapter 10 of "G

Re: [sympy] Re: Symbolic Quantum Computing

2011-03-21 Thread Alan Bromborsky
On 03/21/2011 03:20 PM, Alexandru Gheorghiu wrote: Thank you for your reply! At some level we are making sympy+python a QCL. The core of this is already done and working quite well, but there is a ton left to do. Have you looked at the ideas page: https://github.com/sympy/sympy/wiki/GSoC-2011

Re: [sympy] Re: More GSoC Ideas

2011-03-24 Thread Alan Bromborsky
On 03/24/2011 01:23 PM, Tim Lahey wrote: On 03-24-2011, at 11:18 AM, SherjilOzair wrote: Cool ideas, indeed. Very useful, I'm sure, and quite easy to implement. For the abstract Matrix part, A new constructor-less data-less class AbstractMatrix which inherits class Matrix. This class' objects w

Re: [sympy] Re: Symbolic Matrix Calculations

2011-03-27 Thread Alan Bromborsky
On 03/27/2011 10:23 AM, Vinzent Steinberg wrote: On Mar 27, 4:16 am, Jon W wrote: Thanks for the information so far. Where can I find out more about these advanced simplification functions? http://docs.sympy.org/dev/modules/simplify.html I have checked out the limited Tensor support module,

Re: [sympy] Re: GSoC 2011 - Oleksandr Gituliar

2011-03-29 Thread Alan Bromborsky
On 03/29/2011 06:08 AM, oleksandr gituliar wrote: Dear Mr.Granger, On Mar 28, 10:40 pm, Brian Granger wrote: On Thu, Mar 24, 2011 at 6:41 AM, oleksandr gituliar wrote: On Mar 23, 5:31 pm, Brian Granger wrote: On Wed, Mar 23, 2011 at 12:51 AM, oleksandr gituliar wrote: * For QCD related t

Re: [sympy] Question regarding vectors

2011-05-09 Thread Alan Bromborsky
On 05/09/2011 08:30 PM, Luke wrote: Here is a more explicit example of what Gilbert is talking about: In [1]: from sympy import * In [2]: from pydy import * In [3]: x = symbols('x') In [4]: N = ReferenceFrame('N') In [5]: type(N[1]) Out[5]: pydy.pydy.UnitVector In [9]: test = x*N[1] + x*x*N[2] In

Re: [sympy] Question regarding vectors

2011-05-10 Thread Alan Bromborsky
^b = (a*b-b*a)/2 On 05/09/2011 08:51 PM, Luke wrote: Can the vectors and multivectors in the GA module work with arbitrary sympy expressions? i.e, if v is a GA vector, and s is a sympy expression, does it make sense to do: s*v? Is the result of type Mul or of something else? ~Luke On Mon,

Re: [sympy] Question regarding vectors

2011-05-11 Thread Alan Bromborsky
mplement only the methods that make sense for them, including the __mul__ and __rmul__ methods, as Alan did in his MV class? ~Luke On Tue, May 10, 2011 at 5:44 AM, Alan Bromborsky wrote: The assumption is that the expression multiplying the vector (multivector) is a scalar and the result is a vector. T

Re: [sympy] Re: Who uses SymPy?

2011-05-13 Thread Alan Bromborsky
On 05/13/2011 11:54 AM, Jeremias Yehdegho wrote: On 05/13/2011 02:49 AM, Saptarshi Mandal wrote: The situation in my college is that several people use Matlab/ Mathematica for various reasons and really have no incentive to shift to an open source CAS (except for geek cred) unless it is easier t

Re: [sympy] Re: Who uses SymPy?

2011-05-13 Thread Alan Bromborsky
On 05/13/2011 04:35 PM, Aaron Meurer wrote: On Fri, May 13, 2011 at 10:12 AM, Alan Bromborsky wrote: On 05/13/2011 11:54 AM, Jeremias Yehdegho wrote: On 05/13/2011 02:49 AM, Saptarshi Mandal wrote: The situation in my college is that several people use Matlab/ Mathematica for various reasons

Re: [sympy] Re: Who uses SymPy?

2011-05-16 Thread Alan Bromborsky
) I will have a talk at europython2011 in Florance and of course I will talk about sympy: http://ep2011.europython.eu/conference/talks/developing-a-cad-application-as-hobby Regards, Matteo Il 13/05/2011 23:22, Alan Bromborsky ha scritto: On 05/13/2011 04:35 PM, Aaron Meurer wrote: On Fri,

[sympy] Documentation error

2011-06-12 Thread Alan Bromborsky
Down loaded sympy with "git clone git://github.com/sympy/sympy.git" ran "sudo python setup.py install" and "sudo python setupegg.py install" then cd to doc and ran "make html" and got rm -rf sphinx mkdir -p src/.static mkdir -p _build/html mkdir -p _build/doctrees mkdir -p src/modules PYTHONPAT

Re: [sympy] Documentation error

2011-06-13 Thread Alan Bromborsky
at 3:37 PM, Alan Bromborsky wrote: Down loaded sympy with "git clone git://github.com/sympy/sympy.git" ran "sudo python setup.py install" and "sudo python setupegg.py install" then cd to doc and ran "make html" and got rm -rf sphinx mkdir -p src/.sta

[sympy] Naming funtion

2011-06-16 Thread Alan Bromborsky
I defined a user function by - def dot(x,y): return(sympy.Function('dot')(*(x,y))) I want the _print_Function in str.py to handle this in a special way so I modified it to def _print_Function(self, expr): if expr.func.__name__ == 'dot': return '(%s|%s)' % (expr.args[0]

Re: [sympy] Naming funtion

2011-06-16 Thread Alan Bromborsky
On 06/16/2011 11:18 AM, Ronan Lamy wrote: Le jeudi 16 juin 2011 à 08:34 -0400, Alan Bromborsky a écrit : I defined a user function by - def dot(x,y): return(sympy.Function('dot')(*(x,y))) That's not really a user function in the sympy sense, just an ordinary Python functi

Re: [sympy] Re: Matrix Symbol

2011-06-30 Thread Alan Bromborsky
Differentiation would only work with a scalar (communicative) differentiation operator. If the matrix function is a function of a vector or matrix one would have to define the directional derivative for each case (which would be a scalar differential operator) and use the results of that opera

[sympy] testing code

2011-07-18 Thread Alan Bromborsky
It has been a long time since I did this and I need my memory refreshed. I have a set of tests for the GA module in test_GA.py. How do I only run the tests in that file? I do not remember the command. -- You received this message because you are subscribed to the Google Groups "sympy" group

Re: [sympy] testing code

2011-07-18 Thread Alan Bromborsky
On 07/18/2011 04:26 PM, Tom Bachmann wrote: bin/test sympy/galgebra/tests/test_GA.py (or whatever your path is) should work, I think On 18.07.2011 21:24, Alan Bromborsky wrote: It has been a long time since I did this and I need my memory refreshed. I have a set of tests for the GA module in

Re: [sympy] testing code

2011-07-18 Thread Alan Bromborsky
at 5:03 PM, Alan Bromborsky <mailto:abro...@verizon.net>> wrote: On 07/18/2011 04:26 PM, Tom Bachmann wrote: bin/test sympy/galgebra/tests/test_GA.py (or whatever your path is) should work, I think On 18.07.2011 21:24, Alan Bromborsky wrote: It h

Re: [sympy] testing code

2011-07-19 Thread Alan Bromborsky
at 5:03 PM, Alan Bromborsky <mailto:abro...@verizon.net>> wrote: On 07/18/2011 04:26 PM, Tom Bachmann wrote: bin/test sympy/galgebra/tests/test_GA.py (or whatever your path is) should work, I think On 18.07.2011 21:24, Alan Bromborsky wrote: It h

Re: [sympy] testing code

2011-07-19 Thread Alan Bromborsky
On 07/19/2011 10:48 AM, Vladimir Perić wrote: On Tue, Jul 19, 2011 at 3:14 PM, Alan Bromborsky wrote: On 07/18/2011 06:12 PM, Matthew Rocklin wrote: Test is an executable in the sympy/bin directory. For example I have my sympy directory in my /home/mrocklin/workspace so the test executable

Re: [sympy] public API for the linear algebra module

2011-07-20 Thread Alan Bromborsky
On 07/20/2011 06:32 AM, someone wrote: Hi, For those who've not read my latest blog, I'm working on implementing a new structure for the matrices module of sympy. I faced many decision problems while doing so, like what should be named what and what should be where. Should matrix and linear al

[sympy] mathjax and boldsymbol

2011-07-22 Thread Alan Bromborsky
The following link should be relevant to displaying bold symbols with mathjax - https://khanacademy.kilnhg.com/Repo/Website/Group/stable/File/MathJax/extensions/TeX/boldsymbol.js?rev=1fce1491041f -- You received this message because you are subscribed to the Google Groups "sympy" group. To p

Re: [sympy] mathjax and boldsymbol

2011-07-23 Thread Alan Bromborsky
On 07/23/2011 12:08 AM, Aaron Meurer wrote: The question is, how do we add these Javascript hooks to the Sphinx documentation? Aaron Meurer On Fri, Jul 22, 2011 at 2:00 PM, Alan Bromborsky wrote: The following link should be relevant to displaying bold symbols with mathjax - https

Re: [sympy] Re: Matrix Symbol

2011-08-02 Thread Alan Bromborsky
On 08/02/2011 10:10 AM, Matthew Rocklin wrote: Start of a wiki-page is here if people want to go this route. I put down the things that I think about. https://github.com/sympy/sympy/wiki/Matrix-Expressions I'm also happy to continue the conversation over e-mail. What would be a good next step?

Re: [sympy] sympy for Quantum Field Theory (QFT)

2011-08-04 Thread Alan Bromborsky
On 08/04/2011 08:21 AM, cschwan wrote: Hello! I would like to know if sympy can be used for Quantum Field Theory calculations. In particular, I would like to compute traces of dirac matrices and contract them with four-vectors. For example, the following holds true (latex notation): Tr ( \

[sympy] Matrix question

2011-08-09 Thread Alan Bromborsky
If M is a matrix how does one determine the number of rows and columns in it. I could not find a function to do this in the Matrix class. -- 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

[sympy] Trigsimp

2011-08-09 Thread Alan Bromborsky
Has there been any work to applying trigsimp to hyperbolic trig functions? -- 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

[sympy] New Printer

2011-08-11 Thread Alan Bromborsky
In my extended latex module, "latex_ex", I have written a new method for latex printing of matrices, "_print_Matrix(self, expr)". How do I get the Matrix class to use this method? -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group

[sympy] Assumptions

2011-08-11 Thread Alan Bromborsky
I have a symbol r which should be assumed real and greater than zero. What I want is for sqrt(r*r) to evaluate to r. Can this be currently done in sympy. I am trying to clean up some old code that has a lot of hacks in it (curvilinear coordinates). -- You received this message because you a

Re: [sympy] Assumptions

2011-08-11 Thread Alan Bromborsky
*r) Out[4]: │r│ On Thu, Aug 11, 2011 at 6:01 PM, Alan Bromborsky <mailto:abro...@verizon.net>> wrote: I have a symbol r which should be assumed real and greater than zero. What I want is for sqrt(r*r) to evaluate to r. Can this be currently done in sympy. I am trying to cl

Re: [sympy] Assumptions

2011-08-12 Thread Alan Bromborsky
theta. If you just want to be able to assume that cos is positive, you might be able to substitute it with a positive symbol and then back substitute once the square root is reduced. Aaron Meurer On Thu, Aug 11, 2011 at 5:25 PM, Alan Bromborsky wrote: On 08/11/2011 07:04 PM, Tomo Lazovich wrot

Re: [sympy] Assumptions

2011-08-12 Thread Alan Bromborsky
On 08/12/2011 08:14 PM, Chris Smith wrote: My solution is as follows - def reduce_sqr(expr): args = expr.args if len(args) == 0: return(sqrt(expr)) else: if str(type(expr)) == "": args = expr.args

[sympy] Strange Behavior?

2011-08-20 Thread Alan Bromborsky
>>> from sympy import * >>> x = Symbol('x') >>> type(x) >>> f = Function('f')(*tuple((x,))) >>> f f(x) >>> type(f) f Why does the type of a function only return the name of the function? -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this

Re: [sympy] Strange Behavior?

2011-08-20 Thread Alan Bromborsky
related to how we implement the object, and could change at any time. If you want to get f from f(x), you should use .func. Aaron Meurer On Sat, Aug 20, 2011 at 7:52 AM, Chris Smith wrote: On Sat, Aug 20, 2011 at 7:26 PM, Alan Bromborsky wrote: from sympy import * x = Symbol('x') ty

Re: [sympy] Re: Feynman Lectures Exercise Challenge

2011-11-15 Thread Alan Bromborsky
On 11/15/2011 10:39 PM, Luke wrote: Alan, What approach do you take when you are interested in determining forces of constraint? Using Lagrange's method to obtain the equations of motion is convenient, but I've never explored constraint forces in problems that I've solved using Lagrange's met

Re: [sympy] Re: Feynman Lectures Exercise Challenge

2011-11-16 Thread Alan Bromborsky
On 11/16/2011 04:57 PM, Luke wrote: A very similar solution was proposed on the forum and rejected because he made use of the assumption of \omega_n^2 = sqrt(g/l). Yours doesn't make explicit use of that assumption, so perhaps they would find it acceptable. I personally would not. The problem

[sympy] Testing

2013-01-07 Thread Alan Bromborsky
I am using py.test to check my test scripts. If I introduce multiple errors in the script "my_test.py" and run "py.test my_test.py" it always exits at the first error. Is there a way to check for all assert errors in the script? -- You received this message because you are subscribed to the

Re: [sympy] Testing

2013-01-07 Thread Alan Bromborsky
On 01/07/2013 11:43 AM, Ronan Lamy wrote: Le 07/01/2013 16:07, Alan Bromborsky a écrit : I am using py.test to check my test scripts. If I introduce multiple errors in the script "my_test.py" and run "py.test my_test.py" it always exits at the first error. Is there a

Re: [sympy] Sympy GA module

2013-03-03 Thread Alan Bromborsky
On 03/03/2013 08:07 AM, tsc wrote: I've just found the sympy GA module, and I must say it looks really neat! I'd like to use it for automatic differentiation and equation solving in high-dimensional conformal geometric algebra. While experimenting with the module, I've run into a few problems t

Re: [sympy] Sympy GA module

2013-03-04 Thread Alan Bromborsky
On 03/04/2013 03:41 PM, tsc wrote: Thank you very much for the quick reply and the code! I will start to play around with the new code. > Multivectors do not inherit from sympy symbols so solve does not work. How hard would it be to implement this? Is it only a (possibly difficult, time consum

Re: [sympy] Sympy GA module

2013-03-05 Thread Alan Bromborsky
On 03/05/2013 10:21 AM, tsc wrote: Hi Alan, Could you tell me what is the motivation for the base representation? I had not seen that concept before. In Leo Dorst's book (Geometric Algebra for Computer Science), multivectors are always represented as linear combinations of blades. This works

Re: [sympy] Sympy GA module

2013-03-05 Thread Alan Bromborsky
On 03/05/2013 10:32 AM, Aaron Meurer wrote: On Mar 5, 2013, at 8:21 AM, tsc > wrote: Hi Alan, Could you tell me what is the motivation for the base representation? I had not seen that concept before. In Leo Dorst's book (Geometric Algebra for Computer Science), m

Re: [sympy] Re: Vector Calculus module

2013-03-14 Thread Alan Bromborsky
On 03/14/2013 06:51 AM, someone wrote: Why not a middle ground? For some things it would be silly not to support n dimensions, like dot product, but for others, like cross product, the n-dimensional generalization is more complicated, and (if I understand correctly), not even technically a vector

Re: [sympy] Sympy GA module

2013-03-25 Thread Alan Bromborsky
On 03/08/2013 06:40 PM, Aaron Meurer wrote: On Tue, Mar 5, 2013 at 8:57 AM, Alan Bromborsky wrote: On 03/05/2013 10:32 AM, Aaron Meurer wrote: On Mar 5, 2013, at 8:21 AM, tsc wrote: Hi Alan, Could you tell me what is the motivation for the base representation? I had not seen that concept

[sympy] Rewrite of GA module

2013-03-25 Thread Alan Bromborsky
I have pushed (I think I have) my rewrite of the geometric algebra module to https://github.com/brombo/sympy What next? -- 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

Re: [sympy] Rewrite of GA module

2013-03-25 Thread Alan Bromborsky
On 03/25/2013 08:22 PM, Chris Smith wrote: When you go to https://github.com/brombo/sympy/tree/GA_rewrite is there a Pull Request button that you can press? If so, that will open a PR that we can review. I pushed the button. Did I do right? -- You received this message because you are subscri

[sympy] sympy-bot and GA_rewrite

2013-03-26 Thread Alan Bromborsky
If I am to correct the errors in GA_rewrite how do I run sympy-bot (where is the info on how to use sympy-bot) on my new code? -- 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 em

[sympy] sympy-bot

2013-03-26 Thread Alan Bromborsky
the command - ./sympy-bot review 1397 works, but the local command ./sympy-bot --reference /home/brombo/MathPhysics/sympy review 1397 says that --reference is not a recognized switch. Also is there a way to run sympy-bot that will only test the changes I made. It is testing every module in

Re: [sympy] sympy-bot

2013-03-26 Thread Alan Bromborsky
switches. These will run the tests in both python 2 and 3, and build the docs. Aaron Meurer On Mar 26, 2013, at 1:38 PM, Alan Bromborsky wrote: the command - ./sympy-bot review 1397 works, but the local command ./sympy-bot --reference /home/brombo/MathPhysics/sympy review 1397 says that

[sympy] GA_rewrite

2013-03-28 Thread Alan Bromborsky
The new GA for python 2.7 now passes all tests (the failures sympy-bot reports are in other parts of sympy). The documentation fails because the rst src for GA and for galgebra have function references with the same names. sympy-bot says use the sphinx :noindex: directive. Can this directive

Re: [sympy] GA_rewrite

2013-03-30 Thread Alan Bromborsky
s (that is probably because of the uppercase file names). On Thu, Mar 28, 2013 at 3:56 PM, Alan Bromborsky wrote: The new GA for python 2.7 now passes all tests (the failures sympy-bot reports are in other parts of sympy). The documentation fails because the rst src for GA and for galgebra hav

Re: [sympy] GA_rewrite

2013-03-31 Thread Alan Bromborsky
ow globally messed up the > printers. > > You've also still got junk files that you need to remove. > > Also note the doctest failures (that is probably because of the > uppercase file names). > > On Thu, Mar 28, 2013 at 3:56 PM, Alan Bromb

Re: [sympy] GA_rewrite

2013-03-31 Thread Alan Bromborsky
On 03/31/2013 07:46 AM, Thomas Hisch wrote: git rebase origin/master I did - git fetch origin git rebase origin/master and then when I did - git push github GA_rewrite I got - ! [rejected]GA_rewrite -> GA_rewrite (non-fast-forward) error: failed to push some refs to 'g...@github.co

[sympy] Current Status of GA_rewrite

2013-04-02 Thread Alan Bromborsky
Python 2.5 - Fails tests because I use tuple.index() Python 2.6 - Passes tests Python 2.7 - Passes tests Python 3.2 - Fails tests because I overload __div__ instead of __truediv__ My question is if I modify ga.py in sympy/py3k-sympy/sympy/ga how do I get sympy-bot to use that version for testing

Re: [sympy] Current Status of GA_rewrite

2013-04-02 Thread Alan Bromborsky
On 04/02/2013 12:31 PM, Alan Bromborsky wrote: Python 2.5 - Fails tests because I use tuple.index() Python 2.6 - Passes tests Python 2.7 - Passes tests Python 3.2 - Fails tests because I overload __div__ instead of __truediv__ My question is if I modify ga.py in sympy/py3k-sympy/sympy/ga how

[sympy] Can't Find Failure

2013-04-03 Thread Alan Bromborsky
Ran latest ga_rewrite - http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sYvbNxDA Test report says it failed, but I cannot find failure in test report. I am probably blind, but would someone look and tell me where the failure is? -- You received this message because you are subscribed t

Re: [sympy] Re: Vector Calculus module

2013-04-04 Thread Alan Bromborsky
On 04/04/2013 06:27 AM, Prasoon Shukla wrote: I think I have a fair idea of what the class may behave like. Let's have a vector field like so (an example): *v*(x, y, z) = /f (x, y, z) /*i *+ /g (x, y, z) /*j *+ /h (x, y, z) /*k* * * Just and example in rectangular coordinates using variables x,

Re: [sympy] Re: Vector Calculus module

2013-04-04 Thread Alan Bromborsky
On 04/04/2013 08:05 AM, Alan Bromborsky wrote: On 04/04/2013 06:27 AM, Prasoon Shukla wrote: I think I have a fair idea of what the class may behave like. Let's have a vector field like so (an example): *v*(x, y, z) = /f (x, y, z) /*i *+ /g (x, y, z) /*j *+ /h (x, y, z) /*k* * * Jus

[sympy] Overloading multiplication

2013-04-04 Thread Alan Bromborsky
let e_1,...,e_n bet a set of noncommutative symbols. Consider the sympy expressions - a = a_0+a_1*e_1+...+a_n*e_n b = b_0+b_1*e_1+...+b_n*e_n and you are given a multiplication table for the e_i's in the form of a dictionary mul_table[(e_i,e_j)]. Each entry in the table is a linear combina

Re: [sympy] Overloading multiplication

2013-04-04 Thread Alan Bromborsky
rites products of Adds using this algorithm. Aaron Meurer On Thu, Apr 4, 2013 at 5:12 PM, Alan Bromborsky wrote: let e_1,...,e_n bet a set of noncommutative symbols. Consider the sympy expressions - a = a_0+a_1*e_1+...+a_n*e_n b = b_0+b_1*e_1+...+b_n*e_n and you are given a multiplication

[sympy] Status of GA_rewrite

2013-04-06 Thread Alan Bromborsky
On my system if I blacklist the examples that use pdflatex the sympy-bot tests are passed. If I don't blacklist the examples that use pdflatex the sympy-bot tests fail (there are no docstring tests in the examples), but no errors are shown in the test report. Is there a switch for sympy-bot f

Re: [sympy] Re: Status of GA_rewrite

2013-04-06 Thread Alan Bromborsky
On 04/06/2013 10:23 AM, thomas hisch wrote: Could you run only the doctests - you have to set the testcommand in your bot config file to bin/doctest -v On Saturday, April 6, 2013 3:41:46 PM UTC+2, brombo wrote: On my system if I blacklist the examples that use pdflatex the sympy-bot

Re: [sympy] Re: Status of GA_rewrite

2013-04-06 Thread Alan Bromborsky
On 04/06/2013 11:11 AM, Thomas Hisch wrote: On Sat, Apr 6, 2013 at 4:53 PM, Alan Bromborsky wrote: I did what you suggested (also removed prints from my tests) and sympy-bot fails, but there are no errors in test report. Thats strange. Note that the finished line is missing from the output

Re: [sympy] Re: Status of GA_rewrite

2013-04-06 Thread Alan Bromborsky
On 04/06/2013 11:21 AM, thomas hisch wrote: On Saturday, April 6, 2013 5:13:38 PM UTC+2, brombo wrote: On 04/06/2013 11:11 AM, Thomas Hisch wrote: > On Sat, Apr 6, 2013 at 4:53 PM, Alan Bromborsky > wrote: >> I did what you suggested (also removed prints from my te

Re: [sympy] Re: Status of GA_rewrite

2013-04-06 Thread Alan Bromborsky
On 04/06/2013 12:26 PM, Thomas Hisch wrote: On Sat, Apr 6, 2013 at 6:00 PM, Alan Bromborsky wrote: On 04/06/2013 11:21 AM, thomas hisch wrote: On Saturday, April 6, 2013 5:13:38 PM UTC+2, brombo wrote: On 04/06/2013 11:11 AM, Thomas Hisch wrote: On Sat, Apr 6, 2013 at 4:53 PM, Alan

Re: [sympy] Re: Status of GA_rewrite

2013-04-06 Thread Alan Bromborsky
On 04/06/2013 12:42 PM, Thomas Hisch wrote: Let's continue this discussion on IRC please On Sat, Apr 6, 2013 at 6:40 PM, Alan Bromborsky wrote: On 04/06/2013 12:26 PM, Thomas Hisch wrote: On Sat, Apr 6, 2013 at 6:00 PM, Alan Bromborsky wrote: On 04/06/2013 11:21 AM, thomas hisch

Re: [sympy] Re: Status of GA_rewrite

2013-04-10 Thread Alan Bromborsky
On 04/06/2013 12:42 PM, Thomas Hisch wrote: Let's continue this discussion on IRC please On Sat, Apr 6, 2013 at 6:40 PM, Alan Bromborsky wrote: On 04/06/2013 12:26 PM, Thomas Hisch wrote: On Sat, Apr 6, 2013 at 6:00 PM, Alan Bromborsky wrote: On 04/06/2013 11:21 AM, thomas hisch

Re: [sympy] Re: Status of GA_rewrite

2013-04-10 Thread Alan Bromborsky
On 04/10/2013 03:55 PM, Alan Bromborsky wrote: On 04/10/2013 03:29 PM, Alan Bromborsky wrote: On 04/06/2013 12:42 PM, Thomas Hisch wrote: Let's continue this discussion on IRC please On Sat, Apr 6, 2013 at 6:40 PM, Alan Bromborsky wrote: On 04/06/2013 12:26 PM, Thomas Hisch wrote: O

Re: [sympy] Re: Status of GA_rewrite

2013-04-10 Thread Alan Bromborsky
On 04/10/2013 04:45 PM, Alan Bromborsky wrote: On 04/10/2013 03:55 PM, Alan Bromborsky wrote: On 04/10/2013 03:29 PM, Alan Bromborsky wrote: On 04/06/2013 12:42 PM, Thomas Hisch wrote: Let's continue this discussion on IRC please On Sat, Apr 6, 2013 at 6:40 PM, Alan Bromborsky wrote

[sympy] GA-rewrite Status

2013-04-10 Thread Alan Bromborsky
All tests of python 2.5, 2.6, 2.7, and 3.2 pass. No blacklisting in runtests.py.What next? -- 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...@googl

[sympy] GA_rewrite

2013-04-12 Thread Alan Bromborsky
On 04/12/2013 04:27 AM, Julien Rioux wrote: I never got custom macros to work, therefore I removed them at b44e253 . If you can get the docs to compile with them, then that's fine, but otherwise you will have to s

Re: [sympy] GA_rewrite

2013-04-12 Thread Alan Bromborsky
builds locally (with a make clean first), it is fine. Aaron Meurer On Fri, Apr 12, 2013 at 10:21 AM, Alan Bromborsky <mailto:abro...@verizon.net>> wrote: On 04/12/2013 04:27 AM, Julien Rioux wrote: I never got custom macros to work, therefore I removed them at

Re: [sympy] Re: Vector Calculus module

2013-04-12 Thread Alan Bromborsky
On 04/12/2013 03:53 PM, Prasoon Shukla wrote: So, after spending a couple of days writing the proposal, I've uploaded on to the wiki. https://github.com/sympy/sympy/wiki/GSoC-2013-Application-Prasoon-Shukla:-Vector-Calculus-Module @All community members: Please give it a read. This is the firs

Re: [sympy] GA_rewrite

2013-04-12 Thread Alan Bromborsky
On 04/12/2013 02:01 PM, Alan Bromborsky wrote: On 04/12/2013 12:59 PM, Aaron Meurer wrote: Did you intend to send a response to a GitHub comment to the mailing list? Regarding your question, I think Sphninx is just messed up with sympy-bot. What version of Sphinx do you have (it is printed

Re: [sympy] GA_rewrite

2013-04-13 Thread Alan Bromborsky
looks good. Who else in SymPy knows what is going on in GA? Aaron Meurer On Fri, Apr 12, 2013 at 4:40 PM, Alan Bromborsky <mailto:abro...@verizon.net>> wrote: On 04/12/2013 02:01 PM, Alan Bromborsky wrote: On 04/12/2013 12:59 PM, Aaron Meurer wrote: Did you intend to send a

[sympy] Linear Transformations

2013-04-14 Thread Alan Bromborsky
Let e_i's be non-commutative symbols so a vector is a = a_1*e_1+...a_n*e_n and let L be a linear transformation defined by L(e_i) = b_i1*e_1+...+b_in*e_n Would it be faster to calculate L(a) via matrices or dictionaries - L_dict = {e_1:L(e_1),...,e_n:L(e_n)} L(a) = a.subs(L_dict) For exampl

[sympy] Python sympy question on creating list of functions

2013-04-17 Thread Alan Bromborsky
Consider the following coords = symbols('x,y,z') I wish to contruct the list of functions: [Dx,Dy,Dx] where def Dx(f): return(diff(f,coord[0])) etc. but I want to build the list [Dx,Dy,Dz] with a for loop and not have to do a separate def Dx(f): return(diff(f,coord[0])) def Dy(f

Re: [sympy] Re: [Physics] Gamma matrices bases

2013-04-20 Thread Alan Bromborsky
On 04/20/2013 01:59 PM, Aaron Meurer wrote: On Mon, Apr 15, 2013 at 12:15 PM, Alan Bromborsky wrote: On 04/15/2013 12:10 PM, Julien Rioux wrote: On Sunday, 14 April 2013 11:49:15 UTC-4, F. B. wrote: Hi there! I noticed the function sympy.physics.matrices.mgamma returns Dirac bases for

Re: [sympy] Re: [Physics] Gamma matrices bases

2013-04-20 Thread Alan Bromborsky
On 04/20/2013 02:16 PM, Alan Bromborsky wrote: On 04/20/2013 01:59 PM, Aaron Meurer wrote: On Mon, Apr 15, 2013 at 12:15 PM, Alan Bromborsky wrote: On 04/15/2013 12:10 PM, Julien Rioux wrote: On Sunday, 14 April 2013 11:49:15 UTC-4, F. B. wrote: Hi there! I noticed the function

Re: [sympy] Re: [Physics] Gamma matrices bases

2013-04-20 Thread Alan Bromborsky
On 04/20/2013 02:27 PM, Alan Bromborsky wrote: On 04/20/2013 02:16 PM, Alan Bromborsky wrote: On 04/20/2013 01:59 PM, Aaron Meurer wrote: On Mon, Apr 15, 2013 at 12:15 PM, Alan Bromborsky wrote: On 04/15/2013 12:10 PM, Julien Rioux wrote: On Sunday, 14 April 2013 11:49:15 UTC-4, F. B

Re: [sympy] Matrix Derivatives

2013-04-23 Thread Alan Bromborsky
On 04/23/2013 12:32 AM, Aaron Meurer wrote: Is this the same thing as the matrix derivative described in the matrix cookbook (see https://code.google.com/p/sympy/issues/detail?id=2759)? If so, then the answer is no. Aaron Meurer On Sun, Apr 21, 2013 at 7:28 AM, Saurabh Jha wrote: Hi, I want

[sympy] Custom Printing

2013-04-25 Thread Alan Bromborsky
I have defined a new string printer as follows - from sympy.printing.str import StrPrinter half = Rational(1, 2) class SpecialStrPrinter(StrPrinter): def _print_Function(self, expr): name = expr.func.__name__ args = ", ".join([ self._print(arg) for arg in expr.args ])

[sympy] Conditional substitution and on the fly dictionary creation

2013-04-27 Thread Alan Bromborsky
consider the sympy expressions - a = a_1*e_1+...+a_n*e_n b = b_1*e_1+...+b_n*e_n where the a_i's and the b_i's are commutative sympy expressions and the e_i's are non-commutative symbols and you have a dictionary mul_dict = {e_i*e_j: f(e_i,e_j)} if mul_dict is fully populated then a*b = (a*b

Re: [sympy] Conditional substitution and on the fly dictionary creation

2013-04-27 Thread Alan Bromborsky
On 04/27/2013 12:40 PM, Alan Bromborsky wrote: consider the sympy expressions - a = a_1*e_1+...+a_n*e_n b = b_1*e_1+...+b_n*e_n where the a_i's and the b_i's are commutative sympy expressions and the e_i's are non-commutative symbols and you have a dictionary mul_dict = {e_i

[sympy] auto_update_dict in subs

2013-04-29 Thread Alan Bromborsky
I wrote a class (see below) for a automatically updating dictionary. For example let - def xsq(x): return(x*x) D = auto_update_dict(xsq) D[2] calls xsq and returns 4 call D[2] and xsq is not called since the previous call has called xsq and placed the result in the dictionary. Again 4 i

Re: [sympy] auto_update_dict in subs

2013-04-30 Thread Alan Bromborsky
On 04/29/2013 10:53 PM, Chris Smith wrote: When you give a dictionary the keys are unordered and to be canonical, the keys are sorted. What sort of expression are you wanting to do what type of substitution on? Maybe replace, xreplace or Transform are better matches for what you want to do.

Re: [sympy] auto_update_dict in subs

2013-04-30 Thread Alan Bromborsky
On 04/30/2013 09:26 AM, Chris Smith wrote: How about letting cacheit be your dictionary? (And I don't see how subs was going to be used from what you said.) >>> class aud(object): ... def __init__(self, func): ... self.func = func ... @cacheit ... def __getitem__(self, arg): ...

Re: [sympy] auto_update_dict in subs

2013-04-30 Thread Alan Bromborsky
On 04/30/2013 11:35 AM, Chris Smith wrote: Well, I think it would be an abuse of subs to make it work with your autoupdating dictionary. If I understand mul_dict, it doesn't contain any entries at the start -- it becomes populated as you request ei*ej values. What about using Transform: # a r

Re: [sympy] auto_update_dict in subs

2013-04-30 Thread Alan Bromborsky
On 04/30/2013 11:35 AM, Chris Smith wrote: Well, I think it would be an abuse of subs to make it work with your autoupdating dictionary. If I understand mul_dict, it doesn't contain any entries at the start -- it becomes populated as you request ei*ej values. What about using Transform: # a r

Re: [sympy] auto_update_dict in subs

2013-04-30 Thread Alan Bromborsky
On 04/30/2013 11:35 AM, Chris Smith wrote: Well, I think it would be an abuse of subs to make it work with your autoupdating dictionary. If I understand mul_dict, it doesn't contain any entries at the start -- it becomes populated as you request ei*ej values. What about using Transform: # a r

Re: [sympy] auto_update_dict in subs

2013-04-30 Thread Alan Bromborsky
On 04/30/2013 12:46 PM, Chris Smith wrote: def product_bases(w): nc = w.args_cnc()[1] return len(nc) == 2 or len(nc) == 1 and nc[0].is_Pow and nc[0].exp == 2 but could you have b1**2*b1**2 -> b1**4 in which case the test above would be nc[0].exp.is_Integer and sqrt(nc[0].exp).is_Integ

  1   2   3   4   5   6   7   8   >