Part of a project I'm working on involves calculating a gamma correction value for a color. My question is: Given x, how do I solve x^y=0.5 for y? I know that 0 < x < 1 and y > 0.
Right now I'm doing a binary search to solve for y, but I'd rather have a direct, exact solution and I can't figure it out.
Thanks!
J


2Thanks
LinkBack URL
About LinkBacks

