0

I have outputs like "expression/(1+3*c^2) +anotherexpression/(1+3*c^2)" and so on.

Is there any way to set 1/(1+3*c^2)=A where A is a new variable so that the output reads like "A*expression+A*anotherexpression"?

Thanks

Trac3
  • 1

1 Answers1

0
ReplaceAll[x/(1 + 3 c^2) + y/(1 + 3 c^2), 1/(1 + 3 c^2) -> z]

x z + y z

Chris Degnen
  • 30,927
  • 2
  • 54
  • 108