# angle

Source: https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Graph/angle

```python
Graph.angle(x, *, name=None)
```

Calculate the element-wise argument of an object. This can be a number, an array,
a tensor, or a time-dependent function in the form of a Pwc or an Stf.

### Parameters
* **x** (*number* *or* *np.ndarray* *or* [*Tensor*](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Tensor.md#boulderopal.graph.Tensor) *or* [*Pwc*](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Pwc.md#boulderopal.graph.Pwc) *or* [*Stf*](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Stf.md#boulderopal.graph.Stf)) – The object whose argument you want to calculate, $x$. For numbers,
  arrays, and tensors, the object is converted to a tensor and then the operation is
  applied. For functions of time (Pwcs and Stfs), the composition of the operation with
  the function is computed (that is, the operation is applied to the function values).
* **name** (*str* *or* *None* *,* *optional*) – The name of the node. You can only provide a name if the object is not an Stf.
### Returns
The element-wise argument, $\arg(x)$, of the values or function you provided. The
returned object is a real object of the same kind as the one you provided, except if you
provide a number or an np.ndarray in which case it’s a Tensor.
### Return type
[Tensor](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Tensor.md#boulderopal.graph.Tensor) or [Pwc](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Pwc.md#boulderopal.graph.Pwc) or [Stf](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Stf.md#boulderopal.graph.Stf)

### SEE ALSO
[`Graph.abs`](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Graph/abs.md#boulderopal.graph.Graph.abs)
: Absolute value of a complex object.

[`Graph.complex_value`](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Graph/complex_value.md#boulderopal.graph.Graph.complex_value)
: Create a complex object from its real and imaginary parts.
