---
title: "fma(_:_:_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/fma(_:_:_:)-22bjf"
---

# fma(_:_:_:)

Returns the multiply-add result for corresponding elements in three vectors.

## Declaration

```swift
func fma(_ x: simd_float3, _ y: simd_float3, _ z: simd_float3) -> simd_float3
```

## Parameters

- `x`: The x in x*y + z.
- `y`: The y in x*y + z.
- `z`: The z in x*y + z.

## Return Value

Return Value The result of x*y + z.

## See Also

### Math Functions

- [cbrt(_:)](simd/cbrt(_:)-6vcwl.md)
- [ceil(_:)](simd/ceil(_:)-580ar.md)
- [erf(_:)](simd/erf(_:)-2fow4.md)
- [erfc(_:)](simd/erfc(_:)-7e6kk.md)
- [floor(_:)](simd/floor(_:)-50q1o.md)
- [fmod(_:_:)](simd/fmod(_:_:)-3x8lc.md)
- [hypot(_:_:)](simd/hypot(_:_:)-4xggy.md)
- [lgamma(_:)](simd/lgamma(_:)-7kgzo.md)
- [nextafter(_:_:)](simd/nextafter(_:_:)-ymwd.md)
- [pow(_:_:)](simd/pow(_:_:)-65mb9.md)
- [remainder(_:_:)](simd/remainder(_:_:)-7ij10.md)
- [round(_:)](simd/round(_:)-1tl5h.md)
- [simd_muladd(_:_:_:)](simd/simd_muladd(_:_:_:)-8a66m.md)
- [tgamma(_:)](simd/tgamma(_:)-6difz.md)
- [trunc(_:)](simd/trunc(_:)-9byjt.md)
