Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to re-order of factors

I have

 x,y, dx, dy= var("x, y, dx, dy");
 def iD(f): return diff(f, x)*dx + diff(f,y)*dy;

iD(x^3*y^5) returns

5*dy*x^3*y^4 + 3*dx*x^2*y^5

is there a way to have it return the differentials always at the end as in

5x^3y^4dy + 3x^2y^5dx

thank you

how to re-order of factors

I have

 x,y, dx, dy= var("x, y, dx, dy");
 def iD(f): return diff(f, x)*dx + diff(f,y)*dy;

iD(x^3*y^5) returns

5*dy*x^3*y^4 + 3*dx*x^2*y^5

is there a way to have it return the differentials always at the end as in

5x^3y^4dy + 3x^2y^5dx

thank you

how to re-order factors

I have

 x,y, dx, dy= var("x, y, dx, dy");
 def iD(f): return diff(f, x)*dx + diff(f,y)*dy;

iD(x^3*y^5) returns

5*dy*x^3*y^4 + 3*dx*x^2*y^5

is there a way to have it return the differentials always at the end as in

5x^3y^4dy

5*x^3*y^4*dy + 3x^2y^5dx

3*x^2*y^5*dx

thank you

click to hide/show revision 4
No.4 Revision

updated 2015-02-16 21:22:38 -0600

kcrisman gravatar image

how to re-order factors

I have

 x,y, dx, dy= var("x, y, dx, dy");
 def iD(f): return diff(f, x)*dx + diff(f,y)*dy;

iD(x^3*y^5) returns

5*dy*x^3*y^4 + 3*dx*x^2*y^5

is there a way to have it return the differentials always at the end as in

5*x^3*y^4*dy + 3*x^2*y^5*dx

thank you