search for: hypotenuse

Displaying 2 results from an estimated 2 matches for "hypotenuse".

Did you mean: hypothenuse
2000 May 22
2
hypot(x,y) instead of pythag(a,b) ?!
...=============== >> - Function: double hypot (double X, double Y) >> - Function: float hypotf (float X, float Y) >> - Function: long double hypotl (long double X, long double Y) >> These functions return `sqrt (X*X + Y*Y)'. This is the length of >> the hypotenuse of a right triangle with sides of length X and Y, >> or the distance of the point (X, Y) from the origin. Using this >> function instead of the direct formula is wise, since the error is >> much smaller. See also the function `cabs' in *Note Absolute >>...
2010 Oct 05
4
Linear Integration
Hello I would like to calculate a weighted line integral. The integral is calculated by the cells that this lines trasverses (the small cells belong to matrix (m*n) that represent the value that a specific area has. I need to calculate the weights by finding out how much the line touches or impinges inside a cell. The weight is less if a line just touches one of the four edges of a square