The document contains definitions for 3 functions - fact calculates the factorial of a number n recursively by multiplying n by the factorial of n-1, norm calculates the norm (length) of a vector by taking the square root of the sum of the squares of x and y, and twice simply returns twice the value of its input n.
The document contains definitions for 3 functions - fact calculates the factorial of a number n recursively by multiplying n by the factorial of n-1, norm calculates the norm (length) of a vector by taking the square root of the sum of the squares of x and y, and twice simply returns twice the value of its input n.
The document contains definitions for 3 functions - fact calculates the factorial of a number n recursively by multiplying n by the factorial of n-1, norm calculates the norm (length) of a vector by taking the square root of the sum of the squares of x and y, and twice simply returns twice the value of its input n.
The document contains definitions for 3 functions - fact calculates the factorial of a number n recursively by multiplying n by the factorial of n-1, norm calculates the norm (length) of a vector by taking the square root of the sum of the squares of x and y, and twice simply returns twice the value of its input n.