Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DEV and version r097

D toc

Excerpt

Computes the hyperbolic cosine of an input value for a hyperbolic angle measured in radians. The value can be a Decimal or Integer literal or a reference to a column containing numeric values.

A hyperbola is the shape created by taking a planar slice of two cones whose tips are touching each other. For two identical cones, the curves of the slices mirror each other, no matter the angle of the plane through the cones.

  • The two slices represent the set of points on a grid such that:

    where k is some constant.

  • The hyperbolic trigonometric functions measure trigonometric calculations for the right-side (x > 0) slice of the hyperbola.
  • For more information, see https://en.wikipedia.org/wiki/Hyperbola.

The hyperbolic cosine (COSH) function is computed using the following formula:

Hyperbolic secant:

The hyperbolic secant is the following:


You can convert from degrees to radians. For more information, see RADIANS Function.

D s lang vs sql

D s
snippetBasic

Numeric literal example:

D lang syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value: round(sinh(radians(30)),3)

round(cosh(radians(30)),3)

Output: Returns the computation of the hyperbolic cosine of a 30-degree angle, which is converted to radians before being passed to the COSH function. The output value is rounded to three decimals: 1.140.

Column reference example:

D lang syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value: sinh(X) as: 'sinhX'

cosh(X)

Output: Returns the hyperbolic cosine of the radians values in X column.

D s
snippetSyntax

D lang syntax
RawWrangletrue
Typesyntax
showNotetrue
WrangleTextderive type:single value: sinh(numeric_value)

cosh(numeric_value)


ArgumentRequired?Data TypeDescription
numeric_valueYstring, decimal, or integerName of column, Decimal or Integer literal, or function returning those types to apply to the function

D s lang notes

numeric_value

Name of the column, Integer or Decimal literal, or function returning that data type to apply to the function.

  • Missing input values generate missing results.
  • Literal numeric values should not be quoted. Quoted values are treated as strings.
  • Multiple columns and wildcards are not supported.

D s
snippetusage

Required?Data TypeExample Value
YesString (column reference) or Integer or Decimal literal0.5

D s
snippetExamples

Example - Hyperbolic trigonometry functions

Include Page
EXAMPLE - Trigonometry Hyperbolic Functions
EXAMPLE - Trigonometry Hyperbolic Functions

D s also
labeltrigonometry