[sage-support] Re: Free Algebra with symbolic coefficients

2014-09-09 Thread Nils Bruin
On Monday, September 8, 2014 6:48:44 PM UTC-7, Chris Thron wrote: > > This works beautifully, thanks. > > I have another small issue: I can't do substitutions in equality > expressions with terms in the free algebra. For instance, Sage tells me > "Not iterable" > > > var('c, pi, c, mu_0,epsil

[sage-support] Re: Free Algebra with symbolic coefficients

2014-09-09 Thread Chris Thron
This works beautifully, thanks. I have another small issue: I can't do substitutions in equality expressions with terms in the free algebra. For instance, Sage tells me "Not iterable" var('c, pi, c, mu_0,epsilon_0,epsilon,mu,q,Q,e') F. = FreeAlgebra(SR,27,'curl,div,grad,d_t,d_x,d_y,d_z,

[sage-support] Re: Free Algebra with symbolic coefficients

2014-09-08 Thread Nils Bruin
On Sunday, September 7, 2014 10:28:02 AM UTC-7, Chris Thron wrote: > > HI, > I'm trying to write a program that converts electromagnetic equations from > CGS to MKS units. I've run into the following issues: > > (1) I have expressions like curl*H - c^(-1)*d_t*D, where curl and d_t > express deri

[sage-support] Re: Free Algebra with symbolic coefficients

2014-09-07 Thread Nils Bruin
On Sunday, September 7, 2014 10:28:02 AM UTC-7, Chris Thron wrote: > > (1) I have expressions like curl*H - c^(-1)*d_t*D, where curl and d_t > express derivatives. In the process of conversion, sage switches the order > and outputs: > > H*curl - D*d_t/c > Are you sure D and d_tand H and curl g