<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vDSP_vtrapz",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@vDSP_vtrapz"
  },
  "title" : "vDSP_vtrapz"
}
-->

# vDSP_vtrapz

Performs trapezoidal integration over a single-precision vector.

```
extern void vDSP_vtrapz(const float *__A, vDSP_Stride __IA, const float *__B, float *__C, vDSP_Stride __IC, vDSP_Length __N);
```

## Parameters

`__A`

Single-precision real input vector.

`__IA`

Address stride for `A`.

`__B`

Pointer to single-precision real input scalar: step size.

`__C`

Single-precision real output vector.

`__IC`

Address stride for `C`.

`__N`

The number of elements to process.

## Discussion

Performs the following operation:

![mathematical formula](images/com.apple.accelerate/media-2557740@2x.png)

Estimates the integral of vector `A` using the trapezoidal rule. Scalar `*B` specifies the integration step size. This function can only be done out of place.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)