User Tools

Site Tools


cubloc:acos:index

ACos

The ACos function returns the arc cosine (also known as the inverse cosine) of a numeric value. It computes the angle whose cosine is equal to the given number. This is commonly used in trigonometry, geometry, robotics, motion control, and any application requiring angle reconstruction from ratios or vector calculations.

The Cubloc system performs trigonometric operations using radians as the unit of measure. For the highest accuracy, especially when working with fractional values or performing chained trigonometric computations, it is recommended to use a Single data type.

ACos accepts values in the mathematical domain of –1.0 to +1.0. If the input is outside this range, the result will be undefined.

Example

A = ACos B     ' Returns the angle (in radians) whose cosine equals B.

Explanation:

  • The value of B should represent a cosine, typically obtained from earlier calculations or normalized vector components.
  • ACos B computes the corresponding angle in radians.
  • The resulting angle is stored in A, where it can be used for further processing, such as converting to degrees or feeding into control algorithms.

Go CUBLOC home

cubloc/acos/index.txt · Last modified: by 127.0.0.1