Please follow the rules of posting in this forum, as enunciated at:I need solve for h, so I can write the code.
It looks to me like you will have to solve a cubic. There are formulas for that, but since you are writing a program, a numerical method might be much easier. What have you learned about such methods?I need solve for h, so I can write the code.