dwarnold45
Novice
Jul 19, 2011, 2:59 PM
Post #1 of 5
(1707 views)

factor out perfect square

Can't Post


Hi, I am looking for a technique where I can factor out a perfect square. For example, starting with sqrt(75), I want a result of 5*sqrt(3). The routine doesn't have to deal with the square roots signs. I can deal with those. I just need the routine, after being fed the number 75, to return 25 and 3. Another example: Feed the routine 72, it returns 36 and 2. Another example: Feed the routine 486, it returns 81 and 6. Thanks, David
