Re: [sympy] Intro and Potential GSOC Project Ideas

2023-03-29 Thread Alan Bromborsky
Especially with regard to mechanics how many problems could be solved with piecewise functions on a fixed grid? On 3/29/23 5:46 AM, Peter Stahlecker wrote: Dear Jason, Thanks! I think, I got the idea. Peter On Wed 29. Mar 2023 at 11:33 Jason Moore wrote: The old are what I just showed

Re: [sympy] Parsing/Codegen GSoC Project

2023-03-28 Thread Alan Bromborsky
If you are interested in codegen for different languages you might look at Asymptote Code as a target - https://asymptote.sourceforge.io/ The coding language is close to C/C++.  Look at the galleries to see what you can plot (output can be eps, pdf, webgl, html, etc.).  Here is my favorite -

Re: [sympy] Re: C Code Generator

2023-03-23 Thread Alan Bromborsky
Since people have been introducing themselves I thought I would do the same.  My name is Alan Bromborsky and I am an old fart, 76, and have been coding since the early 70's.  I graduated from the Newark College of Engineering (now the New Jersey Institute of Technology) in 1968 with a B.S.E.E

Re: [sympy] Self Introductory and Gröebner Bases

2023-03-22 Thread Alan Bromborsky
Back in the 60's when I was taking German in high school the books still used the Eszett symbol.  Also remember Stan Freberg's skit on the Delcaration of Independence and the purfuit of happiness (Jefferson's fancy spelling using an Eszett letter). On 3/22/23 7:37 PM, Aaron Meurer wrote: The

Re: [sympy] Re: problem trying to solve an equation

2023-03-21 Thread Alan Bromborsky
Do you have the equations written out in LaTeX so I could understand the system better? On 3/21/23 10:25 AM, emanuel.c...@gmail.com wrote: I have a couple problems with this “answer”, which roughly replace the transcendental function calls (which are indeed bijections) with symbols and

Re: [sympy] Evaluating integral in manual inverse fourier transform

2023-02-14 Thread Alan Bromborsky
Thank you for your comment.  In my write up I am proselytizing two things.  Firstly, the Asymptote software package makes really nice plots (I will attach the code I wrote to this email). Secondly, the difference between the FFT (inverse FFT) and the Fourier transform (inverse Fourier

Re: [sympy] Evaluating integral in manual inverse fourier transform

2023-02-10 Thread Alan Bromborsky
In your numerical solution your integration statement (I am not familiar with Maple or is this sympy where "import sympy as sp" is used) is - solution_numeric = 1 / sp.pi * sp.integrate(sp.re (solution_in_frequency_domain_numeric*sp.exp(sp.I*2*phi*t)),(phi,0,4)) Does that

Re: [sympy] Evaluating integral in manual inverse fourier transform

2023-02-10 Thread Alan Bromborsky
I will make sure I translated you code to the correct fromula. On 2/10/23 11:32 AM, 'Tom van Woudenberg' via sympy wrote: This is the result in Python (same as in Maple): downloaden (5).png Op vrijdag 10 februari 2023 om 17:31:50 UTC+1 schreef Tom van Woudenberg: Hi Brombo, Thank you

Re: [sympy] Evaluating integral in manual inverse fourier transform

2023-02-08 Thread Alan Bromborsky
I think what I have done is correct up to the point of taking the convolution product.  Both G(t) and H(t) are piecewise functions. You have to be super careful when convolving them.  I think that is where I messed up.  I am working on a sympy class to convolve piecewise functions.  Currently

Re: [sympy] Evaluating integral in manual inverse fourier transform

2023-02-08 Thread Alan Bromborsky
Is the plot shown here a numerical integration of your entire function or is it a plot of my H(t)?  I am going to redo the convolution using a package for convolution of piecewise functions I wrote for sympy.  I love doing this sort of stuff in my retirement. On 2/8/23 4:24 AM, 'Tom van

Re: [sympy] Evaluating integral in manual inverse fourier transform

2023-02-06 Thread Alan Bromborsky
You can use residues but I made a mistake.  You have to do a partial fraction decomposition of the reciprocal quadratic factor.  Then both poles of your integrand lie in the lower half plane so that the inverse transform is zero for t<0.  For t>0 you have calculate the residue of each

Re: [sympy] Evaluating integral in manual inverse fourier transform

2023-02-06 Thread Alan Bromborsky
Also note if you use the residue theorem there is a different path depending on whether t>0 or t<0.  This means when you calculate the residue you only use one pole (phi+ or phi-) depending on the path.  The path chosen makes sure that the part of it not on the real axis does not contribute to

Re: [sympy] Writing new backend for pyglet module.

2023-02-02 Thread Alan Bromborsky
If you are going to improve plotting please consider an interface to Asymptote - https://asymptote.sourceforge.io/ On 2/2/23 4:51 PM, Aaron Meurer wrote: I didn't realize that idea was on there. I don't know if it's that important to get pyglet working. There are better plotting backends that

Re: [sympy] Regarding contributing to sympy

2023-02-02 Thread Alan Bromborsky
You might find the following software of interest.  It depends on sympy to extend linear algebra - https://galgebra.readthedocs.io/en/latest/ On 2/2/23 9:57 AM, 'Sandeep Chaubey 4-Year B.Tech. Chemical Engineering' via sympy wrote: Hi everyone, this is  Sandeep here, I am a 2nd  year student

Re: [sympy] curvilinear coordinates

2022-12-24 Thread Alan Bromborsky
The following code may be useful - def square_root_of_expr(expr):     """     If expression is product of even powers then every power is divided     by two and the product is returned.  If some terms in product are     not even powers the sqrt of the absolute value of the expression is    

Re: [sympy] Dataclasses for symbolic computation

2022-12-19 Thread Alan Bromborsky
Many of the sympy algorithms could be parallelized using parallel python.  That could lead to major speed improvements.  The computer I am writing this on has a Ryzen 9 5900x cpu with 12 cores and 24 threads.  I think that 4 cores and 8 threads is very common these days. On 12/19/22 8:58 AM,

Re: [sympy] Re: solve doesn't return when solving a simultaneous equation

2022-08-08 Thread Alan Bromborsky
It is not hard to write a closed form solution in terms of sine, cosine and the lengths of Q1, Q2, and the distance of the pivot point from the origin assuming the initial rotation angle is zero (makes it simpler).  Is there any reason to object to that solution letting sympy do the messy

Re: [sympy] Re: solve doesn't return when solving a simultaneous equation

2022-08-06 Thread Alan Bromborsky
Do you have a write up to go with the picture so I can understand exactly what are the inputs to the problem and what you are trying to solve for (I am less clear on the input parameters than what you are solving for).  There may be a way of using 2D conformal geometric algebra to solve the

Re: [sympy] CZI Grant Developer Hired: Dr. Sam Brockie

2022-07-06 Thread Alan Bromborsky
  I don't know if the following is applicable to your program but you might want to take a look at it - https://www.sciencedirect.com/science/article/abs/pii/S0094114X16304621 One of the leading researchers for this type of application is Leo Dorst https://staff.fnwi.uva.nl/l.dorst/ at the

Re: [sympy] Re: Sympy to Numerical

2022-05-24 Thread Alan Bromborsky
If you need publication quality plots look at Asymptote - https://asymptote.sourceforge.io/ The only drawback to Asymptote is that it has it's own scripting language.  Look at the galleries of examples which also show the scripts used.  My favorite examples is -

Re: [sympy] Keeping expressions short and concise

2022-04-19 Thread Alan Bromborsky
to work with total differentials and do integrations on expressions containing infinitesimals in the Leibniz style notation. Jonathan On Apr 19, 2022, at 10:24 AM, Alan Bromborsky wrote: CAUTION:This email originated from outside of the organization. Do not click links or open attachments

Re: [sympy] Keeping expressions short and concise

2022-04-19 Thread Alan Bromborsky
s one (you can zoom, rotate, and translate it interactively) - https://asymptote.sourceforge.io/gallery/3Dwebgl/Klein.html On 4/19/22 1:48 PM, Jonathan Gutow wrote: On Apr 19, 2022, at 12:20 PM, Alan Bromborsky wrote: I don't think sympy can return f for the integral of (df/

Re: [sympy] Keeping expressions short and concise

2022-04-19 Thread Alan Bromborsky
the sympy definition of functions. It might be worth comparing notes. I would really like to be able to work with total differentials and do integrations on expressions containing infinitesimals in the Leibniz style notation. Jonathan On Apr 19, 2022, at 10:24 AM, Alan Bromborsky wrote

Re: [sympy] Faster symbolics

2022-04-19 Thread Alan Bromborsky
For speed up how about parallel processing?  Looking at Ryzen processors 16 cores and 32 threads are quite affordable these days.  Is parallel python mature code these days? On 4/18/22 11:45 PM, Ondřej Čertík wrote: Hi, I am CCing the symengine list also. Let me say a few words about the

Re: [sympy] GSoC 2022: Linear Algebra

2022-04-13 Thread Alan Bromborsky
If you are interested in linear algebra you might find the following book and link interesting - https://smile.amazon.com/Linear-Geometric-Algebra-Alan-Macdonald/dp/1453854932/ref=sr_1_1?crid=386O85ZQLUMEZ=alan+macdonald+linear+algebra=1649881349=alan+mac+donald+linear+algebra%2Caps%2C35=8-1

Re: [sympy] GSoC Introduction & question

2022-04-07 Thread Alan Bromborsky
If you have an interest in quaternions you might find the following link of interest - https://galgebra.readthedocs.io/en/latest/ and the following mechanics book -

Re: [sympy] Re: SymPy vector error

2022-03-30 Thread Alan Bromborsky
If you are interested in manipulating vectors the following package built using sympy might be of interest - https://galgebra.readthedocs.io/en/latest/ especially the way that the different products and derivatives are implemented (the gradient of a scalar function f is simply grad*f and the

Re: [sympy] Sympy.physics.mechanics / dynamicsymbols

2022-02-14 Thread Alan Bromborsky
For the people developing and maintaining the mechanics modules, you may want to look at the following book which treats mechanics problems with some new methods.  Describing rotations is greatly simplified - https://link.springer.com/book/10.1007/0-306-47122-1 On 2/14/22 12:40 PM, Peter

Re: [sympy] Re: scientific notation in pretty print and latex

2022-02-08 Thread Alan Bromborsky
If you are using vectors you may want to look at galgebra (built on top of sympy ) - https://galgebra.readthedocs.io/en/latest/ It can be used simply as a regular vector algebra/calculus library. On 2/8/22 11:18 AM, Rajeev Singh wrote: Thanks Jonathan, I guess I will stick with my approach

Re: [sympy] Re: Plotting

2021-11-11 Thread Alan Bromborsky
in Springer books. I feel it produces superior results. Am Do., 11. Nov. 2021 um 14:02 Uhr schrieb Alan Bromborsky mailto:abrombo...@gmail.com>>: FYI attached is a figure I generated with Asymptote for a Foucault pendulum. On 11/11/21 7:58 AM, gu...@uwosh.edu <mailto:gu...@uwosh.e

Re: [sympy] Re: Plotting

2021-11-11 Thread Alan Bromborsky
FYI attached is a figure I generated with Asymptote for a Foucault pendulum. On 11/11/21 7:58 AM, gu...@uwosh.edu wrote: Both plotly and k3d support rendered LaTex for labels, text, etc. Some pages with very simple examples for Plotly: https://plotly.com/python/LaTeX/ K3D:

Re: [sympy] Re: Plotting

2021-11-10 Thread Alan Bromborsky
I looked at both packages and what I did not see was the ability to use LaTeX to annotate the figures which to me is a back breaker for report quality graphics. On 11/10/21 7:05 PM, gu...@uwosh.edu wrote: I think that having a way of getting publication quality output would be great. However,

Re: [sympy] Re: How to narrow down "Invalid argument types for subtraction" in a system of equations?

2021-10-31 Thread Alan Bromborsky
Also note that for 3D quaternions are subalgebra of the geometric algebra.  Hamilton did not come up with the pseudoscalar which allows scalars, vectors, quaternions, and the pseudoscalar to form a complete algebra.  In Hamiltons quaternions you can add scalars to the basis quaternions but you

Re: [sympy] Re: How to narrow down "Invalid argument types for subtraction" in a system of equations?

2021-10-30 Thread Alan Bromborsky
Sympy will not solve vector equations and the vector module seems to be an after thought.  Convert the vector equations to systems of non-linear scalar equations and hold your breath for the solver to give and answer - https://docs.sympy.org/latest/modules/solvers/solvers.html Part of the

Re: [sympy] How to create a vector function in sympy with actual vectors, that can be transformed between coordinate systems?

2021-10-23 Thread Alan Bromborsky
Attached is the code and pdf output for all three cases. On 10/23/21 2:11 AM, Andreas Schuldei wrote: I am putting together the components of a vector field (a magnetic field, caused by a current in several conductors) in cartesian coordinates. The field is derived from calculating the

Re: [sympy] How to create a vector function in sympy with actual vectors, that can be transformed between coordinate systems?

2021-10-23 Thread Alan Bromborsky
I realized you want 'a' to be a constant vector which my definition of 'a' in cylindrical coordinates is not.  I will develop a solution for a constant 'a'. On 10/23/21 11:23 AM, Alan Bromborsky wrote: I don't know if this would help but you problem cried out for cylindrical coordinates.  I

Re: [sympy] How to create a vector function in sympy with actual vectors, that can be transformed between coordinate systems?

2021-10-23 Thread Alan Bromborsky
I don't know if this would help but you problem cried out for cylindrical coordinates.  I assumed the vectors a and R were from the origin and had no theta component (if not let me know and I will run that case) then this code (snippet) - def vector_potential_in_cylindrical_coordinates():    

Re: [sympy] How to create a vector function in sympy with actual vectors, that can be transformed between coordinate systems?

2021-10-22 Thread Alan Bromborsky
You might want to look at this link - https://galgebra.readthedocs.io/en/latest/ Also if you could show me symbolically (not code) what you are doing perhaps I could give you an example of how to do it in galgebra. On 10/22/21 3:15 AM, Andreas Schuldei wrote: I saw this

Re: [sympy] Idiomatic way to evaluate a scalar field at a given vector value?

2021-05-13 Thread Alan Bromborsky
Here is galgebra/sympy code for vector derivatives in rectangular and spherical coordinate with output annotated using latex - def derivatives_in_rectangular_coordinates():     #Print_Function()     X = (x,y,z) = symbols('x y z') #coordinates     o3d = Ga('e_x e_y e_z',g=[1,1,1],coords=X)

Re: [sympy] Idiomatic way to evaluate a scalar field at a given vector value?

2021-05-12 Thread Alan Bromborsky
Look at the following link.  Galgebra is built on top of sympy - https://galgebra.readthedocs.io/en/latest/ You can define a set of basis vectors say e1, e2, and e3, and coefficients a1, a2, and a3, then a general vector a1*e1+a2*e2+a3*e3.  The coefficients can be functions of the

Re: [sympy] New student - want to apply for GSoC - Improving plotting modules

2021-04-12 Thread Alan Bromborsky
In the Asymptote galleries look at webgl and movies.  I especially like the klein bottle in webgl that you can rotate - https://asymptote.sourceforge.io/gallery/3Dwebgl/Klein.html Clicking on klein.asy under the thumbnail shows the code. On 4/12/21 4:07 AM, Yaser wrote: Thanks for replying.

Re: [sympy] New student - want to apply for GSoC - Improving plotting modules

2021-04-11 Thread Alan Bromborsky
You might want to look at Asymptote which can generate publication quality graphics (look at the galleries in the link) - https://asymptote.sourceforge.io/ The problem is that there is no good python wrapper for Asymptote which has it's own programming language. On 4/10/21 2:05 PM, Yaser

Re: [sympy] sympy -> physics -> quantum -> computation

2021-03-21 Thread Alan Bromborsky
On 3/21/21 2:48 PM, Rahul Manavalan wrote: Hello All Perhaps, I am late to the party, but would it be a good Idea to develop quantum optimization algorithms for "sympy -> physics -> quantum -> computation" this part of Sympy ? I have some experience with quantum computation and have

Re: [sympy] GSoC Idea Discussion

2021-03-11 Thread Alan Bromborsky
On 3/11/21 8:45 AM, Aryan Goyal wrote: Hey there, I'd like to contribute to the Project name- *Improve the plotting module.* As I have a good piece of knowledge in matplotlib, Python, HTML, CSS Javascript. Thank You Aryan Goyal -- You received this message because you are subscribed to the

[sympy] Sympy Webpage

2021-03-04 Thread Alan Bromborsky
On your webpage you list projects that use sympy with links to projects.  The link to "galgebra" is out of date.  The correct link is - https://galgebra.readthedocs.io/en/latest/ -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from

[sympy] Code Generation

2020-12-16 Thread Alan Bromborsky
Asymptote is a very high quality scripted graphing/drawing program - https://asymptote.sourceforge.io/ Please look at the galleries in the link.  However, it has it's own scripting language (similar to C/C++).  I would suggest that you look at a code generator for the Asymptote scripting

[sympy] sympy python and graphics

2020-11-03 Thread Alan Bromborsky
One thing I think is lacking in python is the ability to generate report quality graphics directly.  The best available is matplotlib which doesn't really do the job all the time.  I have a paper I wrote (for my own edification) using sympy and galagebra to solve the Foucault pendulum.  For

Re: [sympy] Re: Divergence wrong in cylindrical coordinates?

2020-08-26 Thread Alan Bromborsky
If you are dealing with gradient you might find this link of interest - https://galgebra.readthedocs.io/en/latest/module-components.html#differential-operators the galgebra package is built on top of sympy. On 8/26/20 6:40 PM, Alexander Lindsay wrote: This patch fixes the bad behavior: diff

Re: [sympy] Gradient of a vector

2020-04-24 Thread Alan Bromborsky
You may want to look at the following link - https://github.com/pygae/galgebra Also these docs - https://galgebra.readthedocs.io/en/latest/galgebra_guide.html#Basic-Multilinear-Function-Class-Functions On 4/24/20 2:43 PM, Alexander Lindsay wrote: I've been using the capabilities in

Re: [sympy] Vector Expression

2020-04-03 Thread Alan Bromborsky
You might find the following link of interest - https://github.com/pygae/galgebra On 4/3/20 5:31 PM, Aaron Meurer wrote: Take a look at how the class MatAdd is implemented. Note that is isn't a trivial problem to solve, and there are still ongoing discussions on the best way to do it (see for

Re: [sympy] Re: Vector Integration Proposal for GSoC feedback

2020-03-30 Thread Alan Bromborsky
I would suggest calculating for a geometric simplex https://en.wikipedia.org/wiki/Simplex since simplexes are the building blocks for finite element method calculations.  I think one of the main applications of your package could be for calculating the boundary element method equations for

Re: [sympy] Re: Google Season of Docs Participants Announced

2019-08-09 Thread Alan Bromborsky
I think LaTeX is essential.  Has anyone though of the relationship of docs to Jupyter notebook/lab?  Do you want to be able to launch a notebook from the doc? On 8/9/19 5:33 PM, Aaron Meurer wrote: Another thing that will probably come up, related to the mathematical formatting, is to what

Re: [sympy] Re: Interested to participate in GSoD

2019-06-28 Thread Alan Bromborsky
I hope you pick a doc system that you can launch python notebooks/lab from. On 6/28/19 10:52 AM, Ondřej Čertík wrote: Of these I prefer Hugo, I use it for other projects and it works great. Another option is MkDocs. We just need some tool that extracts the documentation from C++ files and

Re: [sympy] Re: SymPy - a suggestion

2019-05-07 Thread Alan Bromborsky
Remember that one of the most appealing aspects of sympy is that it uses a general purpose programming language, python, unlike other computer algebra systems.  I would not use a special syntax outside of standard python. On 5/7/19 3:32 AM, S.Y. Lee wrote: It would be a good idea about

Re: [sympy] SymPy - a suggestion

2019-05-01 Thread Alan Bromborsky
To use jupyterlab in Ubuntu 18.04 I defined a desktop launcher with the following properties - Name: Jupyter Lab Description: Jupyter Lab Command: /home/brombo/.local/bin/jupyter-lab Comment: Execute python in jupyter lab With launcher icon: If I drag a ipynb file over the icon on the

Re: [sympy] SymPy - a suggestion

2019-05-01 Thread Alan Bromborsky
What are the problems with Jupyter Notebook or Jupyther Lab other than mathjax rendering being a bit slow? On 5/1/19 1:54 PM, Aaron Meurer wrote: On Wed, May 1, 2019 at 11:47 AM David Bailey wrote: Hello, I used to work as an independent Mathematica consultant, and as such have a detailed

Re: [sympy] N-dimensional vectors and dyads

2019-03-22 Thread Alan Bromborsky
You may want to look at (it is a sympy library for geometric algebra) - https://github.com/brombo/galgebra specifically look at - /doc/galgebra.pdf If you are interested I have a python3 version that is not on the github site yet I could send you. On 3/22/19 10:48 AM, 'Markus Müller' via

Re: [sympy] derivative of a Boolean

2017-09-20 Thread Alan Bromborsky
I afraid I can't help there.  I am good at finding things with google.  This might help, maybe? http://pyeda.readthedocs.io/en/latest/reference/boolalg/boolfunc.html On 09/20/2017 12:57 PM, Chris Smith wrote: I will need some help interpreting that. Here's my attempt: | >>>f =eq

Re: [sympy] derivative of a Boolean

2017-09-19 Thread Alan Bromborsky
On 09/19/2017 04:24 PM, Aaron Meurer wrote: I'm not sure the derivative really makes sense. I would either error or leave it unevaluated. Aaron Meurer On Tue, Sep 19, 2017 at 9:19 AM, Chris Smith wrote: In PR #13204 I encountered the question of what to do with the

Re: [sympy] GSoC Application Implementation of multiple types of coordinate systems for vectors

2017-04-02 Thread Alan Bromborsky
Thank you I will correct it. On 04/02/2017 09:33 AM, szymon.mieszc...@gmail.com wrote: Thank you for this manuscript and concept. I wish I started working on proposal so late and I couldn't think on your idea carefully before deadline. Python is great language to overloading operator, but we

Re: [sympy] GSoC Application Implementation of multiple types of coordinate systems for vectors

2017-04-01 Thread Alan Bromborsky
Proposal looks good. Only one comment and one suggestion. - Comment: You need to be very careful when taking the square root of an expression. Check the degree to which assumptions propagate such as if u and v are declared real does sqrt() know that sqrt(u**2+v**2) is also real.

Re: [sympy] Feedback for GSoC Proposal

2017-04-01 Thread Alan Bromborsky
You proposal is very good. My only suggestion is that you may want a class for vector differential operators (gradient operator). If the coordinate system constructor returns the gradient operator you could (in future) overload * and ^ operators so that if f is a scalar field and V a vector

Re: [sympy] GSoC 2017 : Implementation of multiple types of coordinate systems

2017-03-30 Thread Alan Bromborsky
I went to link and there was nothing there! On 03/30/2017 05:05 PM, Sagar Bharadwaj wrote: I am interested in taking up the project involving implementation of different types of coordinate systems in SymPy. I went through the discussions in Pull Requests #9937, #10074, #10109 and also some

Re: [sympy] Re: Implementation of a user-defined coordinate system

2017-03-29 Thread Alan Bromborsky
Yes. On 03/29/2017 12:02 PM, Francesco Bonazzi wrote: On Tuesday, 28 March 2017 22:06:41 UTC+2, Mikayla Z. Grace wrote: Are you saying you think a single superclass is better than individual classes? A single class, not a superclass. -- You received this message because you are

Re: [sympy] Re: Feedback on GSoC Proposal

2017-03-28 Thread Alan Bromborsky
I cannot emphasize too strongly to understand the wikipedia article on orthogonal coordinates in 3 dimensions. https://en.wikipedia.org/wiki/Orthogonal_coordinates#Differential_operators_in_three_dimensions There are only 12 possible orthogonal coordinate systems. The formulas given cover

Re: [sympy] GSoC17: Implementing multiple types of CordSys

2017-03-23 Thread Alan Bromborsky
Here is a link to all orthogonal coordinate systems in three dimensions and how to calculate vector calculus operations in each - https://en.wikipedia.org/wiki/Orthogonal_coordinates On Thu, Mar 23, 2017 at 5:38 PM, Alan Bromborsky <abrombo...@gmail.com> wrote: > If the basi

Re: [sympy] GSoC17: Implementing multiple types of CordSys

2017-03-23 Thread Alan Bromborsky
If the basis vectors are not orthogonal you need to calculate the reciprocal basis vectors (equivalent to the inverse of the metric tensor). If [image: \mathbf{e}_i] are your basis vectors then [image: \mathbf{e}^i]are the reciprocal basis and [image: \mathbf{e}_i \cdot \mathbf{e}^j =

Re: [sympy] GSoC17: Implementing multiple types of CordSys

2017-03-21 Thread Alan Bromborsky
What you need to define a coordinate system and vector calculus (div, curl, etc.) is a set of coordinate variables, a corresponding set of basis vectors, the dot products of all the basis vectors in terms of the coordinates (the metric tensor), and the derivatives of the basis vectors as a linear

Re: [sympy] Re: GSoC Proposal: Extend Implementation of Different Vector Coodinate Systems to a Dot-Product Calculator

2017-03-21 Thread Alan Bromborsky
ankur see attached - A symbol is not a function. For example if you want A to be a general function of symbols x, y, z your write - A = Function('A')(*(x,y,z)) don't ask me to explain the syntax I just use it. On Tue, Mar 21, 2017 at 2:52 PM, Mikayla Grace wrote:

Re: [sympy] Re: GSoC Proposal: Extend Implementation of Different Vector Coodinate Systems to a Dot-Product Calculator

2017-03-21 Thread Alan Bromborsky
Start with a vector manifold defined in rectangular coordinates but with components that are functions of the new coordinates. For spherical coordinates - [image: \mathbf{R} = r(\cos(\phi)\mathbf{k}+\sin(\phi)(\sin(\theta)\mathbf{i})+\cos(\theta)\mathbf{j})] [image: \mathbf{R}] defines the

Re: [sympy] GSOC 2017 idea: geometry

2017-03-18 Thread Alan Bromborsky
You might find the following github project built upon sympy of interest - https://github.com/brombo/galgebra and https://en.wikipedia.org/wiki/Conformal_geometric_algebra In conformal geometric algebra rotations, general rotation (about any point) translations, screws, inversions, and

Re: [sympy] GSoC 2017 : Vector Integration

2017-03-07 Thread Alan Bromborsky
You should look at - http://www.ime.unicamp.br/~marcio/ps2009/spivak which covers differential forms and the generalized Stokes theorem which includes all the vector integration theorems. even more general is the fundamental (integration) theorem of geometric calculus -

Re: [sympy] GSoC 2017: Implementation of multiple types of coordinate systems for vectors

2017-03-02 Thread Alan Bromborsky
of the new coordinates. Then the partial derivative of X with respect to each new coordinate defines a basis vector in the new coordinate system (not normalized). From the dot products of these basis vectors the metric tensor g is calculated. On Thu, Mar 2, 2017 at 12:15 PM, Alan Bromborsky

Re: [sympy] Simplification with dot products

2017-02-27 Thread Alan Bromborsky
How the expression zeta obtained. Do input the expression you show or is it obtained by vector algebraic operations on vector expressions. I assume e0, e1, and e2 are arbitrary vectors. On Mon, Feb 27, 2017 at 12:04 PM, Nico Schlömer wrote: > I have a somewhat large

Re: [sympy] maxwell's equation example can't find galgebra

2017-02-15 Thread Alan Bromborsky
n Wed, Feb 15, 2017 at 7:47 AM, Alan Bromborsky <abrombo...@gmail.com> wrote: > When you get galgebra from git in the galgebra/doc directory is > galgebra.pdf. In section 1.3 of the document are instructions of how to > install galgebra including how to set the python path so that ot

Re: [sympy] maxwell's equation example can't find galgebra

2017-02-15 Thread Alan Bromborsky
When you get galgebra from git in the galgebra/doc directory is galgebra.pdf. In section 1.3 of the document are instructions of how to install galgebra including how to set the python path so that other python programs can find galgebra. On Wed, Feb 15, 2017 at 5:35 AM, Henri Girard

Re: [sympy] I need a suggestion to find the right geometry python module

2017-01-19 Thread Alan Bromborsky
Rotate about an axis with a arbitrary direction? Symbolic or numerical answer? How intensely numeric if numeric (do you want to do this millions of times in a loop)? On Thu, Jan 19, 2017 at 11:12 AM, Andrea Borruso wrote: > Hi, > I'm a newbie and I'm writing here because

Re: [sympy] Derivatives with respect to vectors and matrices expressed as vector and matrix operations

2017-01-11 Thread Alan Bromborsky
Your example is taking the gradient of a scalar function |x2-x1| and getting a vector function. See - https://en.wikipedia.org/wiki/Gradient My geometric algebra package - https://github.com/brombo/galgebra can take the gradient (vector derivative) of a multivector function of which scalars

Re: [sympy] Multiple types of Coordinate Systems for Vectors

2016-12-12 Thread Alan Bromborsky
Look at my notes. They may be sufficient. On Mon, Dec 12, 2016 at 12:32 AM, Sourabh Garg < sourabh.8.june.1...@gmail.com> wrote: > Hey, > > I also want to work on it. if you have any link to book's pdf version > ,please share with me. > Thanks > > Sourabh Garg > > -- > You received this message

Re: [sympy] Multiple types of Coordinate Systems for Vectors

2016-12-11 Thread Alan Bromborsky
My notes base on "Geometric Algebra for Physicists" are at - https://github.com/brombo/galgebra Look at bookGA.pdf in the doc directory. On Sun, Dec 11, 2016 at 8:53 AM, Arihant Parsoya wrote: > Hi, > > I am trying to get myself acquainted with geometric algebra by

Re: [sympy] QEPCAD

2016-10-08 Thread Alan Bromborsky
You might find the sympy modules at github.com/brombo/galgebra useful since they include an n-dimensional vector space with operations. Look at galgebra.pdf in the doc directory for a complete description. The following link might also be of use -

Re: [sympy] Multiple types of Coordinate Systems for Vectors

2016-10-01 Thread Alan Bromborsky
If you use the methods in galgebra.pdf remember (this is documented) that for all but rectangular coordinates the basis vectors derived from the metric are not normalized. Especially go over section 2.3.2 is galgebra.pdf. On Sat, Oct 1, 2016 at 1:10 AM, Arihant Parsoya

Re: [sympy] Multiple types of Coordinate Systems for Vectors

2016-09-30 Thread Alan Bromborsky
In 3 dimensions there are 13 separable (orthogonal) coordinate systems. See link - https://en.wikipedia.org/wiki/Orthogonal_coordinates How many do you want to implement? I would have a coordinate_system class and use it to instantiate a particular coordinate system then when you instantiate a

Re: [sympy] Solution of small system of equations grows past manageability

2016-06-11 Thread Alan Bromborsky
Physically what are all the matrices. Do A and C also describe rotations. Please give the actual physics problem as well as the resulting math. On Sat, Jun 11, 2016 at 6:37 AM, wrote: > My description was a little compressed, so i had to clean up the code to > match my

Re: [sympy] Re: Derivative without Simplification

2016-06-07 Thread Alan Bromborsky
You might want to look at "New Foundations for Classical Mechanics" by David Hestenes and the rigid body rotor description of equations of motion. http://www.amazon.com/Foundations-Classical-Mechanics-Fundamental-Theories/dp/0792353021 Should be in your school library. On Tue, Jun 7, 2016 at

Re: [sympy] how to add extra operator for algebra

2016-06-02 Thread Alan Bromborsky
See - http://www.programiz.com/python-programming/operator-overloading the binary operators you can overload are +,-,*,|,^,&,<,>,<<, and >> (I may have forgotten one or two operators). The link shows how to overload and operator. Because of python's fixed operator precedence using parenthesis

Re: [sympy] how to add extra operator for algebra

2016-05-27 Thread Alan Bromborsky
Be more specific. What are you multiplying? What is the output. If you define a class for your operands you can overload *. On Fri, May 27, 2016 at 4:15 AM, meInvent bbird wrote: > if i define a new custom multiply operator and would like to add to > existing algebra

Re: [sympy] the possibility to use sympy to calculate equations like z = part1 (+/-) part2 (+/-) part3 ... (+/-) partN, etc.

2016-04-04 Thread Alan Bromborsky
You could write a python function to calculate all the different sign combinations where the input to the function would be [part1,...,partn] and return a list of sympy expressions [z1,...,zn]. The sign arrays could be generated by enumerating all n-digit binary numbers where a 0 digit would be +

Re: [sympy] GSoC 2016 : Implementation of multiple types of coordinate systems for vectors

2016-03-24 Thread Alan Bromborsky
l/9937 > > I would recommend reading that and talking about it. > > > Jason > moorepants.info > +01 530-601-9791 > > On Wed, Mar 23, 2016 at 7:53 PM, Alan Bromborsky <abrombo...@gmail.com> > wrote: > >> Sanya, >> >> Also only say that you will

Re: [sympy] GSoC 2016 : Implementation of multiple types of coordinate systems for vectors

2016-03-23 Thread Alan Bromborsky
Sanya, Also only say that you will do the rectangular, cylindrical, and spherical coordinate systems for sure in the allotted time and the rest only if time permits. Do not overcommit yourself. Almost everything in program development takes longer than you think it will even if you are using

Re: [sympy] GSoC 2016 : Implementation of multiple types of coordinate systems for vectors

2016-03-22 Thread Alan Bromborsky
Please note the rectangular, cylindrical, and spherical are not the only orthogonal coordinate systems in 3d, see - https://en.wikipedia.org/wiki/Orthogonal_coordinates A unified approach (h_1, h_2, and h_3 functions in link) might be of value. On Tue, Mar 22, 2016 at 12:34 PM, Sanya Khurana

Re: [sympy] GSoC 2016 - Classical Mechanics: Efficient Equation of Motion Generation with Python

2016-03-08 Thread Alan Bromborsky
Python has the GIL which > makes it hard to do really nice parallel code. There are ways around that, > but it's not always so clean. > > > Jason > moorepants.info > +01 530-601-9791 > > On Tue, Mar 8, 2016 at 1:06 PM, Alan Bromborsky <abrombo...@gmail.com> > wrote

Re: [sympy] GSoC 2016 - Classical Mechanics: Efficient Equation of Motion Generation with Python

2016-03-08 Thread Alan Bromborsky
Has anyone looked at parallel python to speed things up (where applicable of course)? On Tue, Mar 8, 2016 at 3:54 PM, Jason Moore wrote: > The two equation of motion ideas can be combined. The C++ is a bigger > effort because we do not yet have an easy way to replace SymPy

Re: [sympy] GSoC 2016: Implementation of multiple types of coordinate systems for vectors

2016-03-05 Thread Alan Bromborsky
wrote: > Here is a pull request that started implementing this for the 3D vector > module: https://github.com/sympy/sympy/pull/9937 > > > Jason > moorepants.info > +01 530-601-9791 > > On Sat, Mar 5, 2016 at 9:44 AM, Alan Bromborsky <abrombo...@gmail.com> > wrot

Re: [sympy] GSOC 16 : implementation-of-vector-integration

2016-03-01 Thread Alan Bromborsky
The question is do you only want to implement vector integration in 3 dimensions (Green's and Stoke's theorems) or in n dimensions (generalized Stoke's theorem in differential geometry) and in flat space or for a general manifold? - https://en.wikipedia.org/wiki/Stokes'_theorem On Tue, Mar 1,

Re: [sympy] Absolute Value Simplification

2016-02-23 Thread Alan Bromborsky
I think assumptions only work with variables and not functions of variables. You can specify x>0 so that |x| will simplify to x, but you cannot specify that cosh(x) > 0 for all real x. The cosh case is simple, consider the norm of a vector in a Minkowski space. It would be great if one could

Re: [sympy] Absolute Value Simplification

2016-02-23 Thread Alan Bromborsky
Sympy assumes symbols to be complex. For a real symbol you need x = Symbol('x',real=True) On Mon, Feb 22, 2016 at 9:44 PM, Nolan Dyck wrote: > Hi Everyone, > > I've been poking around in the sympy source, and I've noticed that the ` > simplify` command does not deal

Re: [sympy] Off topic: Good general sources about computational symbolic algebra

2016-02-22 Thread Alan Bromborsky
Suggestion - Modern Computer Algebra by Joachim von zur Gathen and Jurgen Gerhard https://www.researchgate.net/publication/220689743_Modern_computer_algebra_2_ed On Mon, Feb 22, 2016 at 12:27 PM, Aaron Meurer wrote: > There are different algorithms for different parts of

Re: [sympy] integration with the square root of a non-negative expressions

2016-02-15 Thread Alan Bromborsky
Your are talking about reduction to elliptic integrals - https://en.wikipedia.org/wiki/Elliptic_integral I do not think that sympy can currently do this (it would be a great project)! On Mon, Feb 15, 2016 at 10:01 AM, Andrew Corrigan wrote: > Thank you both for

Re: [sympy] Point in infinity

2016-02-13 Thread Alan Bromborsky
Look at conformal geometric algebra - https://en.wikipedia.org/wiki/Conformal_geometric_algebra On Sat, Feb 13, 2016 at 6:48 PM, Michał Radwański wrote: > Hello! > How one could start with implementing a concept of point in infinity or > line in infinity? > It would

  1   2   3   4   5   6   >