Vector::SinhCosh Method

Overload List

#SignatureDescription
1void SinhCosh(TMtxVec *SinhX, TMtxVec *CoshX) const;Hyperbolic sine and cosine.
2void SinhCosh(TMtxVec *SinhX, TMtxVec *CoshX, int SinhIndex, int CoshIndex, int Index, int Len) const;Calculates the hyperbolic sine and hyperbolic cosine for calling object elements [Index]..[Index+Len-1].

Overload 1: void SinhCosh(TMtxVec *SinhX, TMtxVec *CoshX) const;

Hyperbolic sine and cosine.

#NameTypeDescription
1SinhXTMtxVec *
2CoshXTMtxVec *
Remarks:

Calculates the hyperbolic sine and hyperbolic cosine for all calling object elements and stores the sines to SinhX and cosines to CoshX. Size and Vector::Complex property of SinhX and CoshX are adjusted automatically.

Note
Use this method if you require hyperbolic sine and hyperbolic cosine.

Examples
#include "Math387.h"
#include "MtxExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    Vector a, s, c;

    a.SetIt(false, DewArray<double>{0, PIDIV2, PI});
    a.SinhCosh(s, c);
}
See Also: Vector::Sinh, Vector::Cosh
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 2: void SinhCosh(TMtxVec *SinhX, TMtxVec *CoshX, int SinhIndex, int CoshIndex, int Index, int Len) const;

Calculates the hyperbolic sine and hyperbolic cosine for calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1SinhXTMtxVec *
2CoshXTMtxVec *
3SinhIndexint
4CoshIndexint
5Indexint
6Lenint
Remarks:

Stores the sines to SinhX elemets [SinhIndex]..[SinhIndex+Len-1] and cosines to CoshX elements [CoshIndex]..[CoshIndex+Len-1] elements. Size and Vector::Complex property of SinhX and CoshX objects are not set automatically. An exception is raised if Vector::ConditionCheck and array borders are overrun/underun.

Examples
#include "Math387.h"
#include "MtxExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    Vector a, s, c;

    a = {0, PIDIV2, PI};
    a.SinhCosh(s, c);
}
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler