Exercise 4.5Z: Tangent Hyperbolic and Inverse
In the "Theory Part" it was shown, using the example of a "single parity–check code" that the extrinsic L value with respect to the ith symbol is defined as follows:
- LE(i)=lnPr[wH(x_(−i))iseven|y_]Pr[wH(x_(−i))isodd|y_].
- This equation is also applicable to many other channel codes.
- The code word x_(−i) in this definition includes all symbols except xi and has thus only length n−1.
In the Exercise 4.4 it was shown that the extrinsic L value can also be written as follows:
- LE(i)=ln1+π1−π,withπ=n∏j≠itanh(Lj/2).
In this exercise, we will now look for another calculation possibility.
Hints:
- This exercise belongs to the chapter "Soft–in Soft–out Decoder".
- Reference is made in particular to the "Calculations of extrinsic log likelihood ratios" section.
- Above you can see a table with the numerical values of the function y=tanh(x) ⇒ "hyperbolic tangent".
- With the rows highlighted in red you can read the values of the inverse function x=tanh−1(y) needed for subtask (5).
Questions
Solution
- LE(i)=ln1+π1−π,withπ=3∏j≠itanh(Lj/2).
- From the table on the specification section can be read:
- tanh(L1/2)=tanh(0.5)=0.4621,
- tanh(L2/2)=tanh(0.2)=0.1974.
- Since the hyperbolic tangent is an odd function, the following applies further
- tanh(L3/2)=−tanh(0.5)=−0.4621.
- Calculation of LE(1):
- π=tanh(L2/2)⋅tanh(L3/2)=(+0.1974)⋅(−0.4621)=−0.0912⇒LE(1)=ln1−0.09121+0.0912=−0.1829_.
- Calculation of LE(2):
- π=tanh(L1/2)⋅tanh(L3/2)=(+0.4621)⋅(−0.4621)=−0.2135⇒LE(2)=ln1−0.21351+0.2135=−0.4337_.
- Calculation of LE(3):
- π=tanh(L1/2)⋅tanh(L2/2)=(+0.4621)⋅(+0.1974)=+0.0912⇒LE(3)=ln1+0.09121−0.0912=+0.1829_=−LE(1).
(2) Correct are the solutions 1, 2, 3, and 5: The function
- y=tanh(x)=ex−e−xex+e−x=1−e−2x1+e−2x
is computable for all x values and tanh(−x)=−tanh(x) holds.
- For large values of x: e−2x becomes very small, so that in the limiting case x→∞ the limit y=1 is obtained.
(3) Since the "hyperbolic tangent" only yields values between ±1, the inverse function x=tanh−1(y) can also only be evaluated for |y|≤1.
- By rearranging the given equation
- x=tanh−1(y)=1/2⋅ln1+y1−y
- one obtains:
- e2x=1+y1−y⇒e−2x=1−y1+y⇒(1+y)⋅e−2x=1−y⇒y=1−e−2x1+e−2x=tanh(x).
- This means:
- The equation given in the proposed solution 2 is correct.
- In the limiting case y→1, x=tanh−1(y)→∞ holds.
- Also the inverse function is odd ⇒ in the limiting case y→−1 goes x→−∞.
- Accordingly, the proposed solutions 2 and 4 are correct.
(4) Starting from the equation.
- LE(i)=ln1+π1−π
one arrives with the result of (3) at the equivalent equation corresponding to proposed solution 2:
- LE(i)=2⋅tanh−1(π).
(5) With the result of the subtask (1) we get
- for the first extrinsic L value, since π1=−0.0912:
- LE(1)=2⋅tanh−1(−0.0912)=−2⋅tanh−1(0.0912)=−2⋅0.0915=−0.1830_.
- for the second extrinsic L value, since π2=−0.2135:
- LE(2)=−2⋅tanh−1(0.2135)=−2⋅0.2168=−0.4336_.
- for the third extrinsic L value, since π3=+0.0912=−π1:
- LE(3)=−LE(1)=+0.1830_.
Note:
- The result was determined using the red table entries on the information section.
- Except for rounding errors (multiplication/division by 2), the result agrees with the results of subtask (1).