| 2024-06-25 01:22:43 +0200 | received badge | ● Popular Question (source) |
| 2018-05-10 01:05:46 +0200 | received badge | ● Taxonomist |
| 2016-07-10 05:23:10 +0200 | received badge | ● Famous Question (source) |
| 2014-07-25 11:24:49 +0200 | received badge | ● Notable Question (source) |
| 2013-11-01 08:14:14 +0200 | received badge | ● Popular Question (source) |
| 2012-08-04 00:21:22 +0200 | received badge | ● Student (source) |
| 2012-07-15 15:07:50 +0200 | received badge | ● Editor (source) |
| 2012-07-15 13:48:41 +0200 | asked a question | Order of a differential equation? Does it exists a method or a function that returns the the order of a (O-P)DE? |
| 2012-07-15 07:31:18 +0200 | commented answer | How to extract coefficient terms from a differential equation, as for polynomial? I'll see if this is a bug, thank you :) |
| 2012-07-15 07:30:32 +0200 | marked best answer | How to extract coefficient terms from a differential equation, as for polynomial? You can use You can see a list of commands you can use with your expression |
| 2012-07-15 07:30:32 +0200 | received badge | ● Scholar (source) |
| 2012-07-14 14:14:35 +0200 | received badge | ● Supporter (source) |
| 2012-07-14 14:13:59 +0200 | commented answer | How to extract coefficient terms from a differential equation, as for polynomial? Mmmh... it really works with the simple example above, but not in the more complicated (and bad) code I was working on: var('x, u, u1, u2) f = -3*u2*(u1/u + 1/x) - 3*(u1)^2/(x*u) eta = function('eta', x, u, u1) def D(f, g) : return f.diff(x) + u1*f.diff(u) + u2*f.diff(u1) + g*f.diff(u2) D1_eta = D(eta, f) D2_eta = D(D1_eta, f) D3_eta = D(D2_eta, f) DE = D3_eta - f.diff(u)*eta - f.diff(u1)*D1_eta - f.diff(u2)*D2_eta DE.coeff(u2,3) I must do DE.collect(u2).coeff(u2,3) Furthemore if you print DE.collect(u2) terms are expanded, but not collected with respect to u2. I must do DE.collect(u2).collect(u2) It's really strange... it's a bug or my fault? I have Sage 5.1 running on Ubuntu 12.04 ... (more) |
| 2012-07-14 08:59:09 +0200 | asked a question | How to extract coefficient terms from a differential equation, as for polynomial? Hello all. As title, I want to extract from a differential equation the term coefficients with respect to a variable. For example: from DE I want to create a new symbolic expression with the coefficient of u^2, in this case y.diff(x). Must I convert DE to a polynomial ring? And how can I do it? |
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.