You are here: Symbol Reference > MtxExpr Namespace > Classes > Vector Record > public > Tanh Method > Vector.Tanh Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
Vector.Tanh Method ()

Hyperbolic tangens.

Pascal
function Tanh: TMtxVec; overload;

Calculate the hyperbolic tangens of all caling object elements in-place.

var a,b: Vector; begin a.SetIt(False,[1,1.5,2,0.3]); a.Tanh; //or a := Tanh(a); //same as a.Tanh (in place operation) b := Tanh(a); //not in place b.Tanh(a); //not in place end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!