Adam_Duski Posted January 12, 2014 Share Posted January 12, 2014 i have this Logarithm equation ... the one in the red circle is the question ...soo i wanna know how to solve that equation with PHP ? Quote Link to comment https://forums.phpfreaks.com/topic/285303-logarithm-equation/ Share on other sites More sharing options...
kicken Posted January 12, 2014 Share Posted January 12, 2014 log Quote Link to comment https://forums.phpfreaks.com/topic/285303-logarithm-equation/#findComment-1464918 Share on other sites More sharing options...
Adam_Duski Posted January 12, 2014 Author Share Posted January 12, 2014 Thank you kicken ! but i don't know how solve it Quote Link to comment https://forums.phpfreaks.com/topic/285303-logarithm-equation/#findComment-1464922 Share on other sites More sharing options...
requinix Posted January 12, 2014 Share Posted January 12, 2014 sqrt? What don't you understand? It's an equation. Translate that equation into code and you'll get your answer. Quote Link to comment https://forums.phpfreaks.com/topic/285303-logarithm-equation/#findComment-1464925 Share on other sites More sharing options...
Solution dungpt29 Posted January 12, 2014 Solution Share Posted January 12, 2014 Note that: x = exp(log(x)); So, 1/5 = 5-1 = exp(log(5-1)) = exp(-log(5)); The PHP code to solve the equation should be: $x = log(sqrt(5),exp(-log(5))); Quote Link to comment https://forums.phpfreaks.com/topic/285303-logarithm-equation/#findComment-1464938 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.