how would i go about writing up an equation for euclidian distance using c language. I am quite unfamiliar with the syntax's involved using squared and square roots.
the equation for euclidian distance is:
square root((Xv -Xu)^2 + (Yv-Yu)^2 +(Zv-Zu)^2)
hopefully that made sense. The variables Xv, Yv and Zv represent the equation of vector 1 and then variables Xu, Yu and Zu represent the equation of vector 2. I have already put these into my program and i just need to know how to write that equation up there into the text file so that it works.
Any help is greatly appreciated.