Siebel VB Language Reference > Methods Reference for Siebel VB > Mathematical Methods >

Overview of Mathematical Methods


This topic describes an overview of mathematical methods.

How Some Math Methods Handle the Data Type

Some math methods provide a different return value depending on the following data types of the variable that contains the return value:

  • Integer or currency. The return value is a single-precision number.
  • A single-precision value. The return value is a single-precision number.
  • Long or variant. The return value is a double-precision value.
  • A double-precision value. The return value is a double-precision value.

These methods are noted in this chapter, where appropriate.

Trigonometric Methods

Table 25 lists the trigonometric methods that are available in Siebel VB.

Table 25. Trigonometric Methods
Method
Computation

ArcCoSecant

ArcCoSec(x) = Atn(x/Sqr(x*x-1))+(Sgn(x)-1)*1.5708

ArcCosine

ArcCos(x) = Atn(-x/Sqr(-x*x+1))+1.5708

ArcCoTangent

ArcTan(x) = Atn(x)+1.5708

ArcSecant

ArcSec(x) = Atn(x/Sqr(x*x-1))+Sgn(x-1)*1.5708

ArcSine

ArcSin(x) = Atn(x/Sqr(-x*x+1))

CoSecant

CoSec(x) = 1/Sin(x)

CoTangent

CoTan(x) = 1/Tan(x)

Hyperbolic ArcCoSecant

HArcCoSec(x) = Log((Sgn(x)*Sqr(x*x+1)+1)/x)

Hyperbolic ArcCosine

HArcCos(x) = Log(x+Sqr(x*x-1))

Hyperbolic ArcCoTangent

HArcCoTan(x) = Log((x+1)/(x-1))/2

Hyperbolic ArcSecant

HArcSec(x) = Log((Sqr(-x*x+1)+1)/x)

Hyperbolic ArcSine

HArcSin(x) = Log(x+Sqr(x*x+1))

Hyperbolic ArcTangent

HArcTan(x) = Log((1+x)/(1-x))/2

Hyperbolic CoSecant

HCoSec(x) = 2/(Exp(x)-Exp(-x))

Hyperbolic Cosine

HCos(x) = (Exp(x)+Exp(-x))/2

Hyperbolic Cotangent

HCotan(x) = (Exp(x)+Exp(-x))/ (Exp(x)-Exp(-x))

Hyperbolic Secant

HSec(x) = 2/(Exp(x)+Exp(-x))

Hyperbolic Sine

HSin(x) = (Exp(x)-Exp(-x))/2

Hyperbolic Tangent

HTan(x) = (Exp(x)-Exp(-x))/(Exp(x)+Exp(-x))

Secant

Sec(x) = 1/Cos(x)

Siebel VB Language Reference Copyright © 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices.