<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
guignot wrote:<br>
<blockquote cite="mid200407171153.14181.guignot@wanadoo.fr" type="cite">
  <pre wrap="">Le Samedi 17 Juillet 2004 12:03, Campbell Barton a écrit :
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi, The method is as follows in C

        length = sqrt(pow((v2[0] - v1[0]),2) + pow((v2[1] - v1[1]),2) +
pow((v2[2] - v1[2]),2) );
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Try to avoid pow(x,2), it is too long.

x*x is much faster!


  </pre>
</blockquote>
<br>
x=2.0<br>
n=2.0<br>
 x**n<br>
<br>
for  pow(x,n)<br>
and:<br>
<br>
x=2.0<br>
n=0.5<br>
 x**n<br>
<br>
for  sqrt(2.0) <br>
<br>
</body>
</html>