Manuals/calci/DCOTAN

From ZCubes Wiki
Jump to navigation Jump to search
DCOTAN(x)


  • where x is the angle in Radians
  • by default Calci use Radian as angle

COTAN can be used if the angle is in Radians.

Description

  • This function is used to obtain the Cotangent value of 'x' in degrees.
  • It is the reciprocal of TAN function i.e.,Cotan(x)=1/Tan(x) or Cos(x)/Sin(x).
  • In a right angled triangle Cotan(x) = Adjacent side / Opposite side.
  • To obtain the value in Radians multiply with PI()/180 or use Cotan function COTAN(X)
  • DCOTAN returns NaN if n is not real

The angle can be a single value or any complex array of values.

The following example shows how COTAN is applied to an array of numbers containing numbers 1..10.

  • Type =1..10@COTAN in Calci
  • Type =1..10@SIN or 1..10@COTAN in ZOS
Number COTAN
1 0.642092616
2 -0.457657554
3 -7.015252551
4 0.863691154
5 -0.295812916
6 -3.436353004
7 1.147515422
8 -0.147065064
9 -2.210845411
10 1.542351045

Lets see an example in (Column2Row1)


Returns 1.91754 for DCOTAN(40)

Consider another example in (Column2Row2)

Returns NaN for DCOTAN("abc")


Default Calci
Column1 Column2 Column3 Column4
Row1 40 1.191754
Row2 abc NaN
Row3
Row4
Row5
Row6