Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6756
| From | Alexei Boulbitch <Alexei.Boulbitch@iee.lu> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Forcing Certain Algebraic Forms With FullSimplify |
| Date | 2011-11-26 10:08 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jaqdqa$neb$1@smc.vnet.net> (permalink) |
Hi, Scott, There is a package "Presentations" of David Park that enables one doing such things. There are several ways doing with the presentations of what you need. For example: Needs["Presentations`Manipulations`"]; a b + g // FactorOut[a] a (b + g/a) Alexei 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 Alexei BOULBITCH, Dr., habil. IEE S.A. ZAE Weiergewan, 11, rue Edmond Reuter, L-5326 Contern, LUXEMBOURG Office phone : +352-2454-2566 Office fax: +352-2454-3566 mobile phone: +49 151 52 40 66 44 e-mail: alexei.boulbitch@iee.lu<mailto:alexei.boulbitch@iee.lu>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Forcing Certain Algebraic Forms With FullSimplify Alexei Boulbitch <Alexei.Boulbitch@iee.lu> - 2011-11-26 10:08 +0000
csiph-web