Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6730 > unrolled thread
| Started by | "David Park" <djmpark@comcast.net> |
|---|---|
| First post | 2011-11-25 09:56 +0000 |
| Last post | 2011-11-25 09:56 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Forcing Certain Algebraic Forms With FullSimplify "David Park" <djmpark@comcast.net> - 2011-11-25 09:56 +0000
| From | "David Park" <djmpark@comcast.net> |
|---|---|
| Date | 2011-11-25 09:56 +0000 |
| Subject | Re: Forcing Certain Algebraic Forms With FullSimplify |
| Message-ID | <janont$asj$1@smc.vnet.net> |
This is easy with the Presentations application: << Presentations` a*b + g // FactorOut[a] a (b + g/a) David Park djmpark@comcast.net http://home.comcast.net/~djmpark/ From: Scott Fortmann-Roe [mailto:scottfr@gmail.com] Hi, I would like to have Mathematica generate an output for an equation where a certain variable is isolated. For instance, I have the equation "a*b+g". I would like "b" to not be multiplied by anything in the result. Thus, I would prefer the form "a(b+g/a)". I have attempted to do this with FullSimplify and ComplexityFunction. The complexity function (cf) evaluates the way I want it to, but for some reason FullSimplify gives me the answer I don't want. Sample code: cf[e_] := 100 Count[e, Times[b, __], Infinity] + LeafCount[e] ; cf[a b + g] cf[a (b + g/a)] FullSimplify[a b + g, ComplexityFunction -> cf] Output: 105 9 a b + g Any ideas? Thank you, Scott
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web