solve logarithmic equation using arduino

how to make arduino solve following equation for x
"c1x + c2ln(x) + c3 = 0"
as c1 , c2 , c3 as constants there value determine while program running

Well the first step is to forget Arduino and solve it manually..... Have you done that yet?

i can solve just using numerical methods but doing it by arduino takes time so i was wondering if there a way to solve it in algebraic methods

doing it by arduino takes time

How long does it take ?
How long have you got ?

Hint: what is the antiderivative of ln (x)/x?

thanks all i found a way to solve this equation called lambert w function i will try it and hope to be faster

You can also try Newton Raphson, though it is a bit slow with the log() in there.

With C1=1, C2=2 and C3 = 3 I got pretty good convergence in 10 iterations.

You just have to be careful that your initial X does not cause the log to go negative, and you cannot use X=0.

MohamedSamy:
thanks all i found a way to solve this equation called lambert w function i will try it and hope to be faster

Can you post the code?