<!--
{
  "availability" : [
    "*: -",
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNS/ArithmeticUnaryFunction",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate4BNNSO23ArithmeticUnaryFunctionO"
  },
  "title" : "BNNS.ArithmeticUnaryFunction"
}
-->

# BNNS.ArithmeticUnaryFunction

Constants that describe unary arithmetic functions.

```
enum ArithmeticUnaryFunction
```

## Topics

### Unary Arithmetic Functions

[`case acos`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/acos)

An operation that calculates the element-wise inverse cosine of its input.

[`case acosh`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/acosh)

An operation that calculates the element-wise inverse hyperbolic cosine of its input.

[`case asin`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/asin)

An operation that calculates the element-wise inverse sine of its input.

[`case asinh`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/asinh)

An operation that calculates the element-wise inverse hyperbolic sine of its input.

[`case atan`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/atan)

An operation that calculates the element-wise inverse tangent of its input.

[`case atanh`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/atanh)

An operation that calculates the element-wise inverse hyperbolic tangent of its input.

[`case ceil`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/ceil)

An operation that calculates the element-wise ceiling of its input.

[`case cos`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/cos)

An operation that calculates the element-wise cosine of its input.

[`case cosh`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/cosh)

An operation that calculates the element-wise hyperbolic cosine of its input.

[`case exp`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/exp)

An operation that calculates the element-wise result of *e* raised to the power of its input.

[`case exp2`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/exp2)

An operation that calculates the element-wise result of 2 raised to the power of its input.

[`case floor`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/floor)

An operation that calculates the element-wise floor of its input.

[`case log`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/log)

An operation that calculates the element-wise natural logarithm of its input.

[`case log2`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/log2)

An operation that calculates the element-wise base 2 logarithm of its input.

[`case reciprocalSquareRoot`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/reciprocalSquareRoot)

An operation that calculates the element-wise reciprocal square root of its input.

[`case round`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/round)

An operation that calculates the element-wise rounding of its input.

[`case sin`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/sin)

An operation that calculates the element-wise sine of its input.

[`case sinh`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/sinh)

An operation that calculates the element-wise hyperbolic sine of its input.

[`case squareRoot`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/squareRoot)

An operation that calculates the element-wise square root of its input.

[`case tan`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/tan)

An operation that calculates the element-wise tangent of its input.

[`case tanh`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/tanh)

An operation that calculates the element-wise hyperbolic tangent of its input.

### Instance Properties

[`var bnnsArithmeticFunction: BNNSArithmeticFunction`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/bnnsArithmeticFunction)

The underlying arithmetic function.

### Enumeration Cases

[`case abs`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/abs)

[`case erf`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/erf)

[`case negate`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/negate)

[`case reciprocal`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/reciprocal)

[`case sign`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/sign)

[`case square`](/documentation/Accelerate/BNNS/ArithmeticUnaryFunction/square)

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`CaseIterable`](/documentation/Swift/CaseIterable)

---

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)