Question: a. a function with the header: unsigned long factorialFunc( const unsigned long n) that gets the positive integer n and calculates n! [5pts]. n! =
a. a function with the header:
unsigned long factorialFunc( const unsigned long n)
that gets the positive integer n and calculates n! [5pts].
n! = n*(n-1)* (n-2)* (n-3) ... * 3 * 2 * 1;
b. The trigonometric function sin(x) can be approximately calculated using the following formula, where n! is factorial(n) - for example 3!=3*2*1 = 6 (the function in previous problem).

\f
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
