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

# fma(_:_:_:)

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

## Declaration

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

## 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(_:)-75bqn.md)
- [ceil(_:)](simd/ceil(_:)-cu6z.md)
- [erf(_:)](simd/erf(_:)-7tfrz.md)
- [erfc(_:)](simd/erfc(_:)-8i2r6.md)
- [floor(_:)](simd/floor(_:)-21h1y.md)
- [fmod(_:_:)](simd/fmod(_:_:)-81hr1.md)
- [hypot(_:_:)](simd/hypot(_:_:)-9ecpz.md)
- [lgamma(_:)](simd/lgamma(_:)-697vf.md)
- [nextafter(_:_:)](simd/nextafter(_:_:)-6qeuz.md)
- [pow(_:_:)](simd/pow(_:_:)-2ov0n.md)
- [remainder(_:_:)](simd/remainder(_:_:)-1l80m.md)
- [round(_:)](simd/round(_:)-1ith.md)
- [simd_muladd(_:_:_:)](simd/simd_muladd(_:_:_:)-o9lv.md)
- [tgamma(_:)](simd/tgamma(_:)-3id8t.md)
- [trunc(_:)](simd/trunc(_:)-1xvcu.md)
