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

2021-10-22 Thread Andreas Schuldei
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 rotation of its magnetic vector potential, which can be expressed as A_z = -Const * dot(r,a)(dot(r,r) A =(0,

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 https://stackoverfl

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

2021-10-22 Thread Andreas Schuldei
I saw this https://stackoverflow.com/questions/46993819/how-to-create-a-vector-function-in-sympy which uses Matrix() as a workaround to create a vector. The author says, that it can not be transformed between coordinate systems, like real vectors, though. I need to transform my input and o