For example, C=0
,
solve('psi(x)=0')
ans =
-226.83295306016122662496413158295
psi(ans)
???Error using ==> psi
Input must be single or double.
I cannot get the right answer
For example, C=0
,
solve('psi(x)=0')
ans =
-226.83295306016122662496413158295
psi(ans)
???Error using ==> psi
Input must be single or double.
I cannot get the right answer
Interesting...this seems like a bug in
solve
to me...Whatever value I try to solve for, I always get a weird value of around-227
. Even when I try to trick MATLAB by giving an approximation of the digamma, I get the same result or worse:The following numerical approach works: