The code is derived from the mathematical model as explained in the paper "The Delta Parallel Robot: Kinematics Solutions by Robert L. Williams II, Ph.D". Refer Page: 3-6 & 11-12