arctan

Graph.arctan(x, *, name=None)

Calculate the element-wise arctangent 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 (float or np.ndarray or Tensor or Pwc or Stf) – The object whose arctangent you want to calculate, xx. Must be real. 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 arctangent, arctanx\arctan{x}, of the values or function you provided. Outputs will be in the range of [π/2,π/2][-\pi/2, \pi/2]. The returned object is 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 or Pwc or Stf

Was this useful?