cabs

Computes the Euclidean distance between two points as the square root of their respective squares, returning the following value:

sqrt(x[2] + y[2])

Format

#include  <math.h>

double cabs  (cabs_t z);

Arguments

z
A structure of type cabs_t. This type is defined in the <math.h> header file as follows:
typedef struct {double x,y;} cabs_t;

Description

On overflow, the return value is undefined.


Previous Page | Next Page | Table of Contents | Index