I'm working on an exercise where I've got "f=0.5938" and a function "fun(n)". How can I identify the n value so that the final result is fun(n)=f ? I tried with "solve" but it wouldn't work (it gave me "S = empty sym: 0-by-1").
f = 0.5938;
syms n;
fun(n) = (0.5 * ((1 + 4*n) – 5 * n^2 + 2 * (n + 2) * log(n)) / ((n^2 – 1) * log(n) – 2 * (n – 1)^2)) – f;
S = solve(fun,n)
Best Answer