W wdegler Active Member Licensed User Longtime User Feb 21, 2016 #1 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.
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.
R Roycefer Well-Known Member Licensed User Longtime User Feb 21, 2016 #2 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
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)
W wdegler Active Member Licensed User Longtime User Feb 22, 2016 #3 Roycefer said: 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) Click to expand... Ah, Yes! I didn't notice the Power function. Thank you. With your help, my math major brain is awake now! Upvote 0
Roycefer said: 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) Click to expand... Ah, Yes! I didn't notice the Power function. Thank you. With your help, my math major brain is awake now!