TransWikia.com

How to determine if a number is an integer power?

Mathematica Asked on April 18, 2021

How can I do simple tests like determining if an integer is a power of 2? Mathematically, the result below should be True, and I understand why it doesn’t work on MMa, but how do I do this test properly so I’ll get a correct result?

IntegerQ[Log[1024]/Log[2]]

False

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP