Function

# vDSP_vpythgD(_:_:_:_:_:_:_:_:_:_:_:)

Calculates the double-precision hypotenuse of `N` triangles.

## Parameters

`__A`

Double-precision real input vector.

`__IA`

Stride for `A`.

`__B`

Double-precision real input vector.

`__IB`

Stride for `B`.

`__C`

Double-precision real input vector.

`__IC`

Stride for `C`.

`__D`

Double-precision real input vector.

`__ID`

Stride for `D`.

`__E`

Double-precision real output vector.

`__IE`

Stride for `E`.

`__N`

The number of elements to process.

## Discussion

The `vDSP_vpythg(_:_:_:_:_:_:_:_:_:_:_:)` and `vDSP_vpythgD(_:_:_:_:_:_:_:_:_:_:_:)` functions return the length of the hypotenuse of `N` number of triangles. The differences between corresponding elements of vectors `A` and `C`, and `B` and `D` define the lengths of the two legs of each triangle.

The functions use the following operation:

For example, the following code specifies a series of lengths of the two legs (that is, the sides adjacent to the right angle) of a series of triangles:

Use `vDSP_vpythg(_:_:_:_:_:_:_:_:_:_:_:)` to calculate the lengths of the hypotenuses: