Log2 base

DocMusher
DocMusher New Altair Community Member
edited November 2024 in Community Q&A
How to calculate log2 base using generate attribute?
Sven
Tagged:

Answers

  • David_A
    David_A New Altair Community Member
    Hi Sven,

    the rules for base transformation of logarithms state that logbx = loga x / logab.
    So to transfer from base a =10  to base b=2 in Generate attributes, you just have to use
    log(n) / 0.30103
    Best,
    David