My input is as follows

enter image description here

I don't want (t u - b C p) to exist. How to expand until no more braces exist?

  • 3
    $\begingroup$ It would be very helpful if you could post actual code instead of an image, makes testing a lot easier ;-) $\endgroup$ – Lukas Lang Aug 25 '17 at 19:01
  • $\begingroup$ Are you able to provide code, instead of an image? That way I can easily try this in my instance of Mathematica without having to retype it. $\endgroup$ – ktm Aug 25 '17 at 19:08
  • $\begingroup$ How so? It shouldn't ever be necessary for questions like this. $\endgroup$ – ktm Aug 25 '17 at 19:11
  • 2
    $\begingroup$ what are the variables here? is rpt a variable, or is it r*p*t? It is not clear from the picture. t,u,b,p all look defined (they're black, not blue), and it is probably frowned upon to use C as it is a system symbol. $\endgroup$ – ktm Aug 25 '17 at 19:15
  • $\begingroup$ Why do the blue and black coloring disagree? I can't reproduce your output by manually typing this myself. $\endgroup$ – ktm Aug 25 '17 at 19:16

(From you picture, which isn't entirely useful)

I am going to guess there is some very weird hidden formatting going on that isn't visible to the naked eye, and that it is interpreting (t u - b C p) as a single symbol, not as a subtraction within parenthesis to be distributed. My guess it that it was copy and pasted from somewhere and Mathematica didn't interpret that original form properly.

Retype the expression from scratch yourself, and retry it. That is my advice. Here is what happens when I type what you have identically in my session:

enter image description here

with input form

ExpandAll[(((C + b*h)*r*p*t)/Sin[A])*(t*u - b*C*p)]

As a side note, I'd avoid using C as a symbol, as it is a defined function(ish) in the language. See this reference page.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.