Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #10703

Rearranging terms - user-defined

From drehstuhl2@googlemail.com
Newsgroups comp.soft-sys.math.mathematica
Subject Rearranging terms - user-defined
Date 2012-06-30 09:21 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jsmgen$1mf$1@smc.vnet.net> (permalink)

Show all headers | View raw


Does anyone know how to tell mathematica the following:

I have an expression like: a + bx -by 
and I want to factorise it like: a + b(x-y)

BUT: I want Mathematica to show the difference (x-y) whenever possible (in the different calculations - not just place b outside the bracket). That's because equations are easier to discuss if they are written in a special way.

Another example would be: using probabilities, I always want to write mathematica -(1-p) instead of -p+1 throughout the notebook. 

Sorry, for postig such a beginners question. I know there were similar questions, but it did't help. Thanks a lot!

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Rearranging terms - user-defined drehstuhl2@googlemail.com - 2012-06-30 09:21 +0000
  Re: Rearranging terms - user-defined "Nasser M. Abbasi" <nma@12000.org> - 2012-07-01 06:05 +0000

csiph-web