Re: [sage-support] Calling Words in a function gives an error

2021-01-25 Thread Nils Bruin
On Monday, January 25, 2021 at 7:09:32 AM UTC-8 Nikos Apostolakis wrote: > Dear Nils, > > [...] I think treating rational integers as integers is safe. Actually > Sage does that > > sage: 8/2 in ZZ > True > > > So to have a function with integer input throw an error when you feed it a >

Re: [sage-support] Re: Trouble getting *collect* to work with derivatives.

2021-01-25 Thread Nils Bruin
On Monday, January 25, 2021 at 7:16:00 AM UTC-8 ... wrote: > Is this the same as derivative(f(xp(x, y, z, t), yp(x, y, z, t), zp(x, y, > z, t), tp(x, y, z, t)) , x, 2)? > > No, it is not. Look up "Multivariable Chain rule". -- You received this message because you are subscribed to the Google

Re: [sage-support] Re: Trouble getting *collect* to work with derivatives.

2021-01-25 Thread Christian Seberino
> > Secondly, what are you trying to collect? The D[0,0] terms or > f(xp, yp, zp, tp), x, 2) which are two different things? What is the difference between those 2? > Given > what you are trying to do I guess it is the first one, in which > case you should have tried > > sage: term =

Re: [sage-support] Calling Words in a function gives an error

2021-01-25 Thread Nikos Apostolakis
Dear Nils, Thanks for the useful suggestions. I probably used the wrong terminology, coercion vs conversion, sorry. What I meant is simply that almost everywhere on Sage 8/2 is accepted as input to a function that takes integer arguments, as it should IMHO. I understand that preprocessing