"use client";
import o from "./constant.js";
function e(n, r) {
  return function(t) {
    return n + t * r;
  };
}
function i(n, r, t) {
  return n = Math.pow(n, t), r = Math.pow(r, t) - n, t = 1 / t, function(u) {
    return Math.pow(n + u * r, t);
  };
}
function a(n) {
  return (n = +n) == 1 ? c : function(r, t) {
    return t - r ? i(r, t, n) : o(isNaN(r) ? t : r);
  };
}
function c(n, r) {
  var t = r - n;
  return t ? e(n, t) : o(isNaN(n) ? r : n);
}
export {
  c as default,
  a as gamma
};
