danielhaish
New member
- Joined
- Aug 13, 2019
- Messages
- 7
Hi i am worikng on some encryption program and i need to solve this problem thereis any chance thus is possible using w Limburg function and how
The expression in the subject lineHi i am worikng on some encryption program and i need to solve this problem thereis any chance thus is possible using w Limburg function and how
is it ok now i just need alitle help in solving this kind of problemThe expression in the subject line
x/lenx=n
does not make any sense to me. Please "correct" it and re-post.
Sorry .... I still cannot decipher your problem statement.is it ok now i just need alitle help in solving this kind of problem
in the end i simplified it to 100t-e^t while t=len(x)I would use the function:
[MATH]f(x)=x-n\ln(x)=0[/MATH]
And use the Newton-Raphson method to recursively find the root to a desired accuracy.
tenx it make my program alot more simple becuase now i just use function that allready exsitsTo solve \(\displaystyle \frac{x}{ln(x)}= n\) for x, write it as \(\displaystyle \frac{ln(x)}{x}= \frac{1}{n}\) and let y= 1/x. The equation becomes \(\displaystyle y ln(1/y)= -y ln(y)= \frac{1}{n}\) or \(\displaystyle y ln(y)= -\frac{1}{n}\). NOW you can use Lambert's W function that I think you intended in your first post: \(\displaystyle y= W\left(-\frac{1}{n}\right)\) and then \(\displaystyle x= \frac{1}{W\left(-\frac{1}{n}\right)}\).
hi i tried possed n=10 and then take the x and poss it in education and it doesn't return 10 it return 4To solve \(\displaystyle \frac{x}{ln(x)}= n\) for x, write it as \(\displaystyle \frac{ln(x)}{x}= \frac{1}{n}\) and let y= 1/x. The equation becomes \(\displaystyle y ln(1/y)= -y ln(y)= \frac{1}{n}\) or \(\displaystyle y ln(y)= -\frac{1}{n}\). NOW you can use Lambert's W function that I think you intended in your first post: \(\displaystyle y= W\left(-\frac{1}{n}\right)\) and then \(\displaystyle x= \frac{1}{W\left(-\frac{1}{n}\right)}\).