Open tueda opened 7 years ago
Another useful idiom using the (still mysterious) dummy_
function:
**
* Drop all coefficient objects except the given ones.
*
#procedure DropExcept(?a)
antiputinside dummy_,`?a';
#endprocedure
CF f,g;
S x,y;
L F = 2 * f(1,2,3) * g(4,5) * x^3 * y^2;
#call DropExcept(f,x)
P;
.end
giving
F =
f(1,2,3)*x^3;
I don't know (and actually I can't find) what happens to the
dummy_
function in the normalization process, but it seems likeIs it safe to assume the above rule? The manual says just
But it would be benefitable to have a function immediately normalized to 1:
vs.