Android Question Antilogarithms

wdegler

Active Member
Licensed User
Longtime User
I see there is a B4A keyword for logarithm but none for antilogarithm. Does anyone have an algorithm or code to compute antilogarithms? I would much rather not have to store an antilogarithm table.
 

Roycefer

Well-Known Member
Licensed User
Longtime User
The Power function should suit your purposes:
B4X:
Dim x As Double = Logarithm(100,10) 'x=2
Dim y As Double = Power(10, x) 'y=100
Log("Antilog of " & x & " base 10 is " & y)
 
Upvote 0

wdegler

Active Member
Licensed User
Longtime User
The Power function should suit your purposes:
B4X:
Dim x As Double = Logarithm(100,10) 'x=2
Dim y As Double = Power(10, x) 'y=100
Log("Antilog of " & x & " base 10 is " & y)
Ah, Yes! I didn't notice the Power function. Thank you. With your help, my math major brain is awake now!
 
Upvote 0
Top