@use 'sass:math';
@use 'factorial' as *;

/// Complete the Maclaurin exponentiation.
///
/// @param {Number} $x
/// @param {Number} $n
/// @return {Number} The result of the operation.
///
/// @access public
/// @group Utilities
/// @require {function} factorial
@function exp-maclaurin($x, $n) {
  @return math.div(math.pow($x, $n), factorial($n));
}
