doesn't mean anything in B4X. And even if it did, it wouldn't be equivalent to JavaScript's Math.LN10. Furthermore, B4X's Logarithm() function requires two arguments: the number and the base.
Try this:
B4X:
Dim totdb as Double = 10*( Logarithm( (Power(alpha,2)-Power(rho,2))/(alpha*(1-Power(rho,2))), cE)/Logarithm(10, cE) )
doesn't mean anything in B4X. And even if it did, it wouldn't be equivalent to JavaScript's Math.LN10. Furthermore, B4X's Logarithm() function requires two arguments: the number and the base.
Try this:
B4X:
Dim totdb as Double = 10*( Logarithm( (Power(alpha,2)-Power(rho,2))/(alpha*(1-Power(rho,2))), cE)/Logarithm(10, cE) )