Author Topic: Making exponents multiply and add with variables  (Read 1331 times)

Offline cr6579

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Making exponents multiply and add with variables
« on: January 20, 2011, 05:11:53 PM »
If I have an expression such as

(ML-3)a(ML2T-2)b(T)c

how can I make PocketCAS rearrange it so that it gives me something like

Ma+bL-3a+2bT2b+c

Also, if this expression was part of an equation, would there be a way to equate exponents from the two sides of the equation and solve for a,b, and c?

Offline MrMage

  • Administrator
  • *****
  • Posts: 475
  • Karma: 7
Re: Making exponents multiply and add with variables
« Reply #1 on: January 20, 2011, 05:50:08 PM »
Hello,

In PocketCAS pro, this is possible. You'd just enter simplify(expression) or factor(expression). You can also solve with solve(expression1=expression2,variableToSolveFor).

Daniel

Offline cr6579

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Making exponents multiply and add with variables
« Reply #2 on: January 20, 2011, 06:41:44 PM »
When I "factor" as you instructed with the above expression, it returns the exact same expression.  When I use "simplify", it returns a large and complex expression with "e^" components.  If I set the equation equal to L as desired and ask it to solve for T, it returns an error that says "Unable to isolate T in (some expression resembling my original one)"

So no luck with those functions :/ Any other ideas?

Offline MrMage

  • Administrator
  • *****
  • Posts: 475
  • Karma: 7
Re: Making exponents multiply and add with variables
« Reply #3 on: January 21, 2011, 03:05:40 PM »
Hi,

The CAS developer, Mr. Parisse, told me that there is no easy solution. The best you can do is probably to calculate

F:=reorder(lnexpand(ln((M*L^(-3))^a*(M*L^2*T^(-2))^b*(T)^c)),[ln(M),ln(L),ln(T)]),

which of course only describes the logarithm of the original expression.

Daniel