This document contains definitions for 3 mathematical functions - fact, a recursive function that calculates the factorial of a number; norm, a function that calculates the square root of the sum of the squares of two numbers, returning the Euclidean norm; and twice, a simple function that multiplies a number by 2 and returns the result.
This document contains definitions for 3 mathematical functions - fact, a recursive function that calculates the factorial of a number; norm, a function that calculates the square root of the sum of the squares of two numbers, returning the Euclidean norm; and twice, a simple function that multiplies a number by 2 and returns the result.
This document contains definitions for 3 mathematical functions - fact, a recursive function that calculates the factorial of a number; norm, a function that calculates the square root of the sum of the squares of two numbers, returning the Euclidean norm; and twice, a simple function that multiplies a number by 2 and returns the result.
This document contains definitions for 3 mathematical functions - fact, a recursive function that calculates the factorial of a number; norm, a function that calculates the square root of the sum of the squares of two numbers, returning the Euclidean norm; and twice, a simple function that multiplies a number by 2 and returns the result.