From 6dcb0a83a622d387da1b3ca928ff4c4c0857c8ff Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Tue, 19 Sep 2023 23:11:04 -0400 Subject: [PATCH] show factorial equation --- lectures/07_order_notation_recursion/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lectures/07_order_notation_recursion/README.md b/lectures/07_order_notation_recursion/README.md index 7f4da1d..93bff66 100644 --- a/lectures/07_order_notation_recursion/README.md +++ b/lectures/07_order_notation_recursion/README.md @@ -141,18 +141,18 @@ for (int j=i; j 0 -1 n == 0 - Computing integer powers is defined as: +- Factorial is defined for non-negative integers as: +![alt text](factorial_equation.png "factorial equation") + +- Computing integer powers is defined as: n p = ( n · n p−1 p > 0 1 p == 0 - These are both examples of recursive definitions + +These are both examples of recursive definitions ## 7.11 Recursive C++ Functions