Skip to main content
15 events
when toggle format what by license comment
Apr 13, 2017 at 12:56 history edited CommunityBot
replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/
Jan 25, 2017 at 0:11 comment added Mr.Wizard @Daniel Thanks for coming to the rescue.
Jan 25, 2017 at 0:11 history edited Mr.Wizard CC BY-SA 3.0
added 730 characters in body
Jan 24, 2017 at 19:30 comment added Daniel Lichtblau Also there is GroebnerBasis`DistributedTermsList[p, {x, y, z}, MonomialOrder -> Join[{wts}, NullSpace[{wts}]]][[1, 1, 1]].wts where wts is the weight vector. Requires that it be all nonnegative rationals, I think.
Jan 24, 2017 at 19:26 comment added Daniel Lichtblau I would recommend using a new variable and just reweighting. That new variable should not be a built-in symbol such as E. wts = {1, 1, 2}; vars = {x, y, z}; Exponent[p /. Thread[vars -> (t*vars)^wts], t] Also, the method above will fail on p = x^2 y + z^3 - y^6 (because it is not safe against cancellation of lead terms).
Jan 24, 2017 at 12:48 history edited Mr.Wizard CC BY-SA 3.0
added 204 characters in body
Jan 24, 2017 at 12:46 vote accept Smilia
Jan 24, 2017 at 12:36 history edited Mr.Wizard CC BY-SA 3.0
deleted 57 characters in body
Jan 24, 2017 at 12:32 comment added Mr.Wizard @Smilia I don't know why but I overlooked your final line of code and made a bad guess as to how to use g. I think I see what you want now? I shall update my answer. Please let me know. If I still fail I'll delete this answer.
Jan 24, 2017 at 12:20 comment added Smilia Ok, here you go a definition in the preambule of the degree of multivariate polynomial: en.wikipedia.org/wiki/Degree_of_a_polynomial
Jan 24, 2017 at 12:11 comment added Mr.Wizard @Smilia I am probably being obtuse or ignorant but would you please explain for me how the degree is 3 there?
Jan 24, 2017 at 12:02 vote accept Smilia
Jan 24, 2017 at 12:02
Jan 24, 2017 at 12:02 comment added Smilia No, it doesn't answer the question: take $p = x^2 y + y$, $deg(p) = 3$ but it's not what you compute....
Jan 24, 2017 at 10:41 vote accept Smilia
Jan 24, 2017 at 12:00
Jan 24, 2017 at 10:21 history answered Mr.Wizard CC BY-SA 3.0