Message Boards Message Boards

1
|
921 Views
|
10 Replies
|
3 Total Likes
View groups...
Share
Share this post:

How to simplify a fraction?

Posted 1 month ago

Hi All,
I have simple task:

Simplify[(6^40)/(6^20)]

and I want just to simplify it into a form of:

6^20 

instead I get a result: 3656158440062976 and no any other option to see intermediate steps.

How do I do it, please?
best,
Jacek

POSTED BY: Jacek Jacek
10 Replies
Posted 1 month ago

You could do something like this:

(HoldForm[6]^40)/(HoldForm[6]^20)
POSTED BY: Eric Rimbey
Posted 1 month ago

You could represent the base, here 6, by a symbol:

(a^40)/(a^20)
(* a^20 *)

In WolframAlpha:

enter image description here

POSTED BY: Hans Milton
Posted 1 month ago

Absolutely fantastic, thank you Hans very much indeed. This is what I wanted, and it show step-by-step solution as well. Big thanks. I would like to thank others for invaluable input, I have learnt a lot today, especially I am curious about The Times newspaper inside Mathematica. best regards, Jacek

POSTED BY: Jacek Jacek

I have only:

  Times @@ Cases[FactorInteger[6^40/6^20], {a_, b_} -> Defer[a^b]]
  (* 2^20 3^20 *)
POSTED BY: Mariusz Iwaniuk
Posted 1 month ago

What is this, when I paste your code into WA or as free form input I get The Times cover of British newspaper.

POSTED BY: Jacek Jacek

You mean 6^(40-20)? Yes, it can, but it is not streamlined in that direction. It takes some effort to work against the grain.

POSTED BY: Gianluca Gorni

You have to prevent automatic evaluation, which is not very easy. Here is a sequence of steps that may do what you have in mind:

HoldForm[(6^40)/(6^20)] == HoldForm[a^b/a^c]
%[[2]] == ReleaseHold[%[[2]]]
%[[2]] == (Inactivate[Evaluate[%[[2]]]] /. {a -> 6, b -> 40, 
    c -> 20})
%[[2]] == Activate[Evaluate[%[[2]]], Plus | Times]
POSTED BY: Gianluca Gorni

Here are a few ideas:

POSTED BY: Marvin Ray Burns
Posted 1 month ago

Thank you, looks so complicated for a simple fraction. Can somehow Wolfram explain just like this: 6^40-20 ?

POSTED BY: Jacek Jacek

Just use 6^(40 - 20) in place of 6^40/6^ 20.

POSTED BY: Marvin Ray Burns
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract