Skip to content
Snippets Groups Projects
Commit 80526fe7 authored by Goik Martin's avatar Goik Martin
Browse files

Enhanced understanding example

parent ca382b5a
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ public class _2_DigitExpressions {
* <p>A single digit value <code>d</code> may be 0, 1, 2, 3, 4, 5, 6, 7, 8 or 9. Starting from an arbitrary digit
* value \( d \) this method computes \(d + d^2 + d^3 \). Example:</p>
*
* <p>A digit value of 3 will return \(3 + 3 \cdot 3 + 3 \cdot 3 \cdot 3 = 39 \).</p>
* <p>A digit value of 2 will return \(2 + 2 \cdot 2 + 2 \cdot 3 \cdot 3 = 14 \).</p>
*
* @param digit A single digit value ranging from 0 to 9.
* @return \( \texttt{digit} + \texttt{digit}^2 + \texttt{digit}^3 \).
......
......@@ -11,7 +11,7 @@ public class _2_DigitExpressions {
* <p>A single digit value <code>d</code> may be 0, 1, 2, 3, 4, 5, 6, 7, 8 or 9. Starting from an arbitrary digit
* value \( d \) this method computes \(d + d^2 + d^3 \). Example:</p>
*
* <p>A digit value of 3 will return \(3 + 3 \cdot 3 + 3 \cdot 3 \cdot 3 = 39 \).</p>
* <p>A digit value of 2 will return \(2 + 2 \cdot 2 + 2 \cdot 3 \cdot 3 = 14 \).</p>
*
* @param digit A single digit value ranging from 0 to 9.
* @return \( \texttt{digit} + \texttt{digit}^2 + \texttt{digit}^3 \).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment