why my code works differently when I take outside some part as a function:
when findH function is inside code, works differently than used as a function. Please help,