Turns out NAN was being returned since I was computing an operation which divided X and Z by 0. I rectified this by dividing it by one instead
Turns out NAN was being returned since I was computing an operation which divided X and Z by 0. I rectified this by dividing it by one instead