129
4
4 Instructions 4.4.3 Trigonometric Functions
Example:
M10
ǒDSINH D0 D2Ǔ
S D
M11
When M10 = ON, the sinh of the binary floating-point number in
(D1, D0) is calculated. The result is stored in (D3, D2).
ǒDSINHP D10 D12Ǔ
COSH: Binary oating point COSH operation
◆
Overview
The COSH instruction calculates the cosh of a binary oating-point number. The calculation formula is Cosh
= (e
s
– e
-s
)/2.
COSH S D
Binary oating
point COSH
operation
Applicable model:
H3U
S
Data
source
Binary oating-point variable whose cosh is to be
calculated
32-bit instruction (9
steps)
DCOSH:
Continuous
execution
DCOSHP: Pulse
execution
D
Operation
result
Operation result storage unit
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
◆
Function
The cosh of a binary oating-point number is calculated. The calculation formula is Cosh = (e
s
+ e
-s
)/2.
Example:
M10
ǒDCOSH D0 D2Ǔ
S D
M11
When M10 = ON, the cosh of the binary floating-point number in
(D1, D0) is calculated. The result is stored in (D3, D2).
ǒDCOSHP D10 D12Ǔ