@lakutata/math 0.0.0-stage → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +23 -0
- package/README.md +954 -2
- package/README.zh-CN.md +578 -0
- package/THIRD_PARTY_NOTICES.md +553 -0
- package/binding.gyp +89 -0
- package/dist/cjs/exceptions/MathArgumentException.d.ts +11 -0
- package/dist/cjs/exceptions/MathArgumentException.js +18 -0
- package/dist/cjs/exceptions/MathCancelledException.d.ts +10 -0
- package/dist/cjs/exceptions/MathCancelledException.js +17 -0
- package/dist/cjs/exceptions/MathDefinitionException.d.ts +11 -0
- package/dist/cjs/exceptions/MathDefinitionException.js +18 -0
- package/dist/cjs/exceptions/MathDivisionByZeroException.d.ts +10 -0
- package/dist/cjs/exceptions/MathDivisionByZeroException.js +17 -0
- package/dist/cjs/exceptions/MathDomainException.d.ts +11 -0
- package/dist/cjs/exceptions/MathDomainException.js +18 -0
- package/dist/cjs/exceptions/MathException.d.ts +19 -0
- package/dist/cjs/exceptions/MathException.js +22 -0
- package/dist/cjs/exceptions/MathNotSupportedException.d.ts +11 -0
- package/dist/cjs/exceptions/MathNotSupportedException.js +18 -0
- package/dist/cjs/exceptions/MathSyntaxException.d.ts +11 -0
- package/dist/cjs/exceptions/MathSyntaxException.js +18 -0
- package/dist/cjs/exceptions/MathTimeoutException.d.ts +10 -0
- package/dist/cjs/exceptions/MathTimeoutException.js +17 -0
- package/dist/cjs/exceptions/MathUnitException.d.ts +11 -0
- package/dist/cjs/exceptions/MathUnitException.js +18 -0
- package/dist/cjs/exceptions/MathUnknownFunctionException.d.ts +12 -0
- package/dist/cjs/exceptions/MathUnknownFunctionException.js +19 -0
- package/dist/cjs/exports/Math.d.ts +28 -0
- package/dist/cjs/exports/Math.js +84 -0
- package/dist/cjs/lib/Addon.d.ts +5 -0
- package/dist/cjs/lib/Addon.js +9 -0
- package/dist/cjs/lib/Context.d.ts +90 -0
- package/dist/cjs/lib/Context.js +134 -0
- package/dist/cjs/lib/Decimal.d.ts +276 -0
- package/dist/cjs/lib/Decimal.js +402 -0
- package/dist/cjs/lib/Defaults.d.ts +273 -0
- package/dist/cjs/lib/Defaults.js +308 -0
- package/dist/cjs/lib/Distribution.d.ts +177 -0
- package/dist/cjs/lib/Distribution.js +195 -0
- package/dist/cjs/lib/Expression.d.ts +791 -0
- package/dist/cjs/lib/Expression.js +991 -0
- package/dist/cjs/lib/ExpressionMatrix.d.ts +284 -0
- package/dist/cjs/lib/ExpressionMatrix.js +412 -0
- package/dist/cjs/lib/LinearAlgebra.d.ts +613 -0
- package/dist/cjs/lib/LinearAlgebra.js +712 -0
- package/dist/cjs/lib/MathScope.d.ts +268 -0
- package/dist/cjs/lib/MathScope.js +316 -0
- package/dist/cjs/lib/MathSet.d.ts +139 -0
- package/dist/cjs/lib/MathSet.js +376 -0
- package/dist/cjs/lib/Matrix.d.ts +212 -0
- package/dist/cjs/lib/Matrix.js +393 -0
- package/dist/cjs/lib/Native.d.ts +80 -0
- package/dist/cjs/lib/Native.js +61 -0
- package/dist/cjs/lib/NumberTheory.d.ts +356 -0
- package/dist/cjs/lib/NumberTheory.js +524 -0
- package/dist/cjs/lib/Numeric.d.ts +363 -0
- package/dist/cjs/lib/Numeric.js +243 -0
- package/dist/cjs/lib/Polynomials.d.ts +140 -0
- package/dist/cjs/lib/Polynomials.js +167 -0
- package/dist/cjs/lib/SparseMatrix.d.ts +125 -0
- package/dist/cjs/lib/SparseMatrix.js +341 -0
- package/dist/cjs/lib/Statistics.d.ts +366 -0
- package/dist/cjs/lib/Statistics.js +380 -0
- package/dist/cjs/lib/Unit.d.ts +342 -0
- package/dist/cjs/lib/Unit.js +1027 -0
- package/dist/cjs/lib/UnitTable.d.ts +39 -0
- package/dist/cjs/lib/UnitTable.js +634 -0
- package/dist/cjs/package.json +1 -0
- package/dist/esm/exceptions/MathArgumentException.js +14 -0
- package/dist/esm/exceptions/MathCancelledException.js +13 -0
- package/dist/esm/exceptions/MathDefinitionException.js +14 -0
- package/dist/esm/exceptions/MathDivisionByZeroException.js +13 -0
- package/dist/esm/exceptions/MathDomainException.js +14 -0
- package/dist/esm/exceptions/MathException.js +18 -0
- package/dist/esm/exceptions/MathNotSupportedException.js +14 -0
- package/dist/esm/exceptions/MathSyntaxException.js +14 -0
- package/dist/esm/exceptions/MathTimeoutException.js +13 -0
- package/dist/esm/exceptions/MathUnitException.js +14 -0
- package/dist/esm/exceptions/MathUnknownFunctionException.js +15 -0
- package/dist/esm/exports/Math.js +26 -0
- package/dist/esm/lib/Addon.js +10 -0
- package/dist/esm/lib/Context.js +128 -0
- package/dist/esm/lib/Decimal.js +397 -0
- package/dist/esm/lib/Defaults.js +290 -0
- package/dist/esm/lib/Distribution.js +190 -0
- package/dist/esm/lib/Expression.js +979 -0
- package/dist/esm/lib/ExpressionMatrix.js +407 -0
- package/dist/esm/lib/LinearAlgebra.js +708 -0
- package/dist/esm/lib/MathScope.js +311 -0
- package/dist/esm/lib/MathSet.js +370 -0
- package/dist/esm/lib/Matrix.js +382 -0
- package/dist/esm/lib/Native.js +56 -0
- package/dist/esm/lib/NumberTheory.js +520 -0
- package/dist/esm/lib/Numeric.js +239 -0
- package/dist/esm/lib/Polynomials.js +163 -0
- package/dist/esm/lib/SparseMatrix.js +332 -0
- package/dist/esm/lib/Statistics.js +376 -0
- package/dist/esm/lib/Unit.js +1018 -0
- package/dist/esm/lib/UnitTable.js +631 -0
- package/dist/types/exceptions/MathArgumentException.d.ts +11 -0
- package/dist/types/exceptions/MathCancelledException.d.ts +10 -0
- package/dist/types/exceptions/MathDefinitionException.d.ts +11 -0
- package/dist/types/exceptions/MathDivisionByZeroException.d.ts +10 -0
- package/dist/types/exceptions/MathDomainException.d.ts +11 -0
- package/dist/types/exceptions/MathException.d.ts +19 -0
- package/dist/types/exceptions/MathNotSupportedException.d.ts +11 -0
- package/dist/types/exceptions/MathSyntaxException.d.ts +11 -0
- package/dist/types/exceptions/MathTimeoutException.d.ts +10 -0
- package/dist/types/exceptions/MathUnitException.d.ts +11 -0
- package/dist/types/exceptions/MathUnknownFunctionException.d.ts +12 -0
- package/dist/types/exports/Math.d.ts +28 -0
- package/dist/types/lib/Addon.d.ts +5 -0
- package/dist/types/lib/Context.d.ts +90 -0
- package/dist/types/lib/Decimal.d.ts +276 -0
- package/dist/types/lib/Defaults.d.ts +273 -0
- package/dist/types/lib/Distribution.d.ts +177 -0
- package/dist/types/lib/Expression.d.ts +791 -0
- package/dist/types/lib/ExpressionMatrix.d.ts +284 -0
- package/dist/types/lib/LinearAlgebra.d.ts +613 -0
- package/dist/types/lib/MathScope.d.ts +268 -0
- package/dist/types/lib/MathSet.d.ts +139 -0
- package/dist/types/lib/Matrix.d.ts +212 -0
- package/dist/types/lib/Native.d.ts +80 -0
- package/dist/types/lib/NumberTheory.d.ts +356 -0
- package/dist/types/lib/Numeric.d.ts +363 -0
- package/dist/types/lib/Polynomials.d.ts +140 -0
- package/dist/types/lib/SparseMatrix.d.ts +125 -0
- package/dist/types/lib/Statistics.d.ts +366 -0
- package/dist/types/lib/Unit.d.ts +342 -0
- package/dist/types/lib/UnitTable.d.ts +39 -0
- package/native/addon.cpp +1374 -0
- package/native/async/Pool.cpp +133 -0
- package/native/async/Pool.h +59 -0
- package/native/config/boost_math_policy.h +26 -0
- package/native/config/mpdecimal/mpdecimal.h +809 -0
- package/native/config/symengine/symengine_config.h +44 -0
- package/native/config/symengine/symengine_export.h +19 -0
- package/native/core/Errors.cpp +77 -0
- package/native/core/Errors.h +72 -0
- package/native/core/Handle.cpp +109 -0
- package/native/core/Handle.h +72 -0
- package/native/core/Scope.cpp +122 -0
- package/native/core/Scope.h +36 -0
- package/native/functions/Functions.cpp +468 -0
- package/native/functions/Functions.h +115 -0
- package/native/functions/Gosper.cpp +429 -0
- package/native/functions/Gosper.h +20 -0
- package/native/functions/SpecialIntegrals.cpp +329 -0
- package/native/functions/SpecialIntegrals.h +53 -0
- package/native/functions/Summation.cpp +645 -0
- package/native/functions/Summation.h +42 -0
- package/native/integrals/Integrals.cpp +1428 -0
- package/native/integrals/Integrals.h +32 -0
- package/native/limits/Gruntz.cpp +1332 -0
- package/native/limits/Gruntz.h +24 -0
- package/native/linalg/Decompositions.cpp +159 -0
- package/native/linalg/Functions.cpp +199 -0
- package/native/linalg/Linalg.cpp +123 -0
- package/native/linalg/Linalg.h +67 -0
- package/native/linalg/LinalgSupport.h +69 -0
- package/native/linalg/Sparse.cpp +172 -0
- package/native/matrix/Matrices.cpp +766 -0
- package/native/matrix/Matrices.h +74 -0
- package/native/ntheory/NumberTheory.cpp +754 -0
- package/native/ntheory/NumberTheory.h +56 -0
- package/native/numeric/Compiled.cpp +93 -0
- package/native/numeric/Compiled.h +49 -0
- package/native/numeric/Integrate.cpp +718 -0
- package/native/numeric/Numeric.h +95 -0
- package/native/numeric/ODE.cpp +542 -0
- package/native/numeric/Roots.cpp +402 -0
- package/native/ops/Decimal.cpp +776 -0
- package/native/ops/Decimal.h +182 -0
- package/native/ops/DecimalComplex.cpp +738 -0
- package/native/ops/DecimalEvaluator.h +79 -0
- package/native/ops/DecimalFunctions.cpp +439 -0
- package/native/ops/DecimalOperations.cpp +236 -0
- package/native/ops/DecimalSpecial.cpp +1028 -0
- package/native/ops/DecimalSupport.h +109 -0
- package/native/ops/Operations.cpp +969 -0
- package/native/ops/Operations.h +120 -0
- package/native/ops/Piecewise.cpp +195 -0
- package/native/ops/Piecewise.h +40 -0
- package/native/parser/Parser.cpp +853 -0
- package/native/parser/Parser.h +56 -0
- package/native/poly/Convert.cpp +210 -0
- package/native/poly/Convert.h +40 -0
- package/native/poly/Dense.cpp +1008 -0
- package/native/poly/Dense.h +136 -0
- package/native/poly/Euclid.cpp +446 -0
- package/native/poly/Euclid.h +44 -0
- package/native/poly/Factor.cpp +919 -0
- package/native/poly/Factor.h +36 -0
- package/native/poly/Galois.cpp +439 -0
- package/native/poly/Galois.h +86 -0
- package/native/poly/Inequalities.cpp +227 -0
- package/native/poly/Inequalities.h +21 -0
- package/native/poly/Poly.cpp +338 -0
- package/native/poly/Poly.h +46 -0
- package/native/poly/Rational.cpp +403 -0
- package/native/poly/Rational.h +33 -0
- package/native/poly/RealRoots.cpp +136 -0
- package/native/poly/RealRoots.h +35 -0
- package/native/printer/Printer.cpp +973 -0
- package/native/printer/Printer.h +23 -0
- package/native/simplify/Simplify.cpp +921 -0
- package/native/simplify/Simplify.h +21 -0
- package/native/stats/Distributions.cpp +392 -0
- package/native/stats/Distributions.h +33 -0
- package/native/stats/Statistics.cpp +255 -0
- package/native/stats/Statistics.h +25 -0
- package/package.json +85 -4
- package/scripts/sources.mjs +35 -0
- package/vendor/PATCHES.md +169 -0
- package/vendor/boost/config/README.md +43 -0
- package/vendor/boost/config/include/boost/config/abi/borland_prefix.hpp +27 -0
- package/vendor/boost/config/include/boost/config/abi/borland_suffix.hpp +12 -0
- package/vendor/boost/config/include/boost/config/abi/msvc_prefix.hpp +22 -0
- package/vendor/boost/config/include/boost/config/abi/msvc_suffix.hpp +8 -0
- package/vendor/boost/config/include/boost/config/abi_prefix.hpp +25 -0
- package/vendor/boost/config/include/boost/config/abi_suffix.hpp +25 -0
- package/vendor/boost/config/include/boost/config/assert_cxx03.hpp +211 -0
- package/vendor/boost/config/include/boost/config/assert_cxx11.hpp +212 -0
- package/vendor/boost/config/include/boost/config/assert_cxx14.hpp +47 -0
- package/vendor/boost/config/include/boost/config/assert_cxx17.hpp +65 -0
- package/vendor/boost/config/include/boost/config/assert_cxx20.hpp +59 -0
- package/vendor/boost/config/include/boost/config/assert_cxx23.hpp +41 -0
- package/vendor/boost/config/include/boost/config/assert_cxx98.hpp +23 -0
- package/vendor/boost/config/include/boost/config/auto_link.hpp +530 -0
- package/vendor/boost/config/include/boost/config/compiler/borland.hpp +342 -0
- package/vendor/boost/config/include/boost/config/compiler/clang.hpp +370 -0
- package/vendor/boost/config/include/boost/config/compiler/clang_version.hpp +98 -0
- package/vendor/boost/config/include/boost/config/compiler/codegear.hpp +389 -0
- package/vendor/boost/config/include/boost/config/compiler/comeau.hpp +59 -0
- package/vendor/boost/config/include/boost/config/compiler/common_edg.hpp +185 -0
- package/vendor/boost/config/include/boost/config/compiler/compaq_cxx.hpp +19 -0
- package/vendor/boost/config/include/boost/config/compiler/cray.hpp +446 -0
- package/vendor/boost/config/include/boost/config/compiler/diab.hpp +26 -0
- package/vendor/boost/config/include/boost/config/compiler/digitalmars.hpp +146 -0
- package/vendor/boost/config/include/boost/config/compiler/gcc.hpp +386 -0
- package/vendor/boost/config/include/boost/config/compiler/gcc_xml.hpp +115 -0
- package/vendor/boost/config/include/boost/config/compiler/greenhills.hpp +28 -0
- package/vendor/boost/config/include/boost/config/compiler/hp_acc.hpp +153 -0
- package/vendor/boost/config/include/boost/config/compiler/intel.hpp +577 -0
- package/vendor/boost/config/include/boost/config/compiler/kai.hpp +33 -0
- package/vendor/boost/config/include/boost/config/compiler/metrowerks.hpp +201 -0
- package/vendor/boost/config/include/boost/config/compiler/mpw.hpp +143 -0
- package/vendor/boost/config/include/boost/config/compiler/nvcc.hpp +64 -0
- package/vendor/boost/config/include/boost/config/compiler/pathscale.hpp +141 -0
- package/vendor/boost/config/include/boost/config/compiler/pgi.hpp +23 -0
- package/vendor/boost/config/include/boost/config/compiler/sgi_mipspro.hpp +29 -0
- package/vendor/boost/config/include/boost/config/compiler/sunpro_cc.hpp +225 -0
- package/vendor/boost/config/include/boost/config/compiler/vacpp.hpp +189 -0
- package/vendor/boost/config/include/boost/config/compiler/visualc.hpp +400 -0
- package/vendor/boost/config/include/boost/config/compiler/xlcpp.hpp +303 -0
- package/vendor/boost/config/include/boost/config/compiler/xlcpp_zos.hpp +174 -0
- package/vendor/boost/config/include/boost/config/detail/cxx_composite.hpp +218 -0
- package/vendor/boost/config/include/boost/config/detail/posix_features.hpp +95 -0
- package/vendor/boost/config/include/boost/config/detail/select_compiler_config.hpp +157 -0
- package/vendor/boost/config/include/boost/config/detail/select_platform_config.hpp +147 -0
- package/vendor/boost/config/include/boost/config/detail/select_stdlib_config.hpp +121 -0
- package/vendor/boost/config/include/boost/config/detail/suffix.hpp +1334 -0
- package/vendor/boost/config/include/boost/config/header_deprecated.hpp +26 -0
- package/vendor/boost/config/include/boost/config/helper_macros.hpp +37 -0
- package/vendor/boost/config/include/boost/config/no_tr1/cmath.hpp +28 -0
- package/vendor/boost/config/include/boost/config/no_tr1/complex.hpp +28 -0
- package/vendor/boost/config/include/boost/config/no_tr1/functional.hpp +28 -0
- package/vendor/boost/config/include/boost/config/no_tr1/memory.hpp +28 -0
- package/vendor/boost/config/include/boost/config/no_tr1/utility.hpp +28 -0
- package/vendor/boost/config/include/boost/config/platform/aix.hpp +33 -0
- package/vendor/boost/config/include/boost/config/platform/amigaos.hpp +15 -0
- package/vendor/boost/config/include/boost/config/platform/beos.hpp +26 -0
- package/vendor/boost/config/include/boost/config/platform/bsd.hpp +83 -0
- package/vendor/boost/config/include/boost/config/platform/cloudabi.hpp +18 -0
- package/vendor/boost/config/include/boost/config/platform/cray.hpp +18 -0
- package/vendor/boost/config/include/boost/config/platform/cygwin.hpp +71 -0
- package/vendor/boost/config/include/boost/config/platform/haiku.hpp +31 -0
- package/vendor/boost/config/include/boost/config/platform/hpux.hpp +87 -0
- package/vendor/boost/config/include/boost/config/platform/irix.hpp +31 -0
- package/vendor/boost/config/include/boost/config/platform/linux.hpp +106 -0
- package/vendor/boost/config/include/boost/config/platform/macos.hpp +87 -0
- package/vendor/boost/config/include/boost/config/platform/qnxnto.hpp +31 -0
- package/vendor/boost/config/include/boost/config/platform/solaris.hpp +31 -0
- package/vendor/boost/config/include/boost/config/platform/symbian.hpp +97 -0
- package/vendor/boost/config/include/boost/config/platform/vms.hpp +25 -0
- package/vendor/boost/config/include/boost/config/platform/vxworks.hpp +422 -0
- package/vendor/boost/config/include/boost/config/platform/wasm.hpp +23 -0
- package/vendor/boost/config/include/boost/config/platform/win32.hpp +90 -0
- package/vendor/boost/config/include/boost/config/platform/zos.hpp +32 -0
- package/vendor/boost/config/include/boost/config/pragma_message.hpp +31 -0
- package/vendor/boost/config/include/boost/config/requires_threads.hpp +92 -0
- package/vendor/boost/config/include/boost/config/stdlib/dinkumware.hpp +324 -0
- package/vendor/boost/config/include/boost/config/stdlib/libcomo.hpp +93 -0
- package/vendor/boost/config/include/boost/config/stdlib/libcpp.hpp +185 -0
- package/vendor/boost/config/include/boost/config/stdlib/libstdcpp3.hpp +482 -0
- package/vendor/boost/config/include/boost/config/stdlib/modena.hpp +79 -0
- package/vendor/boost/config/include/boost/config/stdlib/msl.hpp +98 -0
- package/vendor/boost/config/include/boost/config/stdlib/roguewave.hpp +208 -0
- package/vendor/boost/config/include/boost/config/stdlib/sgi.hpp +168 -0
- package/vendor/boost/config/include/boost/config/stdlib/stlport.hpp +258 -0
- package/vendor/boost/config/include/boost/config/stdlib/vacpp.hpp +74 -0
- package/vendor/boost/config/include/boost/config/stdlib/xlcpp_zos.hpp +61 -0
- package/vendor/boost/config/include/boost/config/user.hpp +133 -0
- package/vendor/boost/config/include/boost/config/warning_disable.hpp +47 -0
- package/vendor/boost/config/include/boost/config/workaround.hpp +310 -0
- package/vendor/boost/config/include/boost/config.hpp +67 -0
- package/vendor/boost/config/include/boost/cstdint.hpp +556 -0
- package/vendor/boost/config/include/boost/cxx11_char_types.hpp +70 -0
- package/vendor/boost/config/include/boost/detail/workaround.hpp +10 -0
- package/vendor/boost/config/include/boost/limits.hpp +146 -0
- package/vendor/boost/config/include/boost/static_assert.hpp +179 -0
- package/vendor/boost/config/include/boost/version.hpp +32 -0
- package/vendor/boost/math/LICENSE +23 -0
- package/vendor/boost/math/README.md +184 -0
- package/vendor/boost/math/include/boost/cstdfloat.hpp +58 -0
- package/vendor/boost/math/include/boost/math/bindings/detail/big_digamma.hpp +297 -0
- package/vendor/boost/math/include/boost/math/bindings/detail/big_lanczos.hpp +777 -0
- package/vendor/boost/math/include/boost/math/bindings/mpfr.hpp +974 -0
- package/vendor/boost/math/include/boost/math/bindings/mpreal.hpp +921 -0
- package/vendor/boost/math/include/boost/math/bindings/rr.hpp +876 -0
- package/vendor/boost/math/include/boost/math/ccmath/abs.hpp +89 -0
- package/vendor/boost/math/include/boost/math/ccmath/ccmath.hpp +45 -0
- package/vendor/boost/math/include/boost/math/ccmath/ceil.hpp +78 -0
- package/vendor/boost/math/include/boost/math/ccmath/copysign.hpp +81 -0
- package/vendor/boost/math/include/boost/math/ccmath/detail/config.hpp +52 -0
- package/vendor/boost/math/include/boost/math/ccmath/detail/swap.hpp +21 -0
- package/vendor/boost/math/include/boost/math/ccmath/div.hpp +86 -0
- package/vendor/boost/math/include/boost/math/ccmath/fabs.hpp +41 -0
- package/vendor/boost/math/include/boost/math/ccmath/fdim.hpp +93 -0
- package/vendor/boost/math/include/boost/math/ccmath/floor.hpp +131 -0
- package/vendor/boost/math/include/boost/math/ccmath/fma.hpp +130 -0
- package/vendor/boost/math/include/boost/math/ccmath/fmax.hpp +89 -0
- package/vendor/boost/math/include/boost/math/ccmath/fmin.hpp +89 -0
- package/vendor/boost/math/include/boost/math/ccmath/fmod.hpp +114 -0
- package/vendor/boost/math/include/boost/math/ccmath/fpclassify.hpp +48 -0
- package/vendor/boost/math/include/boost/math/ccmath/frexp.hpp +101 -0
- package/vendor/boost/math/include/boost/math/ccmath/hypot.hpp +116 -0
- package/vendor/boost/math/include/boost/math/ccmath/ilogb.hpp +60 -0
- package/vendor/boost/math/include/boost/math/ccmath/isfinite.hpp +53 -0
- package/vendor/boost/math/include/boost/math/ccmath/isgreater.hpp +42 -0
- package/vendor/boost/math/include/boost/math/ccmath/isgreaterequal.hpp +42 -0
- package/vendor/boost/math/include/boost/math/ccmath/isinf.hpp +61 -0
- package/vendor/boost/math/include/boost/math/ccmath/isless.hpp +42 -0
- package/vendor/boost/math/include/boost/math/ccmath/islessequal.hpp +42 -0
- package/vendor/boost/math/include/boost/math/ccmath/isnan.hpp +42 -0
- package/vendor/boost/math/include/boost/math/ccmath/isnormal.hpp +47 -0
- package/vendor/boost/math/include/boost/math/ccmath/isunordered.hpp +35 -0
- package/vendor/boost/math/include/boost/math/ccmath/ldexp.hpp +81 -0
- package/vendor/boost/math/include/boost/math/ccmath/logb.hpp +86 -0
- package/vendor/boost/math/include/boost/math/ccmath/modf.hpp +79 -0
- package/vendor/boost/math/include/boost/math/ccmath/next.hpp +458 -0
- package/vendor/boost/math/include/boost/math/ccmath/remainder.hpp +106 -0
- package/vendor/boost/math/include/boost/math/ccmath/round.hpp +179 -0
- package/vendor/boost/math/include/boost/math/ccmath/scalbln.hpp +60 -0
- package/vendor/boost/math/include/boost/math/ccmath/scalbn.hpp +81 -0
- package/vendor/boost/math/include/boost/math/ccmath/signbit.hpp +218 -0
- package/vendor/boost/math/include/boost/math/ccmath/sqrt.hpp +80 -0
- package/vendor/boost/math/include/boost/math/ccmath/trunc.hpp +70 -0
- package/vendor/boost/math/include/boost/math/common_factor.hpp +23 -0
- package/vendor/boost/math/include/boost/math/common_factor_ct.hpp +34 -0
- package/vendor/boost/math/include/boost/math/common_factor_rt.hpp +30 -0
- package/vendor/boost/math/include/boost/math/complex/acos.hpp +245 -0
- package/vendor/boost/math/include/boost/math/complex/acosh.hpp +34 -0
- package/vendor/boost/math/include/boost/math/complex/asin.hpp +252 -0
- package/vendor/boost/math/include/boost/math/complex/asinh.hpp +32 -0
- package/vendor/boost/math/include/boost/math/complex/atan.hpp +36 -0
- package/vendor/boost/math/include/boost/math/complex/atanh.hpp +214 -0
- package/vendor/boost/math/include/boost/math/complex/details.hpp +68 -0
- package/vendor/boost/math/include/boost/math/complex/fabs.hpp +23 -0
- package/vendor/boost/math/include/boost/math/complex.hpp +32 -0
- package/vendor/boost/math/include/boost/math/concepts/distributions.hpp +497 -0
- package/vendor/boost/math/include/boost/math/concepts/real_concept.hpp +400 -0
- package/vendor/boost/math/include/boost/math/concepts/real_type_concept.hpp +119 -0
- package/vendor/boost/math/include/boost/math/concepts/std_real_concept.hpp +427 -0
- package/vendor/boost/math/include/boost/math/constants/calculate_constants.hpp +1117 -0
- package/vendor/boost/math/include/boost/math/constants/constants.hpp +360 -0
- package/vendor/boost/math/include/boost/math/constants/info.hpp +169 -0
- package/vendor/boost/math/include/boost/math/cstdfloat/cstdfloat_cmath.hpp +1012 -0
- package/vendor/boost/math/include/boost/math/cstdfloat/cstdfloat_complex.hpp +38 -0
- package/vendor/boost/math/include/boost/math/cstdfloat/cstdfloat_complex_std.hpp +813 -0
- package/vendor/boost/math/include/boost/math/cstdfloat/cstdfloat_iostream.hpp +822 -0
- package/vendor/boost/math/include/boost/math/cstdfloat/cstdfloat_limits.hpp +87 -0
- package/vendor/boost/math/include/boost/math/cstdfloat/cstdfloat_types.hpp +441 -0
- package/vendor/boost/math/include/boost/math/differentiation/autodiff.hpp +2061 -0
- package/vendor/boost/math/include/boost/math/differentiation/autodiff_cpp11.hpp +387 -0
- package/vendor/boost/math/include/boost/math/differentiation/autodiff_reverse.hpp +811 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_basic_operator_expressions.hpp +276 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_basic_ops_et.hpp +160 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_basic_ops_no_et.hpp +154 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_comparison_operator_overloads.hpp +167 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_erf_overloads.hpp +234 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_expression_template_base.hpp +258 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_helper_functions.hpp +18 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_memory_management.hpp +462 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_stl_et.hpp +275 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_stl_expressions.hpp +852 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_stl_no_et.hpp +266 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_utilities.hpp +51 -0
- package/vendor/boost/math/include/boost/math/differentiation/finite_difference.hpp +266 -0
- package/vendor/boost/math/include/boost/math/differentiation/lanczos_smoothing.hpp +591 -0
- package/vendor/boost/math/include/boost/math/distributions/arcsine.hpp +593 -0
- package/vendor/boost/math/include/boost/math/distributions/bernoulli.hpp +349 -0
- package/vendor/boost/math/include/boost/math/distributions/beta.hpp +584 -0
- package/vendor/boost/math/include/boost/math/distributions/binomial.hpp +729 -0
- package/vendor/boost/math/include/boost/math/distributions/cauchy.hpp +379 -0
- package/vendor/boost/math/include/boost/math/distributions/chi_squared.hpp +345 -0
- package/vendor/boost/math/include/boost/math/distributions/complement.hpp +198 -0
- package/vendor/boost/math/include/boost/math/distributions/detail/common_error_handling.hpp +228 -0
- package/vendor/boost/math/include/boost/math/distributions/detail/derived_accessors.hpp +190 -0
- package/vendor/boost/math/include/boost/math/distributions/detail/generic_mode.hpp +145 -0
- package/vendor/boost/math/include/boost/math/distributions/detail/generic_quantile.hpp +100 -0
- package/vendor/boost/math/include/boost/math/distributions/detail/hypergeometric_cdf.hpp +101 -0
- package/vendor/boost/math/include/boost/math/distributions/detail/hypergeometric_pdf.hpp +490 -0
- package/vendor/boost/math/include/boost/math/distributions/detail/hypergeometric_quantile.hpp +245 -0
- package/vendor/boost/math/include/boost/math/distributions/detail/inv_discrete_quantile.hpp +583 -0
- package/vendor/boost/math/include/boost/math/distributions/empirical_cumulative_distribution_function.hpp +73 -0
- package/vendor/boost/math/include/boost/math/distributions/exponential.hpp +352 -0
- package/vendor/boost/math/include/boost/math/distributions/extreme_value.hpp +388 -0
- package/vendor/boost/math/include/boost/math/distributions/find_location.hpp +141 -0
- package/vendor/boost/math/include/boost/math/distributions/find_scale.hpp +200 -0
- package/vendor/boost/math/include/boost/math/distributions/fisher_f.hpp +393 -0
- package/vendor/boost/math/include/boost/math/distributions/fwd.hpp +171 -0
- package/vendor/boost/math/include/boost/math/distributions/gamma.hpp +396 -0
- package/vendor/boost/math/include/boost/math/distributions/geometric.hpp +571 -0
- package/vendor/boost/math/include/boost/math/distributions/holtsmark.hpp +2518 -0
- package/vendor/boost/math/include/boost/math/distributions/hyperexponential.hpp +641 -0
- package/vendor/boost/math/include/boost/math/distributions/hypergeometric.hpp +313 -0
- package/vendor/boost/math/include/boost/math/distributions/inverse_chi_squared.hpp +398 -0
- package/vendor/boost/math/include/boost/math/distributions/inverse_gamma.hpp +504 -0
- package/vendor/boost/math/include/boost/math/distributions/inverse_gaussian.hpp +566 -0
- package/vendor/boost/math/include/boost/math/distributions/kolmogorov_smirnov.hpp +511 -0
- package/vendor/boost/math/include/boost/math/distributions/landau.hpp +4642 -0
- package/vendor/boost/math/include/boost/math/distributions/laplace.hpp +494 -0
- package/vendor/boost/math/include/boost/math/distributions/logistic.hpp +377 -0
- package/vendor/boost/math/include/boost/math/distributions/lognormal.hpp +361 -0
- package/vendor/boost/math/include/boost/math/distributions/mapairy.hpp +4220 -0
- package/vendor/boost/math/include/boost/math/distributions/negative_binomial.hpp +609 -0
- package/vendor/boost/math/include/boost/math/distributions/non_central_beta.hpp +981 -0
- package/vendor/boost/math/include/boost/math/distributions/non_central_chi_squared.hpp +998 -0
- package/vendor/boost/math/include/boost/math/distributions/non_central_f.hpp +712 -0
- package/vendor/boost/math/include/boost/math/distributions/non_central_t.hpp +1324 -0
- package/vendor/boost/math/include/boost/math/distributions/normal.hpp +368 -0
- package/vendor/boost/math/include/boost/math/distributions/pareto.hpp +508 -0
- package/vendor/boost/math/include/boost/math/distributions/poisson.hpp +563 -0
- package/vendor/boost/math/include/boost/math/distributions/rayleigh.hpp +381 -0
- package/vendor/boost/math/include/boost/math/distributions/saspoint5.hpp +2796 -0
- package/vendor/boost/math/include/boost/math/distributions/skew_normal.hpp +760 -0
- package/vendor/boost/math/include/boost/math/distributions/students_t.hpp +721 -0
- package/vendor/boost/math/include/boost/math/distributions/triangular.hpp +548 -0
- package/vendor/boost/math/include/boost/math/distributions/uniform.hpp +398 -0
- package/vendor/boost/math/include/boost/math/distributions/weibull.hpp +487 -0
- package/vendor/boost/math/include/boost/math/distributions.hpp +58 -0
- package/vendor/boost/math/include/boost/math/filters/daubechies.hpp +99 -0
- package/vendor/boost/math/include/boost/math/interpolators/barycentric_rational.hpp +99 -0
- package/vendor/boost/math/include/boost/math/interpolators/bezier_polynomial.hpp +60 -0
- package/vendor/boost/math/include/boost/math/interpolators/bilinear_uniform.hpp +54 -0
- package/vendor/boost/math/include/boost/math/interpolators/cardinal_cubic_b_spline.hpp +87 -0
- package/vendor/boost/math/include/boost/math/interpolators/cardinal_quadratic_b_spline.hpp +57 -0
- package/vendor/boost/math/include/boost/math/interpolators/cardinal_quintic_b_spline.hpp +62 -0
- package/vendor/boost/math/include/boost/math/interpolators/cardinal_trigonometric.hpp +58 -0
- package/vendor/boost/math/include/boost/math/interpolators/catmull_rom.hpp +310 -0
- package/vendor/boost/math/include/boost/math/interpolators/cubic_b_spline.hpp +90 -0
- package/vendor/boost/math/include/boost/math/interpolators/cubic_hermite.hpp +142 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/barycentric_rational_detail.hpp +215 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/bezier_polynomial_detail.hpp +167 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/bilinear_uniform_detail.hpp +137 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/cardinal_cubic_b_spline_detail.hpp +331 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/cardinal_quadratic_b_spline_detail.hpp +208 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/cardinal_quintic_b_spline_detail.hpp +241 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/cardinal_trigonometric_detail.hpp +684 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/cubic_b_spline_detail.hpp +330 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/cubic_hermite_detail.hpp +439 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/quintic_hermite_detail.hpp +586 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/septic_hermite_detail.hpp +653 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/vector_barycentric_rational_detail.hpp +196 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/whittaker_shannon_detail.hpp +128 -0
- package/vendor/boost/math/include/boost/math/interpolators/makima.hpp +178 -0
- package/vendor/boost/math/include/boost/math/interpolators/pchip.hpp +136 -0
- package/vendor/boost/math/include/boost/math/interpolators/quintic_hermite.hpp +143 -0
- package/vendor/boost/math/include/boost/math/interpolators/septic_hermite.hpp +147 -0
- package/vendor/boost/math/include/boost/math/interpolators/vector_barycentric_rational.hpp +82 -0
- package/vendor/boost/math/include/boost/math/interpolators/whittaker_shannon.hpp +47 -0
- package/vendor/boost/math/include/boost/math/octonion.hpp +4254 -0
- package/vendor/boost/math/include/boost/math/optimization/cma_es.hpp +392 -0
- package/vendor/boost/math/include/boost/math/optimization/detail/common.hpp +200 -0
- package/vendor/boost/math/include/boost/math/optimization/detail/differentiable_opt_utilties.hpp +157 -0
- package/vendor/boost/math/include/boost/math/optimization/detail/gradient_opt_base.hpp +92 -0
- package/vendor/boost/math/include/boost/math/optimization/detail/line_search_policies.hpp +206 -0
- package/vendor/boost/math/include/boost/math/optimization/detail/rdiff_optimization_policies.hpp +134 -0
- package/vendor/boost/math/include/boost/math/optimization/differential_evolution.hpp +236 -0
- package/vendor/boost/math/include/boost/math/optimization/gradient_descent.hpp +202 -0
- package/vendor/boost/math/include/boost/math/optimization/gradient_optimizers.hpp +18 -0
- package/vendor/boost/math/include/boost/math/optimization/jso.hpp +465 -0
- package/vendor/boost/math/include/boost/math/optimization/lbfgs.hpp +382 -0
- package/vendor/boost/math/include/boost/math/optimization/minimizer.hpp +336 -0
- package/vendor/boost/math/include/boost/math/optimization/nesterov.hpp +208 -0
- package/vendor/boost/math/include/boost/math/optimization/random_search.hpp +145 -0
- package/vendor/boost/math/include/boost/math/policies/error_handling.hpp +1062 -0
- package/vendor/boost/math/include/boost/math/policies/policy.hpp +1034 -0
- package/vendor/boost/math/include/boost/math/quadrature/detail/exp_sinh_detail.hpp +2002 -0
- package/vendor/boost/math/include/boost/math/quadrature/detail/ooura_fourier_integrals_detail.hpp +692 -0
- package/vendor/boost/math/include/boost/math/quadrature/detail/sinh_sinh_detail.hpp +1353 -0
- package/vendor/boost/math/include/boost/math/quadrature/detail/tanh_sinh_detail.hpp +879 -0
- package/vendor/boost/math/include/boost/math/quadrature/exp_sinh.hpp +180 -0
- package/vendor/boost/math/include/boost/math/quadrature/gauss.hpp +904 -0
- package/vendor/boost/math/include/boost/math/quadrature/gauss_kronrod.hpp +1317 -0
- package/vendor/boost/math/include/boost/math/quadrature/naive_monte_carlo.hpp +469 -0
- package/vendor/boost/math/include/boost/math/quadrature/ooura_fourier_integrals.hpp +68 -0
- package/vendor/boost/math/include/boost/math/quadrature/sinh_sinh.hpp +72 -0
- package/vendor/boost/math/include/boost/math/quadrature/tanh_sinh.hpp +289 -0
- package/vendor/boost/math/include/boost/math/quadrature/trapezoidal.hpp +125 -0
- package/vendor/boost/math/include/boost/math/quadrature/wavelet_transforms.hpp +47 -0
- package/vendor/boost/math/include/boost/math/quaternion.hpp +1190 -0
- package/vendor/boost/math/include/boost/math/special_functions/acosh.hpp +102 -0
- package/vendor/boost/math/include/boost/math/special_functions/airy.hpp +475 -0
- package/vendor/boost/math/include/boost/math/special_functions/asinh.hpp +110 -0
- package/vendor/boost/math/include/boost/math/special_functions/atanh.hpp +116 -0
- package/vendor/boost/math/include/boost/math/special_functions/bernoulli.hpp +149 -0
- package/vendor/boost/math/include/boost/math/special_functions/bessel.hpp +795 -0
- package/vendor/boost/math/include/boost/math/special_functions/bessel_iterators.hpp +187 -0
- package/vendor/boost/math/include/boost/math/special_functions/bessel_prime.hpp +343 -0
- package/vendor/boost/math/include/boost/math/special_functions/beta.hpp +1870 -0
- package/vendor/boost/math/include/boost/math/special_functions/binomial.hpp +87 -0
- package/vendor/boost/math/include/boost/math/special_functions/cardinal_b_spline.hpp +218 -0
- package/vendor/boost/math/include/boost/math/special_functions/cbrt.hpp +215 -0
- package/vendor/boost/math/include/boost/math/special_functions/chebyshev.hpp +314 -0
- package/vendor/boost/math/include/boost/math/special_functions/chebyshev_transform.hpp +237 -0
- package/vendor/boost/math/include/boost/math/special_functions/cos_pi.hpp +128 -0
- package/vendor/boost/math/include/boost/math/special_functions/daubechies_scaling.hpp +491 -0
- package/vendor/boost/math/include/boost/math/special_functions/daubechies_wavelet.hpp +266 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/airy_ai_bi_zero.hpp +222 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bernoulli_details.hpp +629 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_derivatives_linear.hpp +107 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_i0.hpp +550 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_i1.hpp +556 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_ik.hpp +447 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_j0.hpp +192 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_j1.hpp +179 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_jn.hpp +127 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_jy.hpp +603 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_jy_asym.hpp +230 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_jy_derivatives_asym.hpp +141 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_jy_derivatives_series.hpp +219 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_jy_series.hpp +267 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_jy_zero.hpp +643 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_k0.hpp +485 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_k1.hpp +526 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_kn.hpp +91 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_y0.hpp +205 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_y1.hpp +183 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_yn.hpp +113 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/daubechies_scaling_integer_grid.hpp +244 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/erf_inv.hpp +559 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/fp_traits.hpp +562 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/gamma_inva.hpp +241 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_0F1_bessel.hpp +46 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_1F1_addition_theorems_on_z.hpp +293 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_1F1_bessel.hpp +768 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_1F1_by_ratios.hpp +678 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_1F1_cf.hpp +50 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_1F1_large_a.hpp +35 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_1F1_large_abz.hpp +492 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_1F1_negative_b_regions.hpp +521 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_1F1_recurrence.hpp +522 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_1F1_scaled_series.hpp +60 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_1F1_small_a_negative_b_by_ratio.hpp +70 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_asym.hpp +179 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_cf.hpp +228 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_pFq_checked_series.hpp +687 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_pade.hpp +131 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_rational.hpp +167 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_separated_series.hpp +50 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_series.hpp +434 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/ibeta_inv_ab.hpp +331 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/ibeta_inverse.hpp +1122 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/iconv.hpp +43 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/igamma_inverse.hpp +587 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/igamma_large.hpp +823 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/lambert_w_lookup_table.ipp +162 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/lanczos_sse2.hpp +238 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/lgamma_small.hpp +569 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/polygamma.hpp +538 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/round_fwd.hpp +87 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/t_distribution_inv.hpp +567 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/unchecked_bernoulli.hpp +1305 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/unchecked_factorial.hpp +1727 -0
- package/vendor/boost/math/include/boost/math/special_functions/digamma.hpp +631 -0
- package/vendor/boost/math/include/boost/math/special_functions/ellint_1.hpp +815 -0
- package/vendor/boost/math/include/boost/math/special_functions/ellint_2.hpp +756 -0
- package/vendor/boost/math/include/boost/math/special_functions/ellint_3.hpp +374 -0
- package/vendor/boost/math/include/boost/math/special_functions/ellint_d.hpp +183 -0
- package/vendor/boost/math/include/boost/math/special_functions/ellint_rc.hpp +112 -0
- package/vendor/boost/math/include/boost/math/special_functions/ellint_rd.hpp +207 -0
- package/vendor/boost/math/include/boost/math/special_functions/ellint_rf.hpp +169 -0
- package/vendor/boost/math/include/boost/math/special_functions/ellint_rg.hpp +130 -0
- package/vendor/boost/math/include/boost/math/special_functions/ellint_rj.hpp +299 -0
- package/vendor/boost/math/include/boost/math/special_functions/erf.hpp +1334 -0
- package/vendor/boost/math/include/boost/math/special_functions/expint.hpp +1614 -0
- package/vendor/boost/math/include/boost/math/special_functions/expm1.hpp +416 -0
- package/vendor/boost/math/include/boost/math/special_functions/factorials.hpp +276 -0
- package/vendor/boost/math/include/boost/math/special_functions/fibonacci.hpp +92 -0
- package/vendor/boost/math/include/boost/math/special_functions/fourier_transform_daubechies.hpp +248 -0
- package/vendor/boost/math/include/boost/math/special_functions/fpclassify.hpp +797 -0
- package/vendor/boost/math/include/boost/math/special_functions/gamma.hpp +2628 -0
- package/vendor/boost/math/include/boost/math/special_functions/gegenbauer.hpp +84 -0
- package/vendor/boost/math/include/boost/math/special_functions/hankel.hpp +186 -0
- package/vendor/boost/math/include/boost/math/special_functions/hermite.hpp +79 -0
- package/vendor/boost/math/include/boost/math/special_functions/heuman_lambda.hpp +97 -0
- package/vendor/boost/math/include/boost/math/special_functions/hypergeometric_0F1.hpp +116 -0
- package/vendor/boost/math/include/boost/math/special_functions/hypergeometric_1F0.hpp +69 -0
- package/vendor/boost/math/include/boost/math/special_functions/hypergeometric_1F1.hpp +822 -0
- package/vendor/boost/math/include/boost/math/special_functions/hypergeometric_2F0.hpp +163 -0
- package/vendor/boost/math/include/boost/math/special_functions/hypergeometric_pFq.hpp +205 -0
- package/vendor/boost/math/include/boost/math/special_functions/hypot.hpp +148 -0
- package/vendor/boost/math/include/boost/math/special_functions/jacobi.hpp +69 -0
- package/vendor/boost/math/include/boost/math/special_functions/jacobi_elliptic.hpp +319 -0
- package/vendor/boost/math/include/boost/math/special_functions/jacobi_theta.hpp +802 -0
- package/vendor/boost/math/include/boost/math/special_functions/jacobi_zeta.hpp +83 -0
- package/vendor/boost/math/include/boost/math/special_functions/laguerre.hpp +139 -0
- package/vendor/boost/math/include/boost/math/special_functions/lambert_w.hpp +2171 -0
- package/vendor/boost/math/include/boost/math/special_functions/lanczos.hpp +2760 -0
- package/vendor/boost/math/include/boost/math/special_functions/legendre.hpp +380 -0
- package/vendor/boost/math/include/boost/math/special_functions/legendre_stieltjes.hpp +234 -0
- package/vendor/boost/math/include/boost/math/special_functions/log1p.hpp +417 -0
- package/vendor/boost/math/include/boost/math/special_functions/logaddexp.hpp +41 -0
- package/vendor/boost/math/include/boost/math/special_functions/logistic_sigmoid.hpp +46 -0
- package/vendor/boost/math/include/boost/math/special_functions/logit.hpp +56 -0
- package/vendor/boost/math/include/boost/math/special_functions/logsumexp.hpp +60 -0
- package/vendor/boost/math/include/boost/math/special_functions/math_fwd.hpp +1927 -0
- package/vendor/boost/math/include/boost/math/special_functions/modf.hpp +74 -0
- package/vendor/boost/math/include/boost/math/special_functions/next.hpp +886 -0
- package/vendor/boost/math/include/boost/math/special_functions/nonfinite_num_facets.hpp +588 -0
- package/vendor/boost/math/include/boost/math/special_functions/owens_t.hpp +1067 -0
- package/vendor/boost/math/include/boost/math/special_functions/polygamma.hpp +83 -0
- package/vendor/boost/math/include/boost/math/special_functions/pow.hpp +144 -0
- package/vendor/boost/math/include/boost/math/special_functions/powm1.hpp +101 -0
- package/vendor/boost/math/include/boost/math/special_functions/prime.hpp +2433 -0
- package/vendor/boost/math/include/boost/math/special_functions/relative_difference.hpp +134 -0
- package/vendor/boost/math/include/boost/math/special_functions/round.hpp +353 -0
- package/vendor/boost/math/include/boost/math/special_functions/rsqrt.hpp +52 -0
- package/vendor/boost/math/include/boost/math/special_functions/sign.hpp +241 -0
- package/vendor/boost/math/include/boost/math/special_functions/sin_pi.hpp +135 -0
- package/vendor/boost/math/include/boost/math/special_functions/sinc.hpp +123 -0
- package/vendor/boost/math/include/boost/math/special_functions/sinhc.hpp +142 -0
- package/vendor/boost/math/include/boost/math/special_functions/spherical_harmonic.hpp +205 -0
- package/vendor/boost/math/include/boost/math/special_functions/sqrt1pm1.hpp +49 -0
- package/vendor/boost/math/include/boost/math/special_functions/trigamma.hpp +448 -0
- package/vendor/boost/math/include/boost/math/special_functions/trunc.hpp +385 -0
- package/vendor/boost/math/include/boost/math/special_functions/ulp.hpp +102 -0
- package/vendor/boost/math/include/boost/math/special_functions/zeta.hpp +1081 -0
- package/vendor/boost/math/include/boost/math/special_functions.hpp +86 -0
- package/vendor/boost/math/include/boost/math/statistics/anderson_darling.hpp +112 -0
- package/vendor/boost/math/include/boost/math/statistics/bivariate_statistics.hpp +470 -0
- package/vendor/boost/math/include/boost/math/statistics/chatterjee_correlation.hpp +159 -0
- package/vendor/boost/math/include/boost/math/statistics/detail/rank.hpp +140 -0
- package/vendor/boost/math/include/boost/math/statistics/detail/single_pass.hpp +401 -0
- package/vendor/boost/math/include/boost/math/statistics/linear_regression.hpp +133 -0
- package/vendor/boost/math/include/boost/math/statistics/ljung_box.hpp +70 -0
- package/vendor/boost/math/include/boost/math/statistics/runs_test.hpp +121 -0
- package/vendor/boost/math/include/boost/math/statistics/signal_statistics.hpp +350 -0
- package/vendor/boost/math/include/boost/math/statistics/t_test.hpp +275 -0
- package/vendor/boost/math/include/boost/math/statistics/univariate_statistics.hpp +1184 -0
- package/vendor/boost/math/include/boost/math/statistics/z_test.hpp +161 -0
- package/vendor/boost/math/include/boost/math/tools/agm.hpp +47 -0
- package/vendor/boost/math/include/boost/math/tools/array.hpp +41 -0
- package/vendor/boost/math/include/boost/math/tools/assert.hpp +49 -0
- package/vendor/boost/math/include/boost/math/tools/atomic.hpp +50 -0
- package/vendor/boost/math/include/boost/math/tools/big_constant.hpp +110 -0
- package/vendor/boost/math/include/boost/math/tools/bivariate_statistics.hpp +96 -0
- package/vendor/boost/math/include/boost/math/tools/centered_continued_fraction.hpp +173 -0
- package/vendor/boost/math/include/boost/math/tools/cohen_acceleration.hpp +51 -0
- package/vendor/boost/math/include/boost/math/tools/color_maps.hpp +1943 -0
- package/vendor/boost/math/include/boost/math/tools/complex.hpp +115 -0
- package/vendor/boost/math/include/boost/math/tools/concepts.hpp +24 -0
- package/vendor/boost/math/include/boost/math/tools/condition_numbers.hpp +144 -0
- package/vendor/boost/math/include/boost/math/tools/config.hpp +856 -0
- package/vendor/boost/math/include/boost/math/tools/convert_from_string.hpp +85 -0
- package/vendor/boost/math/include/boost/math/tools/cstdint.hpp +107 -0
- package/vendor/boost/math/include/boost/math/tools/cubic_roots.hpp +198 -0
- package/vendor/boost/math/include/boost/math/tools/cxx03_warn.hpp +95 -0
- package/vendor/boost/math/include/boost/math/tools/detail/is_const_iterable.hpp +38 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_10.hpp +84 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_11.hpp +90 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_12.hpp +96 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_13.hpp +102 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_14.hpp +108 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_15.hpp +114 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_16.hpp +120 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_17.hpp +126 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_18.hpp +132 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_19.hpp +138 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_2.hpp +36 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_20.hpp +144 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_3.hpp +42 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_4.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_5.hpp +54 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_6.hpp +60 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_7.hpp +66 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_8.hpp +72 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_9.hpp +78 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_10.hpp +90 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_11.hpp +97 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_12.hpp +104 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_13.hpp +111 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_14.hpp +118 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_15.hpp +125 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_16.hpp +132 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_17.hpp +139 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_18.hpp +146 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_19.hpp +153 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_2.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_20.hpp +160 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_3.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_4.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_5.hpp +55 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_6.hpp +62 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_7.hpp +69 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_8.hpp +76 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_9.hpp +83 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_10.hpp +156 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_11.hpp +181 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_12.hpp +208 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_13.hpp +237 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_14.hpp +268 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_15.hpp +301 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_16.hpp +336 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_17.hpp +373 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_18.hpp +412 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_19.hpp +453 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_2.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_20.hpp +496 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_3.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_4.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_5.hpp +61 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_6.hpp +76 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_7.hpp +93 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_8.hpp +112 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_9.hpp +133 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_10.hpp +138 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_11.hpp +150 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_12.hpp +162 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_13.hpp +174 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_14.hpp +186 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_15.hpp +198 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_16.hpp +210 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_17.hpp +222 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_18.hpp +234 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_19.hpp +246 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_2.hpp +42 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_20.hpp +258 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_3.hpp +54 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_4.hpp +66 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_5.hpp +78 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_6.hpp +90 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_7.hpp +102 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_8.hpp +114 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_9.hpp +126 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_10.hpp +144 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_11.hpp +160 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_12.hpp +176 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_13.hpp +192 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_14.hpp +208 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_15.hpp +224 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_16.hpp +240 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_17.hpp +256 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_18.hpp +272 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_19.hpp +288 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_2.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_20.hpp +304 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_3.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_4.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_5.hpp +64 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_6.hpp +80 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_7.hpp +96 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_8.hpp +112 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_9.hpp +128 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_10.hpp +396 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_11.hpp +482 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_12.hpp +576 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_13.hpp +678 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_14.hpp +788 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_15.hpp +906 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_16.hpp +1032 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_17.hpp +1166 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_18.hpp +1308 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_19.hpp +1458 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_2.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_20.hpp +1616 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_3.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_4.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_5.hpp +86 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_6.hpp +132 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_7.hpp +186 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_8.hpp +248 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_9.hpp +318 -0
- package/vendor/boost/math/include/boost/math/tools/engel_expansion.hpp +124 -0
- package/vendor/boost/math/include/boost/math/tools/estrin.hpp +72 -0
- package/vendor/boost/math/include/boost/math/tools/fraction.hpp +354 -0
- package/vendor/boost/math/include/boost/math/tools/header_deprecated.hpp +27 -0
- package/vendor/boost/math/include/boost/math/tools/is_constant_evaluated.hpp +51 -0
- package/vendor/boost/math/include/boost/math/tools/is_detected.hpp +56 -0
- package/vendor/boost/math/include/boost/math/tools/is_standalone.hpp +18 -0
- package/vendor/boost/math/include/boost/math/tools/luroth_expansion.hpp +147 -0
- package/vendor/boost/math/include/boost/math/tools/minima.hpp +164 -0
- package/vendor/boost/math/include/boost/math/tools/mp.hpp +423 -0
- package/vendor/boost/math/include/boost/math/tools/norms.hpp +638 -0
- package/vendor/boost/math/include/boost/math/tools/nothrow.hpp +27 -0
- package/vendor/boost/math/include/boost/math/tools/numeric_limits.hpp +888 -0
- package/vendor/boost/math/include/boost/math/tools/numerical_differentiation.hpp +12 -0
- package/vendor/boost/math/include/boost/math/tools/polynomial.hpp +862 -0
- package/vendor/boost/math/include/boost/math/tools/polynomial_gcd.hpp +268 -0
- package/vendor/boost/math/include/boost/math/tools/precision.hpp +418 -0
- package/vendor/boost/math/include/boost/math/tools/promotion.hpp +135 -0
- package/vendor/boost/math/include/boost/math/tools/quartic_roots.hpp +157 -0
- package/vendor/boost/math/include/boost/math/tools/random_vector.hpp +101 -0
- package/vendor/boost/math/include/boost/math/tools/rational.hpp +346 -0
- package/vendor/boost/math/include/boost/math/tools/real_cast.hpp +31 -0
- package/vendor/boost/math/include/boost/math/tools/recurrence.hpp +330 -0
- package/vendor/boost/math/include/boost/math/tools/roots.hpp +1072 -0
- package/vendor/boost/math/include/boost/math/tools/series.hpp +221 -0
- package/vendor/boost/math/include/boost/math/tools/signal_statistics.hpp +353 -0
- package/vendor/boost/math/include/boost/math/tools/simple_continued_fraction.hpp +177 -0
- package/vendor/boost/math/include/boost/math/tools/stats.hpp +87 -0
- package/vendor/boost/math/include/boost/math/tools/test_value.hpp +143 -0
- package/vendor/boost/math/include/boost/math/tools/throw_exception.hpp +43 -0
- package/vendor/boost/math/include/boost/math/tools/toms748_solve.hpp +636 -0
- package/vendor/boost/math/include/boost/math/tools/traits.hpp +140 -0
- package/vendor/boost/math/include/boost/math/tools/tuple.hpp +88 -0
- package/vendor/boost/math/include/boost/math/tools/type_traits.hpp +489 -0
- package/vendor/boost/math/include/boost/math/tools/ulps_plot.hpp +598 -0
- package/vendor/boost/math/include/boost/math/tools/univariate_statistics.hpp +437 -0
- package/vendor/boost/math/include/boost/math/tools/user.hpp +105 -0
- package/vendor/boost/math/include/boost/math/tools/utility.hpp +69 -0
- package/vendor/boost/math/include/boost/math/tools/workaround.hpp +42 -0
- package/vendor/boost/math/include/boost/math/tr1.hpp +1121 -0
- package/vendor/boost/math/include/boost/math/tr1_c_macros.ipp +810 -0
- package/vendor/boost/math/include/boost/math_fwd.hpp +42 -0
- package/vendor/boost/multiprecision/LICENSE +23 -0
- package/vendor/boost/multiprecision/README.md +168 -0
- package/vendor/boost/multiprecision/include/boost/config/abi/borland_prefix.hpp +27 -0
- package/vendor/boost/multiprecision/include/boost/config/abi/borland_suffix.hpp +12 -0
- package/vendor/boost/multiprecision/include/boost/config/abi/msvc_prefix.hpp +22 -0
- package/vendor/boost/multiprecision/include/boost/config/abi/msvc_suffix.hpp +8 -0
- package/vendor/boost/multiprecision/include/boost/config/abi_prefix.hpp +25 -0
- package/vendor/boost/multiprecision/include/boost/config/abi_suffix.hpp +25 -0
- package/vendor/boost/multiprecision/include/boost/config/assert_cxx03.hpp +211 -0
- package/vendor/boost/multiprecision/include/boost/config/assert_cxx11.hpp +212 -0
- package/vendor/boost/multiprecision/include/boost/config/assert_cxx14.hpp +47 -0
- package/vendor/boost/multiprecision/include/boost/config/assert_cxx17.hpp +65 -0
- package/vendor/boost/multiprecision/include/boost/config/assert_cxx20.hpp +59 -0
- package/vendor/boost/multiprecision/include/boost/config/assert_cxx23.hpp +41 -0
- package/vendor/boost/multiprecision/include/boost/config/assert_cxx98.hpp +23 -0
- package/vendor/boost/multiprecision/include/boost/config/auto_link.hpp +530 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/borland.hpp +342 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/clang.hpp +370 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/clang_version.hpp +98 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/codegear.hpp +389 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/comeau.hpp +59 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/common_edg.hpp +185 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/compaq_cxx.hpp +19 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/cray.hpp +446 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/diab.hpp +26 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/digitalmars.hpp +146 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/gcc.hpp +386 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/gcc_xml.hpp +115 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/greenhills.hpp +28 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/hp_acc.hpp +153 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/intel.hpp +577 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/kai.hpp +33 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/metrowerks.hpp +201 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/mpw.hpp +143 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/nvcc.hpp +64 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/pathscale.hpp +141 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/pgi.hpp +23 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/sgi_mipspro.hpp +29 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/sunpro_cc.hpp +225 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/vacpp.hpp +189 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/visualc.hpp +400 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/xlcpp.hpp +303 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/xlcpp_zos.hpp +174 -0
- package/vendor/boost/multiprecision/include/boost/config/detail/cxx_composite.hpp +218 -0
- package/vendor/boost/multiprecision/include/boost/config/detail/posix_features.hpp +95 -0
- package/vendor/boost/multiprecision/include/boost/config/detail/select_compiler_config.hpp +157 -0
- package/vendor/boost/multiprecision/include/boost/config/detail/select_platform_config.hpp +147 -0
- package/vendor/boost/multiprecision/include/boost/config/detail/select_stdlib_config.hpp +121 -0
- package/vendor/boost/multiprecision/include/boost/config/detail/suffix.hpp +1334 -0
- package/vendor/boost/multiprecision/include/boost/config/header_deprecated.hpp +26 -0
- package/vendor/boost/multiprecision/include/boost/config/helper_macros.hpp +37 -0
- package/vendor/boost/multiprecision/include/boost/config/no_tr1/cmath.hpp +28 -0
- package/vendor/boost/multiprecision/include/boost/config/no_tr1/complex.hpp +28 -0
- package/vendor/boost/multiprecision/include/boost/config/no_tr1/functional.hpp +28 -0
- package/vendor/boost/multiprecision/include/boost/config/no_tr1/memory.hpp +28 -0
- package/vendor/boost/multiprecision/include/boost/config/no_tr1/utility.hpp +28 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/aix.hpp +33 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/amigaos.hpp +15 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/beos.hpp +26 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/bsd.hpp +83 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/cloudabi.hpp +18 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/cray.hpp +18 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/cygwin.hpp +71 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/haiku.hpp +31 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/hpux.hpp +87 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/irix.hpp +31 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/linux.hpp +106 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/macos.hpp +87 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/qnxnto.hpp +31 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/solaris.hpp +31 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/symbian.hpp +97 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/vms.hpp +25 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/vxworks.hpp +422 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/wasm.hpp +23 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/win32.hpp +90 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/zos.hpp +32 -0
- package/vendor/boost/multiprecision/include/boost/config/pragma_message.hpp +31 -0
- package/vendor/boost/multiprecision/include/boost/config/requires_threads.hpp +92 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/dinkumware.hpp +324 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/libcomo.hpp +93 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/libcpp.hpp +185 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/libstdcpp3.hpp +482 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/modena.hpp +79 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/msl.hpp +98 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/roguewave.hpp +208 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/sgi.hpp +168 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/stlport.hpp +258 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/vacpp.hpp +74 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/xlcpp_zos.hpp +61 -0
- package/vendor/boost/multiprecision/include/boost/config/user.hpp +133 -0
- package/vendor/boost/multiprecision/include/boost/config/warning_disable.hpp +47 -0
- package/vendor/boost/multiprecision/include/boost/config/workaround.hpp +310 -0
- package/vendor/boost/multiprecision/include/boost/config.hpp +67 -0
- package/vendor/boost/multiprecision/include/boost/cstdint.hpp +556 -0
- package/vendor/boost/multiprecision/include/boost/cxx11_char_types.hpp +70 -0
- package/vendor/boost/multiprecision/include/boost/detail/workaround.hpp +10 -0
- package/vendor/boost/multiprecision/include/boost/limits.hpp +146 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/complex128.hpp +24 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/complex_adaptor.hpp +1049 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/concepts/mp_number_archetypes.hpp +257 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_bin_float/io.hpp +700 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_bin_float/transcendental.hpp +157 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_bin_float.hpp +2374 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_complex.hpp +12 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_dec_float.hpp +3807 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail.hpp +177 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath.hpp +25 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_fabs.hpp +27 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_floor.hpp +116 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_fma.hpp +65 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_fpclassify.hpp +52 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_frexp.hpp +93 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_isinf.hpp +24 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_isnan.hpp +21 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_ldexp.hpp +71 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_limits.hpp +218 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_log.hpp +172 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_sqrt.hpp +57 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_constants.hpp +80 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_double_fp.hpp +2690 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/add.hpp +368 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/add_unsigned.hpp +387 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/bitwise.hpp +896 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/checked.hpp +178 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/comparison.hpp +374 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/cpp_int_config.hpp +161 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/divide.hpp +703 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/import_export.hpp +248 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/intel_intrinsics.hpp +138 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/limits.hpp +292 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/literals.hpp +296 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/misc.hpp +1462 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/multiply.hpp +848 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/serialize.hpp +209 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/value_pack.hpp +42 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int.hpp +2360 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/debug_adaptor.hpp +760 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/assert.hpp +29 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/atomic.hpp +62 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/bitscan.hpp +317 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/check_cpp11_config.hpp +64 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/constexpr.hpp +88 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/default_ops.hpp +4077 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/digits.hpp +49 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/dynamic_array.hpp +44 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/empty_value.hpp +87 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/endian.hpp +35 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/et_ops.hpp +1831 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/float128_functions.hpp +95 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/float_string_cvt.hpp +333 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/fpclassify.hpp +101 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/functions/constants.hpp +289 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/functions/pow.hpp +941 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/functions/trig.hpp +1064 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/functions/trunc.hpp +82 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/generic_interconvert.hpp +687 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/hash.hpp +56 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/integer_ops.hpp +474 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/itos.hpp +39 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/min_max.hpp +106 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/no_et_ops.hpp +661 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/no_exceptions_support.hpp +55 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/number_base.hpp +1656 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/number_compare.hpp +848 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/precision.hpp +313 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/rebind.hpp +19 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/standalone_config.hpp +165 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/static_array.hpp +42 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/string_helpers.hpp +48 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/tables.hpp +80 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/ublas_interop.hpp +75 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/uniform_int_distribution.hpp +212 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/utype_helper.hpp +374 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/eigen.hpp +248 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/float128.hpp +960 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/fwd.hpp +268 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/gmp.hpp +4100 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/integer.hpp +363 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/logged_adaptor.hpp +834 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/miller_rabin.hpp +221 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/mpc.hpp +1721 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/mpfi.hpp +2579 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/mpfr.hpp +3668 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/number.hpp +2491 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/random.hpp +23 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/rational_adaptor.hpp +1289 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/tommath.hpp +1044 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/explicit_conversion.hpp +67 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/extract_exponent_type.hpp +28 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/is_backend.hpp +91 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/is_byte_container.hpp +51 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/is_complex.hpp +22 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/is_convertible_arithmetic.hpp +51 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/is_restricted_conversion.hpp +47 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/is_variable_precision.hpp +25 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/max_digits10.hpp +79 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/std_integer_traits.hpp +95 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/transcendental_reduction_type.hpp +21 -0
- package/vendor/boost/multiprecision/include/boost/static_assert.hpp +179 -0
- package/vendor/boost/multiprecision/include/boost/version.hpp +32 -0
- package/vendor/eigen/COPYING.APACHE +203 -0
- package/vendor/eigen/COPYING.BSD +26 -0
- package/vendor/eigen/COPYING.MPL2 +373 -0
- package/vendor/eigen/COPYING.README +6 -0
- package/vendor/eigen/Eigen/AccelerateSupport +52 -0
- package/vendor/eigen/Eigen/Cholesky +43 -0
- package/vendor/eigen/Eigen/CholmodSupport +48 -0
- package/vendor/eigen/Eigen/Core +451 -0
- package/vendor/eigen/Eigen/Dense +7 -0
- package/vendor/eigen/Eigen/Eigen +2 -0
- package/vendor/eigen/Eigen/Eigenvalues +63 -0
- package/vendor/eigen/Eigen/Geometry +59 -0
- package/vendor/eigen/Eigen/Householder +31 -0
- package/vendor/eigen/Eigen/IterativeLinearSolvers +52 -0
- package/vendor/eigen/Eigen/Jacobi +33 -0
- package/vendor/eigen/Eigen/KLUSupport +43 -0
- package/vendor/eigen/Eigen/LU +46 -0
- package/vendor/eigen/Eigen/MetisSupport +35 -0
- package/vendor/eigen/Eigen/OrderingMethods +73 -0
- package/vendor/eigen/Eigen/PaStiXSupport +51 -0
- package/vendor/eigen/Eigen/PardisoSupport +38 -0
- package/vendor/eigen/Eigen/QR +48 -0
- package/vendor/eigen/Eigen/QtAlignedMalloc +32 -0
- package/vendor/eigen/Eigen/SPQRSupport +41 -0
- package/vendor/eigen/Eigen/SVD +56 -0
- package/vendor/eigen/Eigen/Sparse +33 -0
- package/vendor/eigen/Eigen/SparseCholesky +40 -0
- package/vendor/eigen/Eigen/SparseCore +70 -0
- package/vendor/eigen/Eigen/SparseLU +50 -0
- package/vendor/eigen/Eigen/SparseQR +38 -0
- package/vendor/eigen/Eigen/StdDeque +30 -0
- package/vendor/eigen/Eigen/StdList +29 -0
- package/vendor/eigen/Eigen/StdVector +30 -0
- package/vendor/eigen/Eigen/SuperLUSupport +70 -0
- package/vendor/eigen/Eigen/ThreadPool +80 -0
- package/vendor/eigen/Eigen/UmfPackSupport +42 -0
- package/vendor/eigen/Eigen/Version +14 -0
- package/vendor/eigen/Eigen/src/AccelerateSupport/AccelerateSupport.h +423 -0
- package/vendor/eigen/Eigen/src/AccelerateSupport/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/Cholesky/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/Cholesky/LDLT.h +649 -0
- package/vendor/eigen/Eigen/src/Cholesky/LLT.h +514 -0
- package/vendor/eigen/Eigen/src/Cholesky/LLT_LAPACKE.h +124 -0
- package/vendor/eigen/Eigen/src/CholmodSupport/CholmodSupport.h +738 -0
- package/vendor/eigen/Eigen/src/CholmodSupport/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/Core/ArithmeticSequence.h +239 -0
- package/vendor/eigen/Eigen/src/Core/Array.h +376 -0
- package/vendor/eigen/Eigen/src/Core/ArrayBase.h +213 -0
- package/vendor/eigen/Eigen/src/Core/ArrayWrapper.h +165 -0
- package/vendor/eigen/Eigen/src/Core/Assign.h +80 -0
- package/vendor/eigen/Eigen/src/Core/AssignEvaluator.h +1057 -0
- package/vendor/eigen/Eigen/src/Core/Assign_MKL.h +183 -0
- package/vendor/eigen/Eigen/src/Core/BandMatrix.h +338 -0
- package/vendor/eigen/Eigen/src/Core/Block.h +429 -0
- package/vendor/eigen/Eigen/src/Core/CommaInitializer.h +149 -0
- package/vendor/eigen/Eigen/src/Core/ConditionEstimator.h +173 -0
- package/vendor/eigen/Eigen/src/Core/CoreEvaluators.h +2018 -0
- package/vendor/eigen/Eigen/src/Core/CoreIterators.h +141 -0
- package/vendor/eigen/Eigen/src/Core/CwiseBinaryOp.h +166 -0
- package/vendor/eigen/Eigen/src/Core/CwiseNullaryOp.h +975 -0
- package/vendor/eigen/Eigen/src/Core/CwiseTernaryOp.h +171 -0
- package/vendor/eigen/Eigen/src/Core/CwiseUnaryOp.h +91 -0
- package/vendor/eigen/Eigen/src/Core/CwiseUnaryView.h +167 -0
- package/vendor/eigen/Eigen/src/Core/DenseBase.h +673 -0
- package/vendor/eigen/Eigen/src/Core/DenseCoeffsBase.h +568 -0
- package/vendor/eigen/Eigen/src/Core/DenseStorage.h +573 -0
- package/vendor/eigen/Eigen/src/Core/DeviceWrapper.h +153 -0
- package/vendor/eigen/Eigen/src/Core/Diagonal.h +219 -0
- package/vendor/eigen/Eigen/src/Core/DiagonalMatrix.h +420 -0
- package/vendor/eigen/Eigen/src/Core/DiagonalProduct.h +30 -0
- package/vendor/eigen/Eigen/src/Core/Dot.h +268 -0
- package/vendor/eigen/Eigen/src/Core/EigenBase.h +149 -0
- package/vendor/eigen/Eigen/src/Core/Fill.h +138 -0
- package/vendor/eigen/Eigen/src/Core/FindCoeff.h +464 -0
- package/vendor/eigen/Eigen/src/Core/ForceAlignedAccess.h +127 -0
- package/vendor/eigen/Eigen/src/Core/Fuzzy.h +132 -0
- package/vendor/eigen/Eigen/src/Core/GeneralProduct.h +519 -0
- package/vendor/eigen/Eigen/src/Core/GenericPacketMath.h +1702 -0
- package/vendor/eigen/Eigen/src/Core/GlobalFunctions.h +230 -0
- package/vendor/eigen/Eigen/src/Core/IO.h +233 -0
- package/vendor/eigen/Eigen/src/Core/IndexedView.h +321 -0
- package/vendor/eigen/Eigen/src/Core/InnerProduct.h +260 -0
- package/vendor/eigen/Eigen/src/Core/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/Core/Inverse.h +108 -0
- package/vendor/eigen/Eigen/src/Core/Map.h +153 -0
- package/vendor/eigen/Eigen/src/Core/MapBase.h +283 -0
- package/vendor/eigen/Eigen/src/Core/MathFunctions.h +2103 -0
- package/vendor/eigen/Eigen/src/Core/MathFunctionsImpl.h +263 -0
- package/vendor/eigen/Eigen/src/Core/Matrix.h +534 -0
- package/vendor/eigen/Eigen/src/Core/MatrixBase.h +545 -0
- package/vendor/eigen/Eigen/src/Core/NestByValue.h +91 -0
- package/vendor/eigen/Eigen/src/Core/NoAlias.h +102 -0
- package/vendor/eigen/Eigen/src/Core/NumTraits.h +335 -0
- package/vendor/eigen/Eigen/src/Core/PartialReduxEvaluator.h +253 -0
- package/vendor/eigen/Eigen/src/Core/PermutationMatrix.h +555 -0
- package/vendor/eigen/Eigen/src/Core/PlainObjectBase.h +1014 -0
- package/vendor/eigen/Eigen/src/Core/Product.h +307 -0
- package/vendor/eigen/Eigen/src/Core/ProductEvaluators.h +1287 -0
- package/vendor/eigen/Eigen/src/Core/Random.h +207 -0
- package/vendor/eigen/Eigen/src/Core/RandomImpl.h +262 -0
- package/vendor/eigen/Eigen/src/Core/RealView.h +250 -0
- package/vendor/eigen/Eigen/src/Core/Redux.h +535 -0
- package/vendor/eigen/Eigen/src/Core/Ref.h +383 -0
- package/vendor/eigen/Eigen/src/Core/Replicate.h +130 -0
- package/vendor/eigen/Eigen/src/Core/Reshaped.h +398 -0
- package/vendor/eigen/Eigen/src/Core/ReturnByValue.h +111 -0
- package/vendor/eigen/Eigen/src/Core/Reverse.h +202 -0
- package/vendor/eigen/Eigen/src/Core/Select.h +92 -0
- package/vendor/eigen/Eigen/src/Core/SelfAdjointView.h +329 -0
- package/vendor/eigen/Eigen/src/Core/SelfCwiseBinaryOp.h +50 -0
- package/vendor/eigen/Eigen/src/Core/SkewSymmetricMatrix3.h +382 -0
- package/vendor/eigen/Eigen/src/Core/Solve.h +174 -0
- package/vendor/eigen/Eigen/src/Core/SolveTriangular.h +237 -0
- package/vendor/eigen/Eigen/src/Core/SolverBase.h +167 -0
- package/vendor/eigen/Eigen/src/Core/StableNorm.h +217 -0
- package/vendor/eigen/Eigen/src/Core/StlIterators.h +619 -0
- package/vendor/eigen/Eigen/src/Core/Stride.h +114 -0
- package/vendor/eigen/Eigen/src/Core/Swap.h +99 -0
- package/vendor/eigen/Eigen/src/Core/Transpose.h +427 -0
- package/vendor/eigen/Eigen/src/Core/Transpositions.h +323 -0
- package/vendor/eigen/Eigen/src/Core/TriangularMatrix.h +900 -0
- package/vendor/eigen/Eigen/src/Core/VectorBlock.h +83 -0
- package/vendor/eigen/Eigen/src/Core/VectorwiseOp.h +733 -0
- package/vendor/eigen/Eigen/src/Core/Visitor.h +537 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX/Complex.h +565 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX/MathFunctions.h +130 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX/PacketMath.h +3081 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX/Reductions.h +353 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX/TypeCasting.h +308 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/Complex.h +472 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/GemmKernel.h +1245 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/MathFunctions.h +141 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/MathFunctionsFP16.h +75 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/PacketMath.h +3146 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/PacketMathFP16.h +1413 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/Reductions.h +297 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/TrsmKernel.h +1167 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/TrsmUnrolls.inc +1219 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/TypeCasting.h +277 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/TypeCastingFP16.h +130 -0
- package/vendor/eigen/Eigen/src/Core/arch/AltiVec/Complex.h +653 -0
- package/vendor/eigen/Eigen/src/Core/arch/AltiVec/MathFunctions.h +81 -0
- package/vendor/eigen/Eigen/src/Core/arch/AltiVec/MatrixProduct.h +3686 -0
- package/vendor/eigen/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h +205 -0
- package/vendor/eigen/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h +901 -0
- package/vendor/eigen/Eigen/src/Core/arch/AltiVec/MatrixProductMMAbfloat16.h +742 -0
- package/vendor/eigen/Eigen/src/Core/arch/AltiVec/MatrixVectorProduct.inc +2818 -0
- package/vendor/eigen/Eigen/src/Core/arch/AltiVec/PacketMath.h +3729 -0
- package/vendor/eigen/Eigen/src/Core/arch/AltiVec/TypeCasting.h +153 -0
- package/vendor/eigen/Eigen/src/Core/arch/Default/BFloat16.h +866 -0
- package/vendor/eigen/Eigen/src/Core/arch/Default/ConjHelper.h +128 -0
- package/vendor/eigen/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +2634 -0
- package/vendor/eigen/Eigen/src/Core/arch/Default/GenericPacketMathFunctionsFwd.h +227 -0
- package/vendor/eigen/Eigen/src/Core/arch/Default/Half.h +1091 -0
- package/vendor/eigen/Eigen/src/Core/arch/Default/Settings.h +47 -0
- package/vendor/eigen/Eigen/src/Core/arch/GPU/Complex.h +244 -0
- package/vendor/eigen/Eigen/src/Core/arch/GPU/MathFunctions.h +104 -0
- package/vendor/eigen/Eigen/src/Core/arch/GPU/PacketMath.h +1712 -0
- package/vendor/eigen/Eigen/src/Core/arch/GPU/Tuple.h +268 -0
- package/vendor/eigen/Eigen/src/Core/arch/GPU/TypeCasting.h +77 -0
- package/vendor/eigen/Eigen/src/Core/arch/HIP/hcc/math_constants.h +23 -0
- package/vendor/eigen/Eigen/src/Core/arch/HVX/PacketMath.h +1088 -0
- package/vendor/eigen/Eigen/src/Core/arch/LSX/Complex.h +520 -0
- package/vendor/eigen/Eigen/src/Core/arch/LSX/GeneralBlockPanelKernel.h +23 -0
- package/vendor/eigen/Eigen/src/Core/arch/LSX/MathFunctions.h +43 -0
- package/vendor/eigen/Eigen/src/Core/arch/LSX/PacketMath.h +2866 -0
- package/vendor/eigen/Eigen/src/Core/arch/LSX/TypeCasting.h +526 -0
- package/vendor/eigen/Eigen/src/Core/arch/MSA/Complex.h +620 -0
- package/vendor/eigen/Eigen/src/Core/arch/MSA/MathFunctions.h +379 -0
- package/vendor/eigen/Eigen/src/Core/arch/MSA/PacketMath.h +1237 -0
- package/vendor/eigen/Eigen/src/Core/arch/NEON/Complex.h +732 -0
- package/vendor/eigen/Eigen/src/Core/arch/NEON/GeneralBlockPanelKernel.h +243 -0
- package/vendor/eigen/Eigen/src/Core/arch/NEON/MathFunctions.h +68 -0
- package/vendor/eigen/Eigen/src/Core/arch/NEON/PacketMath.h +6096 -0
- package/vendor/eigen/Eigen/src/Core/arch/NEON/TypeCasting.h +1642 -0
- package/vendor/eigen/Eigen/src/Core/arch/NEON/UnaryFunctors.h +57 -0
- package/vendor/eigen/Eigen/src/Core/arch/SSE/Complex.h +503 -0
- package/vendor/eigen/Eigen/src/Core/arch/SSE/MathFunctions.h +88 -0
- package/vendor/eigen/Eigen/src/Core/arch/SSE/PacketMath.h +2384 -0
- package/vendor/eigen/Eigen/src/Core/arch/SSE/Reductions.h +324 -0
- package/vendor/eigen/Eigen/src/Core/arch/SSE/TypeCasting.h +230 -0
- package/vendor/eigen/Eigen/src/Core/arch/SVE/MathFunctions.h +48 -0
- package/vendor/eigen/Eigen/src/Core/arch/SVE/PacketMath.h +674 -0
- package/vendor/eigen/Eigen/src/Core/arch/SVE/TypeCasting.h +52 -0
- package/vendor/eigen/Eigen/src/Core/arch/SYCL/InteropHeaders.h +227 -0
- package/vendor/eigen/Eigen/src/Core/arch/SYCL/MathFunctions.h +303 -0
- package/vendor/eigen/Eigen/src/Core/arch/SYCL/PacketMath.h +576 -0
- package/vendor/eigen/Eigen/src/Core/arch/SYCL/TypeCasting.h +83 -0
- package/vendor/eigen/Eigen/src/Core/arch/ZVector/Complex.h +570 -0
- package/vendor/eigen/Eigen/src/Core/arch/ZVector/MathFunctions.h +244 -0
- package/vendor/eigen/Eigen/src/Core/arch/ZVector/PacketMath.h +1413 -0
- package/vendor/eigen/Eigen/src/Core/functors/AssignmentFunctors.h +174 -0
- package/vendor/eigen/Eigen/src/Core/functors/BinaryFunctors.h +747 -0
- package/vendor/eigen/Eigen/src/Core/functors/NullaryFunctors.h +274 -0
- package/vendor/eigen/Eigen/src/Core/functors/StlFunctors.h +149 -0
- package/vendor/eigen/Eigen/src/Core/functors/TernaryFunctors.h +52 -0
- package/vendor/eigen/Eigen/src/Core/functors/UnaryFunctors.h +1420 -0
- package/vendor/eigen/Eigen/src/Core/products/GeneralBlockPanelKernel.h +3153 -0
- package/vendor/eigen/Eigen/src/Core/products/GeneralMatrixMatrix.h +459 -0
- package/vendor/eigen/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h +330 -0
- package/vendor/eigen/Eigen/src/Core/products/GeneralMatrixMatrixTriangular_BLAS.h +148 -0
- package/vendor/eigen/Eigen/src/Core/products/GeneralMatrixMatrix_BLAS.h +205 -0
- package/vendor/eigen/Eigen/src/Core/products/GeneralMatrixVector.h +473 -0
- package/vendor/eigen/Eigen/src/Core/products/GeneralMatrixVector_BLAS.h +139 -0
- package/vendor/eigen/Eigen/src/Core/products/Parallelizer.h +282 -0
- package/vendor/eigen/Eigen/src/Core/products/SelfadjointMatrixMatrix.h +483 -0
- package/vendor/eigen/Eigen/src/Core/products/SelfadjointMatrixMatrix_BLAS.h +277 -0
- package/vendor/eigen/Eigen/src/Core/products/SelfadjointMatrixVector.h +253 -0
- package/vendor/eigen/Eigen/src/Core/products/SelfadjointMatrixVector_BLAS.h +115 -0
- package/vendor/eigen/Eigen/src/Core/products/SelfadjointProduct.h +133 -0
- package/vendor/eigen/Eigen/src/Core/products/SelfadjointRank2Update.h +95 -0
- package/vendor/eigen/Eigen/src/Core/products/TriangularMatrixMatrix.h +397 -0
- package/vendor/eigen/Eigen/src/Core/products/TriangularMatrixMatrix_BLAS.h +325 -0
- package/vendor/eigen/Eigen/src/Core/products/TriangularMatrixVector.h +347 -0
- package/vendor/eigen/Eigen/src/Core/products/TriangularMatrixVector_BLAS.h +275 -0
- package/vendor/eigen/Eigen/src/Core/products/TriangularSolverMatrix.h +388 -0
- package/vendor/eigen/Eigen/src/Core/products/TriangularSolverMatrix_BLAS.h +166 -0
- package/vendor/eigen/Eigen/src/Core/products/TriangularSolverVector.h +122 -0
- package/vendor/eigen/Eigen/src/Core/util/Assert.h +158 -0
- package/vendor/eigen/Eigen/src/Core/util/BlasUtil.h +622 -0
- package/vendor/eigen/Eigen/src/Core/util/ConfigureVectorization.h +543 -0
- package/vendor/eigen/Eigen/src/Core/util/Constants.h +598 -0
- package/vendor/eigen/Eigen/src/Core/util/DisableStupidWarnings.h +146 -0
- package/vendor/eigen/Eigen/src/Core/util/EmulateArray.h +270 -0
- package/vendor/eigen/Eigen/src/Core/util/ForwardDeclarations.h +524 -0
- package/vendor/eigen/Eigen/src/Core/util/GpuHipCudaDefines.inc +101 -0
- package/vendor/eigen/Eigen/src/Core/util/GpuHipCudaUndefines.inc +45 -0
- package/vendor/eigen/Eigen/src/Core/util/IndexedViewHelper.h +487 -0
- package/vendor/eigen/Eigen/src/Core/util/IntegralConstant.h +279 -0
- package/vendor/eigen/Eigen/src/Core/util/MKL_support.h +139 -0
- package/vendor/eigen/Eigen/src/Core/util/Macros.h +1346 -0
- package/vendor/eigen/Eigen/src/Core/util/MaxSizeVector.h +139 -0
- package/vendor/eigen/Eigen/src/Core/util/Memory.h +1385 -0
- package/vendor/eigen/Eigen/src/Core/util/Meta.h +760 -0
- package/vendor/eigen/Eigen/src/Core/util/MoreMeta.h +638 -0
- package/vendor/eigen/Eigen/src/Core/util/ReenableStupidWarnings.h +44 -0
- package/vendor/eigen/Eigen/src/Core/util/ReshapedHelper.h +51 -0
- package/vendor/eigen/Eigen/src/Core/util/Serializer.h +209 -0
- package/vendor/eigen/Eigen/src/Core/util/StaticAssert.h +105 -0
- package/vendor/eigen/Eigen/src/Core/util/SymbolicIndex.h +445 -0
- package/vendor/eigen/Eigen/src/Core/util/XprHelper.h +1093 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/ComplexEigenSolver.h +315 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/ComplexSchur.h +442 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/ComplexSchur_LAPACKE.h +95 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/EigenSolver.h +579 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/GeneralizedEigenSolver.h +402 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h +212 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/HessenbergDecomposition.h +356 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/MatrixBaseEigenvalues.h +142 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/RealQZ.h +587 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/RealSchur.h +519 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/RealSchur_LAPACKE.h +83 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h +850 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/SelfAdjointEigenSolver_LAPACKE.h +90 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/Tridiagonalization.h +529 -0
- package/vendor/eigen/Eigen/src/Geometry/AlignedBox.h +485 -0
- package/vendor/eigen/Eigen/src/Geometry/AngleAxis.h +245 -0
- package/vendor/eigen/Eigen/src/Geometry/EulerAngles.h +203 -0
- package/vendor/eigen/Eigen/src/Geometry/Homogeneous.h +453 -0
- package/vendor/eigen/Eigen/src/Geometry/Hyperplane.h +273 -0
- package/vendor/eigen/Eigen/src/Geometry/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/Geometry/OrthoMethods.h +257 -0
- package/vendor/eigen/Eigen/src/Geometry/ParametrizedLine.h +232 -0
- package/vendor/eigen/Eigen/src/Geometry/Quaternion.h +930 -0
- package/vendor/eigen/Eigen/src/Geometry/Rotation2D.h +201 -0
- package/vendor/eigen/Eigen/src/Geometry/RotationBase.h +209 -0
- package/vendor/eigen/Eigen/src/Geometry/Scaling.h +195 -0
- package/vendor/eigen/Eigen/src/Geometry/Transform.h +1485 -0
- package/vendor/eigen/Eigen/src/Geometry/Translation.h +204 -0
- package/vendor/eigen/Eigen/src/Geometry/Umeyama.h +161 -0
- package/vendor/eigen/Eigen/src/Geometry/arch/Geometry_SIMD.h +154 -0
- package/vendor/eigen/Eigen/src/Householder/BlockHouseholder.h +115 -0
- package/vendor/eigen/Eigen/src/Householder/Householder.h +154 -0
- package/vendor/eigen/Eigen/src/Householder/HouseholderSequence.h +504 -0
- package/vendor/eigen/Eigen/src/Householder/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/IterativeLinearSolvers/BasicPreconditioners.h +213 -0
- package/vendor/eigen/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h +220 -0
- package/vendor/eigen/Eigen/src/IterativeLinearSolvers/ConjugateGradient.h +217 -0
- package/vendor/eigen/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h +402 -0
- package/vendor/eigen/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h +449 -0
- package/vendor/eigen/Eigen/src/IterativeLinearSolvers/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/IterativeLinearSolvers/IterativeSolverBase.h +395 -0
- package/vendor/eigen/Eigen/src/IterativeLinearSolvers/LeastSquareConjugateGradient.h +193 -0
- package/vendor/eigen/Eigen/src/IterativeLinearSolvers/SolveWithGuess.h +111 -0
- package/vendor/eigen/Eigen/src/Jacobi/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/Jacobi/Jacobi.h +427 -0
- package/vendor/eigen/Eigen/src/KLUSupport/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/KLUSupport/KLUSupport.h +339 -0
- package/vendor/eigen/Eigen/src/LU/Determinant.h +98 -0
- package/vendor/eigen/Eigen/src/LU/FullPivLU.h +826 -0
- package/vendor/eigen/Eigen/src/LU/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/LU/InverseImpl.h +353 -0
- package/vendor/eigen/Eigen/src/LU/PartialPivLU.h +586 -0
- package/vendor/eigen/Eigen/src/LU/PartialPivLU_LAPACKE.h +97 -0
- package/vendor/eigen/Eigen/src/LU/arch/InverseSize4.h +353 -0
- package/vendor/eigen/Eigen/src/MetisSupport/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/MetisSupport/MetisSupport.h +125 -0
- package/vendor/eigen/Eigen/src/OrderingMethods/Amd.h +413 -0
- package/vendor/eigen/Eigen/src/OrderingMethods/Eigen_Colamd.h +1690 -0
- package/vendor/eigen/Eigen/src/OrderingMethods/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/OrderingMethods/Ordering.h +146 -0
- package/vendor/eigen/Eigen/src/PaStiXSupport/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/PaStiXSupport/PaStiXSupport.h +632 -0
- package/vendor/eigen/Eigen/src/PardisoSupport/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/PardisoSupport/PardisoSupport.h +500 -0
- package/vendor/eigen/Eigen/src/QR/ColPivHouseholderQR.h +674 -0
- package/vendor/eigen/Eigen/src/QR/ColPivHouseholderQR_LAPACKE.h +161 -0
- package/vendor/eigen/Eigen/src/QR/CompleteOrthogonalDecomposition.h +648 -0
- package/vendor/eigen/Eigen/src/QR/FullPivHouseholderQR.h +733 -0
- package/vendor/eigen/Eigen/src/QR/HouseholderQR.h +543 -0
- package/vendor/eigen/Eigen/src/QR/HouseholderQR_LAPACKE.h +77 -0
- package/vendor/eigen/Eigen/src/QR/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/SPQRSupport/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h +315 -0
- package/vendor/eigen/Eigen/src/SVD/BDCSVD.h +1470 -0
- package/vendor/eigen/Eigen/src/SVD/BDCSVD_LAPACKE.h +174 -0
- package/vendor/eigen/Eigen/src/SVD/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/SVD/JacobiSVD.h +846 -0
- package/vendor/eigen/Eigen/src/SVD/JacobiSVD_LAPACKE.h +127 -0
- package/vendor/eigen/Eigen/src/SVD/SVDBase.h +436 -0
- package/vendor/eigen/Eigen/src/SVD/UpperBidiagonalization.h +379 -0
- package/vendor/eigen/Eigen/src/SparseCholesky/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/SparseCholesky/SimplicialCholesky.h +868 -0
- package/vendor/eigen/Eigen/src/SparseCholesky/SimplicialCholesky_impl.h +388 -0
- package/vendor/eigen/Eigen/src/SparseCore/AmbiVector.h +329 -0
- package/vendor/eigen/Eigen/src/SparseCore/CompressedStorage.h +206 -0
- package/vendor/eigen/Eigen/src/SparseCore/ConservativeSparseSparseProduct.h +308 -0
- package/vendor/eigen/Eigen/src/SparseCore/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseAssign.h +279 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseBlock.h +534 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseColEtree.h +194 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseCompressedBase.h +592 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseCwiseBinaryOp.h +938 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseCwiseUnaryOp.h +142 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseDenseProduct.h +314 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseDiagonalProduct.h +138 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseDot.h +100 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseFuzzy.h +31 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseMap.h +295 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseMatrix.h +1876 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseMatrixBase.h +451 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparsePermutation.h +249 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseProduct.h +178 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseRedux.h +47 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseRef.h +370 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseSelfAdjointView.h +613 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseSolverBase.h +115 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseSparseProductWithPruning.h +184 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseTranspose.h +83 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseTriangularView.h +177 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseUtil.h +209 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseVector.h +532 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseView.h +225 -0
- package/vendor/eigen/Eigen/src/SparseCore/TriangularSolver.h +274 -0
- package/vendor/eigen/Eigen/src/SparseLU/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU.h +969 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLUImpl.h +79 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_Memory.h +210 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_Structs.h +113 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +319 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_Utils.h +75 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_column_bmod.h +177 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_column_dfs.h +168 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h +106 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +114 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_kernel_bmod.h +133 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_panel_bmod.h +215 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_panel_dfs.h +235 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_pivotL.h +136 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_pruneL.h +130 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_relax_snode.h +81 -0
- package/vendor/eigen/Eigen/src/SparseQR/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/SparseQR/SparseQR.h +706 -0
- package/vendor/eigen/Eigen/src/StlSupport/StdDeque.h +51 -0
- package/vendor/eigen/Eigen/src/StlSupport/StdList.h +50 -0
- package/vendor/eigen/Eigen/src/StlSupport/StdVector.h +51 -0
- package/vendor/eigen/Eigen/src/StlSupport/details.h +82 -0
- package/vendor/eigen/Eigen/src/SuperLUSupport/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/SuperLUSupport/SuperLUSupport.h +929 -0
- package/vendor/eigen/Eigen/src/ThreadPool/Barrier.h +70 -0
- package/vendor/eigen/Eigen/src/ThreadPool/CoreThreadPoolDevice.h +336 -0
- package/vendor/eigen/Eigen/src/ThreadPool/EventCount.h +241 -0
- package/vendor/eigen/Eigen/src/ThreadPool/ForkJoin.h +140 -0
- package/vendor/eigen/Eigen/src/ThreadPool/InternalHeaderCheck.h +4 -0
- package/vendor/eigen/Eigen/src/ThreadPool/NonBlockingThreadPool.h +587 -0
- package/vendor/eigen/Eigen/src/ThreadPool/RunQueue.h +230 -0
- package/vendor/eigen/Eigen/src/ThreadPool/ThreadCancel.h +21 -0
- package/vendor/eigen/Eigen/src/ThreadPool/ThreadEnvironment.h +43 -0
- package/vendor/eigen/Eigen/src/ThreadPool/ThreadLocal.h +289 -0
- package/vendor/eigen/Eigen/src/ThreadPool/ThreadPoolInterface.h +50 -0
- package/vendor/eigen/Eigen/src/ThreadPool/ThreadYield.h +16 -0
- package/vendor/eigen/Eigen/src/UmfPackSupport/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/UmfPackSupport/UmfPackSupport.h +606 -0
- package/vendor/eigen/Eigen/src/misc/Image.h +80 -0
- package/vendor/eigen/Eigen/src/misc/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/misc/Kernel.h +77 -0
- package/vendor/eigen/Eigen/src/misc/RealSvd2x2.h +53 -0
- package/vendor/eigen/Eigen/src/misc/blas.h +97 -0
- package/vendor/eigen/Eigen/src/misc/lapacke.h +10085 -0
- package/vendor/eigen/Eigen/src/misc/lapacke_helpers.h +163 -0
- package/vendor/eigen/Eigen/src/misc/lapacke_mangling.h +16 -0
- package/vendor/eigen/Eigen/src/plugins/ArrayCwiseBinaryOps.inc +344 -0
- package/vendor/eigen/Eigen/src/plugins/ArrayCwiseUnaryOps.inc +544 -0
- package/vendor/eigen/Eigen/src/plugins/BlockMethods.inc +1370 -0
- package/vendor/eigen/Eigen/src/plugins/CommonCwiseBinaryOps.inc +116 -0
- package/vendor/eigen/Eigen/src/plugins/CommonCwiseUnaryOps.inc +167 -0
- package/vendor/eigen/Eigen/src/plugins/IndexedViewMethods.inc +192 -0
- package/vendor/eigen/Eigen/src/plugins/InternalHeaderCheck.inc +3 -0
- package/vendor/eigen/Eigen/src/plugins/MatrixCwiseBinaryOps.inc +331 -0
- package/vendor/eigen/Eigen/src/plugins/MatrixCwiseUnaryOps.inc +118 -0
- package/vendor/eigen/Eigen/src/plugins/ReshapedMethods.inc +133 -0
- package/vendor/eigen/README.md +5 -0
- package/vendor/mpdecimal/COPYRIGHT.txt +23 -0
- package/vendor/mpdecimal/README.txt +53 -0
- package/vendor/mpdecimal/libmpdec/.objs/README.txt +8 -0
- package/vendor/mpdecimal/libmpdec/.objs/symbols32.exp +343 -0
- package/vendor/mpdecimal/libmpdec/.objs/symbols64.exp +347 -0
- package/vendor/mpdecimal/libmpdec/.pc/libmpdec.pc.in +11 -0
- package/vendor/mpdecimal/libmpdec/.profile/train.sh +35 -0
- package/vendor/mpdecimal/libmpdec/README.txt +84 -0
- package/vendor/mpdecimal/libmpdec/basearith.c +649 -0
- package/vendor/mpdecimal/libmpdec/basearith.h +217 -0
- package/vendor/mpdecimal/libmpdec/bits.h +188 -0
- package/vendor/mpdecimal/libmpdec/constants.c +129 -0
- package/vendor/mpdecimal/libmpdec/constants.h +88 -0
- package/vendor/mpdecimal/libmpdec/context.c +285 -0
- package/vendor/mpdecimal/libmpdec/convolute.c +172 -0
- package/vendor/mpdecimal/libmpdec/convolute.h +48 -0
- package/vendor/mpdecimal/libmpdec/crt.c +178 -0
- package/vendor/mpdecimal/libmpdec/crt.h +45 -0
- package/vendor/mpdecimal/libmpdec/difradix2.c +171 -0
- package/vendor/mpdecimal/libmpdec/difradix2.h +46 -0
- package/vendor/mpdecimal/libmpdec/fnt.c +77 -0
- package/vendor/mpdecimal/libmpdec/fnt.h +46 -0
- package/vendor/mpdecimal/libmpdec/fourstep.c +242 -0
- package/vendor/mpdecimal/libmpdec/fourstep.h +46 -0
- package/vendor/mpdecimal/libmpdec/io.c +1610 -0
- package/vendor/mpdecimal/libmpdec/io.h +61 -0
- package/vendor/mpdecimal/libmpdec/mpalloc.c +347 -0
- package/vendor/mpdecimal/libmpdec/mpalloc.h +53 -0
- package/vendor/mpdecimal/libmpdec/mpdecimal.c +9155 -0
- package/vendor/mpdecimal/libmpdec/mpdecimal.h.in +804 -0
- package/vendor/mpdecimal/libmpdec/mpsignal.c +966 -0
- package/vendor/mpdecimal/libmpdec/numbertheory.c +129 -0
- package/vendor/mpdecimal/libmpdec/numbertheory.h +75 -0
- package/vendor/mpdecimal/libmpdec/sixstep.c +212 -0
- package/vendor/mpdecimal/libmpdec/sixstep.h +46 -0
- package/vendor/mpdecimal/libmpdec/transpose.c +275 -0
- package/vendor/mpdecimal/libmpdec/transpose.h +60 -0
- package/vendor/mpdecimal/libmpdec/typearith.h +661 -0
- package/vendor/mpdecimal/libmpdec/umodarith.h +645 -0
- package/vendor/symengine/AUTHORS +101 -0
- package/vendor/symengine/LICENSE +254 -0
- package/vendor/symengine/README.md +199 -0
- package/vendor/symengine/symengine/add.cpp +508 -0
- package/vendor/symengine/symengine/add.h +187 -0
- package/vendor/symengine/symengine/as_real_imag.cpp +289 -0
- package/vendor/symengine/symengine/assumptions.cpp +202 -0
- package/vendor/symengine/symengine/assumptions.h +47 -0
- package/vendor/symengine/symengine/basic-inl.h +152 -0
- package/vendor/symengine/symengine/basic-methods.inc +9 -0
- package/vendor/symengine/symengine/basic.cpp +110 -0
- package/vendor/symengine/symengine/basic.h +356 -0
- package/vendor/symengine/symengine/complex.cpp +198 -0
- package/vendor/symengine/symengine/complex.h +396 -0
- package/vendor/symengine/symengine/complex_double.cpp +72 -0
- package/vendor/symengine/symengine/complex_double.h +570 -0
- package/vendor/symengine/symengine/complex_mpc.h +406 -0
- package/vendor/symengine/symengine/constants.cpp +130 -0
- package/vendor/symengine/symengine/constants.h +81 -0
- package/vendor/symengine/symengine/cse.cpp +556 -0
- package/vendor/symengine/symengine/cwrapper.h +949 -0
- package/vendor/symengine/symengine/dense_matrix.cpp +2100 -0
- package/vendor/symengine/symengine/derivative.cpp +841 -0
- package/vendor/symengine/symengine/derivative.h +137 -0
- package/vendor/symengine/symengine/dict.cpp +125 -0
- package/vendor/symengine/symengine/dict.h +333 -0
- package/vendor/symengine/symengine/diophantine.cpp +139 -0
- package/vendor/symengine/symengine/diophantine.h +20 -0
- package/vendor/symengine/symengine/eval.cpp +109 -0
- package/vendor/symengine/symengine/eval.h +40 -0
- package/vendor/symengine/symengine/eval_arb.h +31 -0
- package/vendor/symengine/symengine/eval_double.cpp +959 -0
- package/vendor/symengine/symengine/eval_double.h +28 -0
- package/vendor/symengine/symengine/eval_mpc.h +29 -0
- package/vendor/symengine/symengine/eval_mpfr.h +26 -0
- package/vendor/symengine/symengine/expand.cpp +379 -0
- package/vendor/symengine/symengine/expression.cpp +24 -0
- package/vendor/symengine/symengine/expression.h +375 -0
- package/vendor/symengine/symengine/fields.cpp +861 -0
- package/vendor/symengine/symengine/fields.h +647 -0
- package/vendor/symengine/symengine/finitediff.cpp +70 -0
- package/vendor/symengine/symengine/finitediff.h +21 -0
- package/vendor/symengine/symengine/flint_wrapper.h +1010 -0
- package/vendor/symengine/symengine/functions.cpp +3913 -0
- package/vendor/symengine/symengine/functions.h +1321 -0
- package/vendor/symengine/symengine/infinity.cpp +537 -0
- package/vendor/symengine/symengine/infinity.h +118 -0
- package/vendor/symengine/symengine/integer.cpp +153 -0
- package/vendor/symengine/symengine/integer.h +227 -0
- package/vendor/symengine/symengine/interruption.cpp +9 -0
- package/vendor/symengine/symengine/interruption.h +19 -0
- package/vendor/symengine/symengine/lambda_double.h +918 -0
- package/vendor/symengine/symengine/limits.h +35 -0
- package/vendor/symengine/symengine/llvm_double.h +201 -0
- package/vendor/symengine/symengine/logic.cpp +812 -0
- package/vendor/symengine/symengine/logic.h +281 -0
- package/vendor/symengine/symengine/matrices/conjugate_matrix.cpp +139 -0
- package/vendor/symengine/symengine/matrices/conjugate_matrix.h +39 -0
- package/vendor/symengine/symengine/matrices/diagonal_matrix.cpp +79 -0
- package/vendor/symengine/symengine/matrices/diagonal_matrix.h +52 -0
- package/vendor/symengine/symengine/matrices/hadamard_product.cpp +151 -0
- package/vendor/symengine/symengine/matrices/hadamard_product.h +42 -0
- package/vendor/symengine/symengine/matrices/identity_matrix.cpp +63 -0
- package/vendor/symengine/symengine/matrices/identity_matrix.h +40 -0
- package/vendor/symengine/symengine/matrices/immutable_dense_matrix.cpp +143 -0
- package/vendor/symengine/symengine/matrices/immutable_dense_matrix.h +65 -0
- package/vendor/symengine/symengine/matrices/is_diagonal.cpp +115 -0
- package/vendor/symengine/symengine/matrices/is_lower.cpp +110 -0
- package/vendor/symengine/symengine/matrices/is_real.cpp +78 -0
- package/vendor/symengine/symengine/matrices/is_square.cpp +85 -0
- package/vendor/symengine/symengine/matrices/is_symmetric.cpp +112 -0
- package/vendor/symengine/symengine/matrices/is_toeplitz.cpp +104 -0
- package/vendor/symengine/symengine/matrices/is_upper.cpp +108 -0
- package/vendor/symengine/symengine/matrices/is_zero.cpp +81 -0
- package/vendor/symengine/symengine/matrices/matrix_add.cpp +176 -0
- package/vendor/symengine/symengine/matrices/matrix_add.h +42 -0
- package/vendor/symengine/symengine/matrices/matrix_expr.h +19 -0
- package/vendor/symengine/symengine/matrices/matrix_mul.cpp +258 -0
- package/vendor/symengine/symengine/matrices/matrix_mul.h +55 -0
- package/vendor/symengine/symengine/matrices/matrix_symbol.cpp +34 -0
- package/vendor/symengine/symengine/matrices/matrix_symbol.h +41 -0
- package/vendor/symengine/symengine/matrices/size.cpp +121 -0
- package/vendor/symengine/symengine/matrices/size.h +15 -0
- package/vendor/symengine/symengine/matrices/trace.cpp +112 -0
- package/vendor/symengine/symengine/matrices/trace.h +31 -0
- package/vendor/symengine/symengine/matrices/transpose.cpp +126 -0
- package/vendor/symengine/symengine/matrices/transpose.h +39 -0
- package/vendor/symengine/symengine/matrices/zero_matrix.cpp +94 -0
- package/vendor/symengine/symengine/matrices/zero_matrix.h +47 -0
- package/vendor/symengine/symengine/matrix.cpp +33 -0
- package/vendor/symengine/symengine/matrix.h +675 -0
- package/vendor/symengine/symengine/matrix_expressions.h +51 -0
- package/vendor/symengine/symengine/monomials.cpp +33 -0
- package/vendor/symengine/symengine/monomials.h +20 -0
- package/vendor/symengine/symengine/mp_boost.cpp +635 -0
- package/vendor/symengine/symengine/mp_class.h +1286 -0
- package/vendor/symengine/symengine/mp_wrapper.h +510 -0
- package/vendor/symengine/symengine/mul.cpp +629 -0
- package/vendor/symengine/symengine/mul.h +146 -0
- package/vendor/symengine/symengine/nan.cpp +234 -0
- package/vendor/symengine/symengine/nan.h +82 -0
- package/vendor/symengine/symengine/ntheory.cpp +1700 -0
- package/vendor/symengine/symengine/ntheory.h +213 -0
- package/vendor/symengine/symengine/ntheory_funcs.cpp +189 -0
- package/vendor/symengine/symengine/ntheory_funcs.h +78 -0
- package/vendor/symengine/symengine/number.cpp +36 -0
- package/vendor/symengine/symengine/number.h +256 -0
- package/vendor/symengine/symengine/numer_denom.cpp +149 -0
- package/vendor/symengine/symengine/parser/parser.cpp +367 -0
- package/vendor/symengine/symengine/parser/parser.h +56 -0
- package/vendor/symengine/symengine/parser/parser.tab.cc +1495 -0
- package/vendor/symengine/symengine/parser/parser.tab.hh +1410 -0
- package/vendor/symengine/symengine/parser/parser_old.cpp +688 -0
- package/vendor/symengine/symengine/parser/tokenizer.cpp +435 -0
- package/vendor/symengine/symengine/parser/tokenizer.h +35 -0
- package/vendor/symengine/symengine/parser.h +25 -0
- package/vendor/symengine/symengine/polys/basic_conversions.cpp +178 -0
- package/vendor/symengine/symengine/polys/basic_conversions.h +575 -0
- package/vendor/symengine/symengine/polys/cancel.h +39 -0
- package/vendor/symengine/symengine/polys/msymenginepoly.cpp +130 -0
- package/vendor/symengine/symengine/polys/msymenginepoly.h +536 -0
- package/vendor/symengine/symengine/polys/uexprpoly.cpp +90 -0
- package/vendor/symengine/symengine/polys/uexprpoly.h +205 -0
- package/vendor/symengine/symengine/polys/uintpoly.cpp +62 -0
- package/vendor/symengine/symengine/polys/uintpoly.h +134 -0
- package/vendor/symengine/symengine/polys/uintpoly_flint.h +228 -0
- package/vendor/symengine/symengine/polys/uintpoly_piranha.h +373 -0
- package/vendor/symengine/symengine/polys/upolybase.h +769 -0
- package/vendor/symengine/symengine/polys/uratpoly.cpp +59 -0
- package/vendor/symengine/symengine/polys/uratpoly.h +58 -0
- package/vendor/symengine/symengine/polys/usymenginepoly.h +139 -0
- package/vendor/symengine/symengine/pow.cpp +303 -0
- package/vendor/symengine/symengine/pow.h +76 -0
- package/vendor/symengine/symengine/prime_sieve.cpp +143 -0
- package/vendor/symengine/symengine/prime_sieve.h +64 -0
- package/vendor/symengine/symengine/printers/codegen.cpp +716 -0
- package/vendor/symengine/symengine/printers/codegen.h +168 -0
- package/vendor/symengine/symengine/printers/latex.cpp +630 -0
- package/vendor/symengine/symengine/printers/latex.h +76 -0
- package/vendor/symengine/symengine/printers/mathml.cpp +358 -0
- package/vendor/symengine/symengine/printers/mathml.h +62 -0
- package/vendor/symengine/symengine/printers/stringbox.cpp +276 -0
- package/vendor/symengine/symengine/printers/stringbox.h +60 -0
- package/vendor/symengine/symengine/printers/strprinter.cpp +1212 -0
- package/vendor/symengine/symengine/printers/strprinter.h +217 -0
- package/vendor/symengine/symengine/printers/unicode.cpp +730 -0
- package/vendor/symengine/symengine/printers/unicode.h +84 -0
- package/vendor/symengine/symengine/printers.h +46 -0
- package/vendor/symengine/symengine/rational.cpp +365 -0
- package/vendor/symengine/symengine/rational.h +341 -0
- package/vendor/symengine/symengine/real_double.cpp +388 -0
- package/vendor/symengine/symengine/real_double.h +492 -0
- package/vendor/symengine/symengine/real_mpfr.h +379 -0
- package/vendor/symengine/symengine/refine.cpp +213 -0
- package/vendor/symengine/symengine/refine.h +43 -0
- package/vendor/symengine/symengine/rewrite.cpp +235 -0
- package/vendor/symengine/symengine/rings.cpp +107 -0
- package/vendor/symengine/symengine/rings.h +24 -0
- package/vendor/symengine/symengine/serialize-cereal.h +964 -0
- package/vendor/symengine/symengine/series.cpp +85 -0
- package/vendor/symengine/symengine/series.h +727 -0
- package/vendor/symengine/symengine/series_flint.h +214 -0
- package/vendor/symengine/symengine/series_generic.cpp +247 -0
- package/vendor/symengine/symengine/series_generic.h +86 -0
- package/vendor/symengine/symengine/series_piranha.h +95 -0
- package/vendor/symengine/symengine/series_visitor.h +357 -0
- package/vendor/symengine/symengine/set_funcs.cpp +296 -0
- package/vendor/symengine/symengine/sets.cpp +1854 -0
- package/vendor/symengine/symengine/sets.h +696 -0
- package/vendor/symengine/symengine/simplify.cpp +62 -0
- package/vendor/symengine/symengine/simplify.h +34 -0
- package/vendor/symengine/symengine/solve.cpp +665 -0
- package/vendor/symengine/symengine/solve.h +117 -0
- package/vendor/symengine/symengine/sparse_matrix.cpp +776 -0
- package/vendor/symengine/symengine/special_boost.cpp +85 -0
- package/vendor/symengine/symengine/special_double.h +570 -0
- package/vendor/symengine/symengine/subs.h +579 -0
- package/vendor/symengine/symengine/symbol.cpp +88 -0
- package/vendor/symengine/symengine/symbol.h +116 -0
- package/vendor/symengine/symengine/symengine_assert.h +50 -0
- package/vendor/symengine/symengine/symengine_casts.h +139 -0
- package/vendor/symengine/symengine/symengine_exception.h +101 -0
- package/vendor/symengine/symengine/symengine_rcp.cpp +21 -0
- package/vendor/symengine/symengine/symengine_rcp.h +384 -0
- package/vendor/symengine/symengine/test_visitors.cpp +1083 -0
- package/vendor/symengine/symengine/test_visitors.h +466 -0
- package/vendor/symengine/symengine/tribool.h +85 -0
- package/vendor/symengine/symengine/tuple.cpp +47 -0
- package/vendor/symengine/symengine/tuple.h +32 -0
- package/vendor/symengine/symengine/type_codes.inc +139 -0
- package/vendor/symengine/symengine/utilities/cereal/LICENSE +24 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/access.hpp +351 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/archives/adapters.hpp +163 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/archives/binary.hpp +169 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/archives/json.hpp +1024 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/archives/portable_binary.hpp +334 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/archives/xml.hpp +956 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/cereal.hpp +1120 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/details/helpers.hpp +422 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/details/polymorphic_impl.hpp +825 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/details/polymorphic_impl_fwd.hpp +65 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/details/static_object.hpp +128 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/details/traits.hpp +1411 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/details/util.hpp +84 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/macros.hpp +156 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/specialize.hpp +139 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/array.hpp +79 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/atomic.hpp +55 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/base_class.hpp +203 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/bitset.hpp +176 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/boost_variant.hpp +164 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/chrono.hpp +72 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/common.hpp +129 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/complex.hpp +56 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/concepts/pair_associative_container.hpp +73 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/deque.hpp +62 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/forward_list.hpp +68 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/functional.hpp +43 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/list.hpp +62 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/map.hpp +36 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/memory.hpp +425 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/optional.hpp +65 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/polymorphic.hpp +483 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/queue.hpp +132 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/set.hpp +103 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/stack.hpp +76 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/string.hpp +61 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/tuple.hpp +123 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/unordered_map.hpp +36 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/unordered_set.hpp +99 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/utility.hpp +47 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/valarray.hpp +89 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/variant.hpp +108 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/vector.hpp +112 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/version.hpp +52 -0
- package/vendor/symengine/symengine/utilities/fast_float/include/fast_float/fast_float.h +3720 -0
- package/vendor/symengine/symengine/utilities/stream_fmt.h +25 -0
- package/vendor/symengine/symengine/visitor.cpp +348 -0
- package/vendor/symengine/symengine/visitor.h +425 -0
|
@@ -0,0 +1,1332 @@
|
|
|
1
|
+
//The limits by Gruntz's algorithm (see Gruntz.h)
|
|
2
|
+
#include "Gruntz.h"
|
|
3
|
+
|
|
4
|
+
#include <algorithm>
|
|
5
|
+
#include <atomic>
|
|
6
|
+
#include <cmath>
|
|
7
|
+
#include <complex>
|
|
8
|
+
#include <functional>
|
|
9
|
+
#include <map>
|
|
10
|
+
#include <optional>
|
|
11
|
+
#include <utility>
|
|
12
|
+
#include <vector>
|
|
13
|
+
|
|
14
|
+
#include <symengine/add.h>
|
|
15
|
+
#include <symengine/constants.h>
|
|
16
|
+
#include <symengine/functions.h>
|
|
17
|
+
#include <symengine/infinity.h>
|
|
18
|
+
#include <symengine/integer.h>
|
|
19
|
+
#include <symengine/logic.h>
|
|
20
|
+
#include <symengine/mul.h>
|
|
21
|
+
#include <symengine/nan.h>
|
|
22
|
+
#include <symengine/pow.h>
|
|
23
|
+
#include <symengine/rational.h>
|
|
24
|
+
#include <symengine/subs.h>
|
|
25
|
+
#include <symengine/symbol.h>
|
|
26
|
+
#include <symengine/visitor.h>
|
|
27
|
+
|
|
28
|
+
#include "../async/Pool.h"
|
|
29
|
+
#include "../core/Errors.h"
|
|
30
|
+
#include "../functions/Functions.h"
|
|
31
|
+
#include "../functions/SpecialIntegrals.h"
|
|
32
|
+
#include "../functions/Summation.h"
|
|
33
|
+
#include "../ops/Operations.h"
|
|
34
|
+
#include "../parser/Parser.h"
|
|
35
|
+
#include "../poly/Rational.h"
|
|
36
|
+
#include "../printer/Printer.h"
|
|
37
|
+
|
|
38
|
+
namespace math {
|
|
39
|
+
|
|
40
|
+
using namespace SymEngine;
|
|
41
|
+
|
|
42
|
+
namespace {
|
|
43
|
+
|
|
44
|
+
using Variable = RCP<const Symbol>;
|
|
45
|
+
|
|
46
|
+
//The deepest recursion of the limits at inf: past it, the limit is not found
|
|
47
|
+
constexpr unsigned LIMIT_DEPTH = 60;
|
|
48
|
+
|
|
49
|
+
MathError notFound(const std::string &why)
|
|
50
|
+
{
|
|
51
|
+
return MathError(ErrorCode::NotSupported, "The limit is not found: " + why);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
//A variable of the algorithm: a name no other has (no name of the parser has @; SymEngine's series and the polynomials
|
|
55
|
+
//know variables by their names)
|
|
56
|
+
Variable fresh(const std::string &name)
|
|
57
|
+
{
|
|
58
|
+
static std::atomic<size_t> count{0};
|
|
59
|
+
return symbol("@" + name + std::to_string(++count));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
//Whether an expression has a variable of the algorithm in it (it is not shown in a message)
|
|
63
|
+
bool internal(const Expr &e)
|
|
64
|
+
{
|
|
65
|
+
for (const auto &atom : free_symbols(*e)) {
|
|
66
|
+
if (down_cast<const Symbol &>(*atom).get_name().rfind('@', 0) == 0) return true;
|
|
67
|
+
}
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
MathError signUnknown(const Expr &e)
|
|
72
|
+
{
|
|
73
|
+
return notFound(internal(e) ? "it depends on a sign that is not decided" : "it depends on the sign of " + toText(e));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
//The name of a function, for a message
|
|
77
|
+
std::string nameOf(const Expr &e)
|
|
78
|
+
{
|
|
79
|
+
const std::string text = toText(e);
|
|
80
|
+
return text.substr(0, text.find('('));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
bool has(const Expr &e, const Variable &x)
|
|
84
|
+
{
|
|
85
|
+
return has_symbol(*e, *x);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
bool isExp(const Expr &e)
|
|
89
|
+
{
|
|
90
|
+
return is_a<Pow>(*e) && eq(*down_cast<const Pow &>(*e).get_base(), *E);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
Expr argumentOf(const Expr &e)
|
|
94
|
+
{
|
|
95
|
+
return down_cast<const Pow &>(*e).get_exp();
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
Expr replaced(const Expr &e, const Expr &from, const Expr &to)
|
|
99
|
+
{
|
|
100
|
+
map_basic_basic replacement;
|
|
101
|
+
replacement[from] = to;
|
|
102
|
+
return xreplace(e, replacement);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
Expr substituted(const Expr &e, const Expr &from, const Expr &to)
|
|
106
|
+
{
|
|
107
|
+
map_basic_basic replacement;
|
|
108
|
+
replacement[from] = to;
|
|
109
|
+
return subs(e, replacement);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
bool isInfinite(const Expr &e)
|
|
113
|
+
{
|
|
114
|
+
if (is_a<Infty>(*e)) return true;
|
|
115
|
+
if (is_a<Mul>(*e)) {
|
|
116
|
+
for (const auto &[base, exponent] : down_cast<const Mul &>(*e).get_dict()) {
|
|
117
|
+
if (is_a<Infty>(*base)) return true;
|
|
118
|
+
}
|
|
119
|
+
return is_a<Infty>(*down_cast<const Mul &>(*e).get_coef());
|
|
120
|
+
}
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
//Whether a value is positive where the variables are: x and w positive, the exponentials of real values
|
|
125
|
+
bool positive(const Expr &e, const std::vector<Variable> &positives)
|
|
126
|
+
{
|
|
127
|
+
if (is_a_Number(*e)) return down_cast<const Number &>(*e).is_positive();
|
|
128
|
+
if (is_a_sub<Symbol>(*e)) return std::any_of(positives.begin(), positives.end(), [&e](const Variable &v) { return eq(*v, *e); });
|
|
129
|
+
if (is_a<Constant>(*e)) return compareOf(e, zero) == 1;
|
|
130
|
+
if (isExp(e)) return true;
|
|
131
|
+
if (is_a<Pow>(*e)) return positive(down_cast<const Pow &>(*e).get_base(), positives);
|
|
132
|
+
if (is_a<Mul>(*e)) {
|
|
133
|
+
if (!down_cast<const Mul &>(*e).get_coef()->is_positive()) return false;
|
|
134
|
+
for (const auto &[base, exponent] : down_cast<const Mul &>(*e).get_dict()) {
|
|
135
|
+
if (!positive(base, positives)) return false;
|
|
136
|
+
}
|
|
137
|
+
return true;
|
|
138
|
+
}
|
|
139
|
+
if (is_a<Add>(*e)) {
|
|
140
|
+
for (const Expr &term : e->get_args()) {
|
|
141
|
+
if (!positive(term, positives)) return false;
|
|
142
|
+
}
|
|
143
|
+
return true;
|
|
144
|
+
}
|
|
145
|
+
return false;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
Expr logOf(const Expr &a, const std::vector<Variable> &positives);
|
|
149
|
+
|
|
150
|
+
//A power with the rules of positive values: (a^p)^q is a^(p q), (a b)^p is a^p b^p, e^(u + c log a) is a^c e^u
|
|
151
|
+
Expr powerOf(const Expr &base, const Expr &exponent, const std::vector<Variable> &positives)
|
|
152
|
+
{
|
|
153
|
+
if (isExp(base)) return powerOf(E, expand(mul(argumentOf(base), exponent)), positives);
|
|
154
|
+
if (eq(*base, *E)) {
|
|
155
|
+
if (is_a<Log>(*exponent)) return down_cast<const Log &>(*exponent).get_arg();
|
|
156
|
+
if (is_a<Add>(*exponent) || is_a<Mul>(*exponent)) {
|
|
157
|
+
Expr rest = zero, factor = one;
|
|
158
|
+
const vec_basic terms = is_a<Add>(*exponent) ? exponent->get_args() : vec_basic{exponent};
|
|
159
|
+
for (const Expr &term : terms) {
|
|
160
|
+
//c log(a)
|
|
161
|
+
Expr c = one, inside;
|
|
162
|
+
if (is_a<Log>(*term)) {
|
|
163
|
+
inside = down_cast<const Log &>(*term).get_arg();
|
|
164
|
+
} else if (is_a<Mul>(*term)) {
|
|
165
|
+
const Mul &product = down_cast<const Mul &>(*term);
|
|
166
|
+
if (product.get_dict().size() == 1 && is_a<Log>(*product.get_dict().begin()->first) && eq(*product.get_dict().begin()->second, *one)) {
|
|
167
|
+
c = product.get_coef();
|
|
168
|
+
inside = down_cast<const Log &>(*product.get_dict().begin()->first).get_arg();
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
if (!inside.is_null() && positive(inside, positives)) {
|
|
172
|
+
factor = mul(factor, powerOf(inside, c, positives));
|
|
173
|
+
} else {
|
|
174
|
+
rest = add(rest, term);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
if (!eq(*factor, *one)) return mul(factor, pow(E, rest));
|
|
178
|
+
}
|
|
179
|
+
return pow(E, exponent);
|
|
180
|
+
}
|
|
181
|
+
if (is_a<Pow>(*base) && positive(down_cast<const Pow &>(*base).get_base(), positives)) {
|
|
182
|
+
return powerOf(down_cast<const Pow &>(*base).get_base(), mul(down_cast<const Pow &>(*base).get_exp(), exponent), positives);
|
|
183
|
+
}
|
|
184
|
+
if (is_a<Mul>(*base) && !is_a<Integer>(*exponent) && positive(base, positives)) {
|
|
185
|
+
Expr product = pow(down_cast<const Mul &>(*base).get_coef(), exponent);
|
|
186
|
+
for (const auto &[b, e] : down_cast<const Mul &>(*base).get_dict()) product = mul(product, powerOf(b, mul(e, exponent), positives));
|
|
187
|
+
return product;
|
|
188
|
+
}
|
|
189
|
+
return pow(base, exponent);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
//A logarithm with the rules of positive values: log(e^u) is u, log(a b) is log a + log b, log(a^p) is p log a
|
|
193
|
+
Expr logOf(const Expr &a, const std::vector<Variable> &positives)
|
|
194
|
+
{
|
|
195
|
+
if (isExp(a)) return argumentOf(a);
|
|
196
|
+
if (eq(*a, *E)) return one;
|
|
197
|
+
if (is_a<Pow>(*a) && positive(down_cast<const Pow &>(*a).get_base(), positives)) {
|
|
198
|
+
return mul(down_cast<const Pow &>(*a).get_exp(), logOf(down_cast<const Pow &>(*a).get_base(), positives));
|
|
199
|
+
}
|
|
200
|
+
if (is_a<Mul>(*a)) {
|
|
201
|
+
const Mul &product = down_cast<const Mul &>(*a);
|
|
202
|
+
Expr sum = zero, rest = one;
|
|
203
|
+
if (product.get_coef()->is_positive()) {
|
|
204
|
+
if (!product.get_coef()->is_one()) sum = add(sum, log(product.get_coef()));
|
|
205
|
+
} else {
|
|
206
|
+
rest = product.get_coef();
|
|
207
|
+
}
|
|
208
|
+
for (const auto &[base, exponent] : product.get_dict()) {
|
|
209
|
+
const Expr factor = pow(base, exponent);
|
|
210
|
+
if (positive(factor, positives)) sum = add(sum, logOf(factor, positives));
|
|
211
|
+
else rest = mul(rest, factor);
|
|
212
|
+
}
|
|
213
|
+
if (!eq(*rest, *one)) sum = add(sum, log(rest));
|
|
214
|
+
return sum;
|
|
215
|
+
}
|
|
216
|
+
return log(a);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
//The expression with the rules of positive values applied where they change it (as SymPy's powdenest and expand_log
|
|
220
|
+
//with positive variables)
|
|
221
|
+
class PositiveForm : public TransformVisitor {
|
|
222
|
+
public:
|
|
223
|
+
explicit PositiveForm(const std::vector<Variable> &positives) : positives_(positives)
|
|
224
|
+
{
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
using TransformVisitor::bvisit;
|
|
228
|
+
|
|
229
|
+
//(SymEngine's visitors dispatch on their own class: the rules applied after the arguments are rebuilt)
|
|
230
|
+
RCP<const Basic> apply(const RCP<const Basic> &x) override
|
|
231
|
+
{
|
|
232
|
+
const RCP<const Basic> rebuilt = TransformVisitor::apply(x);
|
|
233
|
+
if (is_a<Pow>(*rebuilt)) return powerOf(down_cast<const Pow &>(*rebuilt).get_base(), down_cast<const Pow &>(*rebuilt).get_exp(), positives_);
|
|
234
|
+
if (is_a<Log>(*rebuilt)) return logOf(down_cast<const Log &>(*rebuilt).get_arg(), positives_);
|
|
235
|
+
return rebuilt;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
private:
|
|
239
|
+
const std::vector<Variable> &positives_;
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
Expr positiveForm(const Expr &e, const std::vector<Variable> &positives)
|
|
243
|
+
{
|
|
244
|
+
checkpoint();
|
|
245
|
+
PositiveForm visitor(positives);
|
|
246
|
+
return visitor.apply(e);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
//A function of other arguments
|
|
250
|
+
Expr rebuilt(const Expr &e, const vec_basic &arguments)
|
|
251
|
+
{
|
|
252
|
+
if (is_a_sub<OneArgFunction>(*e)) return down_cast<const OneArgFunction &>(*e).create(arguments[0]);
|
|
253
|
+
if (is_a_sub<TwoArgFunction>(*e)) return down_cast<const TwoArgFunction &>(*e).create(arguments[0], arguments[1]);
|
|
254
|
+
if (is_a_sub<MultiArgFunction>(*e)) return down_cast<const MultiArgFunction &>(*e).create(arguments);
|
|
255
|
+
if (is_a_sub<FunctionWrapper>(*e)) return down_cast<const FunctionWrapper &>(*e).create(arguments);
|
|
256
|
+
throw notFound("of the function " + nameOf(e));
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
//The most rapidly varying subexpressions: expression to variable, the rewritings of the variables (SymPy's SubsSet)
|
|
260
|
+
struct SubsSet {
|
|
261
|
+
std::vector<std::pair<Expr, Variable>> items;
|
|
262
|
+
map_basic_basic rewrites;
|
|
263
|
+
|
|
264
|
+
Variable at(const Expr &e)
|
|
265
|
+
{
|
|
266
|
+
for (const auto &[expression, variable] : items) {
|
|
267
|
+
if (eq(*expression, *e)) return variable;
|
|
268
|
+
}
|
|
269
|
+
items.emplace_back(e, fresh("m"));
|
|
270
|
+
return items.back().second;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
bool contains(const Expr &e) const
|
|
274
|
+
{
|
|
275
|
+
return std::any_of(items.begin(), items.end(), [&e](const auto &item) { return eq(*item.first, *e); });
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
bool meets(const SubsSet &other) const
|
|
279
|
+
{
|
|
280
|
+
return std::any_of(items.begin(), items.end(), [&other](const auto &item) { return other.contains(item.first); });
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
//The variables replaced by their expressions
|
|
284
|
+
Expr expressed(Expr e) const
|
|
285
|
+
{
|
|
286
|
+
for (const auto &[expression, variable] : items) e = replaced(e, variable, expression);
|
|
287
|
+
return e;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
std::pair<SubsSet, Expr> unite(const SubsSet &other, Expr expressions) const
|
|
291
|
+
{
|
|
292
|
+
SubsSet result = *this;
|
|
293
|
+
map_basic_basic renamed;
|
|
294
|
+
for (const auto &[expression, variable] : other.items) {
|
|
295
|
+
if (contains(expression)) {
|
|
296
|
+
const Variable mine = result.at(expression);
|
|
297
|
+
expressions = replaced(expressions, variable, mine);
|
|
298
|
+
renamed[variable] = mine;
|
|
299
|
+
} else {
|
|
300
|
+
result.items.emplace_back(expression, variable);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
for (const auto &[variable, rewrite] : other.rewrites) result.rewrites[variable] = xreplace(rewrite, renamed);
|
|
304
|
+
return {result, expressions};
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
//Whether an expression has nan, an infinity or complexInfinity in it
|
|
309
|
+
bool undefinedIn(const Expr &e)
|
|
310
|
+
{
|
|
311
|
+
if (is_a<NaN>(*e) || is_a<Infty>(*e)) return true;
|
|
312
|
+
for (const Expr &argument : e->get_args()) {
|
|
313
|
+
if (undefinedIn(argument)) return true;
|
|
314
|
+
}
|
|
315
|
+
return false;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
//A limit, or an oscillation without one: bounded or not
|
|
319
|
+
struct Found {
|
|
320
|
+
Expr value;
|
|
321
|
+
bool bounded = true;
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
class Gruntz {
|
|
325
|
+
public:
|
|
326
|
+
explicit Gruntz(const Variable &x) : x_(x), positives_{x}
|
|
327
|
+
{
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
//The limit of e for x going to inf (limitinf)
|
|
331
|
+
Expr limitInf(const Expr &given)
|
|
332
|
+
{
|
|
333
|
+
const Found found = limitFound(given);
|
|
334
|
+
if (found.value.is_null()) throw notFound("of an oscillating part");
|
|
335
|
+
return found.value;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
//The limit of e for x going to inf, or its oscillation: by the algorithm, or by the laws of limits where it fails
|
|
339
|
+
//(of functions it takes no series of, of sin and cos of arguments going to infinity)
|
|
340
|
+
Found limitFound(const Expr &given)
|
|
341
|
+
{
|
|
342
|
+
if (++depth_ > LIMIT_DEPTH) {
|
|
343
|
+
depth_--;
|
|
344
|
+
throw notFound("its computation is nested too deep");
|
|
345
|
+
}
|
|
346
|
+
struct Leave {
|
|
347
|
+
unsigned &depth;
|
|
348
|
+
~Leave() { depth--; }
|
|
349
|
+
} leave{depth_};
|
|
350
|
+
checkpoint();
|
|
351
|
+
if (!has(given, x_)) return {given};
|
|
352
|
+
std::optional<MathError> failure;
|
|
353
|
+
try {
|
|
354
|
+
return {gruntzLimit(given)};
|
|
355
|
+
} catch (const MathError &error) {
|
|
356
|
+
if (error.code() != ErrorCode::NotSupported) throw;
|
|
357
|
+
failure = error;
|
|
358
|
+
} catch (SymEngineException &error) {
|
|
359
|
+
failure = notFound(error.what());
|
|
360
|
+
}
|
|
361
|
+
try {
|
|
362
|
+
return lawsLimit(tractable(positiveForm(given, positives_), false));
|
|
363
|
+
} catch (const MathError &error) {
|
|
364
|
+
if (error.code() != ErrorCode::NotSupported) throw;
|
|
365
|
+
} catch (SymEngineException &) {
|
|
366
|
+
}
|
|
367
|
+
throw *failure;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
private:
|
|
371
|
+
Variable x_;
|
|
372
|
+
std::vector<Variable> positives_;
|
|
373
|
+
unsigned depth_ = 0;
|
|
374
|
+
//The order of the polynomials of the special integrals (specialPolynomial), and the remainders written in them
|
|
375
|
+
unsigned specialOrder_ = 8;
|
|
376
|
+
std::vector<Variable> remainders_;
|
|
377
|
+
|
|
378
|
+
//The limit by the algorithm; computed again with the special integrals to higher orders while a remainder of their
|
|
379
|
+
//polynomials is in it or its sign is asked
|
|
380
|
+
Expr gruntzLimit(const Expr &given)
|
|
381
|
+
{
|
|
382
|
+
const unsigned first = specialOrder_;
|
|
383
|
+
struct Restore {
|
|
384
|
+
unsigned ℴ
|
|
385
|
+
unsigned value;
|
|
386
|
+
~Restore() { order = value; }
|
|
387
|
+
} restore{specialOrder_, first};
|
|
388
|
+
for (unsigned order = first;; order *= 2) {
|
|
389
|
+
specialOrder_ = order;
|
|
390
|
+
const size_t start = remainders_.size();
|
|
391
|
+
try {
|
|
392
|
+
const Expr result = gruntzOnce(given);
|
|
393
|
+
bool left = false;
|
|
394
|
+
for (size_t i = start; i < remainders_.size(); i++) left = left || has(result, remainders_[i]);
|
|
395
|
+
if (!left) return result;
|
|
396
|
+
if (order >= 64) throw notFound("a series of a special integral is not computed to enough terms");
|
|
397
|
+
} catch (const MathError &error) {
|
|
398
|
+
if (error.code() != ErrorCode::NotSupported || remainders_.size() == start || order >= 64) throw;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
//A special integral F(u) of u going to v, finite: its Taylor polynomial in u - v to the order, plus r (u - v)^(order + 1)
|
|
404
|
+
//of a fresh constant r for the rest (gruntzLimit computes the limit again to a higher order where r is left in it).
|
|
405
|
+
//At 0, Ci, Chi and Ei are γ + ln(±u) and their power series; li(u) is Ei(ln u). At inf and -inf, Ei(u) is
|
|
406
|
+
//e^u (Σ k!/u^(k + 1) + r/u^(order + 1)), its asymptotic series, Shi and Chi (Ei(u) ∓ Ei(-u))/2; the laws of limits
|
|
407
|
+
//take the others (Si(x) at inf)
|
|
408
|
+
Expr specialPolynomial(SpecialIntegral::Kind kind, const Expr &u, const Expr &value = Expr())
|
|
409
|
+
{
|
|
410
|
+
using Kind = SpecialIntegral::Kind;
|
|
411
|
+
const Expr v = limitInf(u);
|
|
412
|
+
if (has(v, x_) || is_a<NaN>(*v)) throw notFound("of a special integral of an argument without a limit");
|
|
413
|
+
const int infinite = infinitySign(v);
|
|
414
|
+
//li(u) as Ei(ln u) for u > 0, its value at v as li(v) (the series of li'(u) = 1/ln(u) inverts a whole series: its
|
|
415
|
+
//coefficients swelled)
|
|
416
|
+
if (kind == Kind::Li) {
|
|
417
|
+
if (infinite > 0 || (eq(*v, *zero) && sign(u) == 1)) return specialPolynomial(Kind::Ei, log(u));
|
|
418
|
+
if (infinite == 0 && !undefinedIn(v) && compareOf(v, zero) == 1) return specialPolynomial(Kind::Ei, log(u), specialIntegralOf(Kind::Li, v));
|
|
419
|
+
throw notFound("of li of a complex value");
|
|
420
|
+
}
|
|
421
|
+
if (infinite != 0 && (kind == Kind::Shi || (kind == Kind::Chi && infinite > 0))) {
|
|
422
|
+
const Expr sum = kind == Kind::Shi ? sub(specialPolynomial(Kind::Ei, u), specialPolynomial(Kind::Ei, neg(u))) : add(specialPolynomial(Kind::Ei, u), specialPolynomial(Kind::Ei, neg(u)));
|
|
423
|
+
return div(sum, integer(2));
|
|
424
|
+
}
|
|
425
|
+
if (infinite != 0 && kind != Kind::Ei) throw notFound("of a special integral of an argument going to infinity");
|
|
426
|
+
const unsigned order = specialOrder_;
|
|
427
|
+
if (infinite != 0) {
|
|
428
|
+
Expr sum = zero, factorial = one;
|
|
429
|
+
for (unsigned k = 0; k < order; k++) {
|
|
430
|
+
if (k > 0) factorial = mul(factorial, integer(k));
|
|
431
|
+
sum = add(sum, div(factorial, pow(u, integer(k + 1))));
|
|
432
|
+
}
|
|
433
|
+
const Variable remainder = fresh("remainder");
|
|
434
|
+
remainders_.push_back(remainder);
|
|
435
|
+
return mul(exp(u), add(sum, div(remainder, pow(u, integer(order + 1)))));
|
|
436
|
+
}
|
|
437
|
+
if (undefinedIn(v)) throw notFound("of a special integral of an argument without a limit");
|
|
438
|
+
Expr polynomial;
|
|
439
|
+
Expr distance = sub(u, v);
|
|
440
|
+
if (eq(*v, *zero)) {
|
|
441
|
+
distance = u;
|
|
442
|
+
if (const std::optional<Expr> series = specialIntegralSeries(kind, u, order)) {
|
|
443
|
+
polynomial = *series;
|
|
444
|
+
} else {
|
|
445
|
+
//γ + ln|u| + Σ u^k/(k k!) for Ei, the even powers for Chi, with alternating signs for Ci
|
|
446
|
+
const int side = sign(u);
|
|
447
|
+
if (side == 0 || (side < 0 && kind != Kind::Ei)) throw notFound("of a special integral of a complex value");
|
|
448
|
+
polynomial = add(EulerGamma, log(side > 0 ? u : neg(u)));
|
|
449
|
+
Expr factorial = one;
|
|
450
|
+
for (unsigned k = 1; k <= order; k++) {
|
|
451
|
+
factorial = mul(factorial, integer(k));
|
|
452
|
+
if (kind != Kind::Ei && k % 2 == 1) continue;
|
|
453
|
+
const Expr term = div(pow(u, integer(k)), mul(integer(k), factorial));
|
|
454
|
+
polynomial = kind == Kind::Ci && k % 4 == 2 ? sub(polynomial, term) : add(polynomial, term);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
} else {
|
|
458
|
+
//F(v) and the integral of the series of F' at v (Ci and Chi are real for v > 0 only)
|
|
459
|
+
if ((kind == Kind::Ci || kind == Kind::Chi) && compareOf(v, zero) != 1) throw notFound("of a special integral of a complex value");
|
|
460
|
+
const Variable t = fresh("t"), h = fresh("h");
|
|
461
|
+
const Expr derivative = specialIntegralOf(kind, t)->diff(t);
|
|
462
|
+
polynomial = value.is_null() ? specialIntegralOf(kind, v) : value;
|
|
463
|
+
for (const auto &[power, coefficient] : seriesTermsOf(subs(derivative, {{t, add(v, h)}}), h, static_cast<long>(order))) {
|
|
464
|
+
polynomial = add(polynomial, div(mul(coefficient, pow(distance, integer(power + 1))), integer(power + 1)));
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
const Variable remainder = fresh("remainder");
|
|
468
|
+
remainders_.push_back(remainder);
|
|
469
|
+
return add(polynomial, mul(remainder, pow(distance, integer(order + 1))));
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
Expr gruntzOnce(const Expr &given)
|
|
473
|
+
{
|
|
474
|
+
const Expr e = tractable(positiveForm(given, positives_));
|
|
475
|
+
if (!has(e, x_)) return e;
|
|
476
|
+
auto [c0, e0] = mrvLeadterm(e);
|
|
477
|
+
const int signOfExponent = sign(e0);
|
|
478
|
+
if (signOfExponent == 1) return zero;
|
|
479
|
+
if (signOfExponent == -1) {
|
|
480
|
+
const int s = sign(c0);
|
|
481
|
+
if (s == 0) throw notFound("its leading term is 0");
|
|
482
|
+
return s > 0 ? Expr(Inf) : Expr(NegInf);
|
|
483
|
+
}
|
|
484
|
+
if (eq(*c0, *e)) c0 = cancelOf(c0);
|
|
485
|
+
return limitInf(c0);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
//The limits of the parts combined: a sum of limits, a product, a power, a function of the limit of its argument
|
|
489
|
+
Found lawsLimit(const Expr &e)
|
|
490
|
+
{
|
|
491
|
+
checkpoint();
|
|
492
|
+
if (!has(e, x_)) return {e};
|
|
493
|
+
if (eq(*e, *x_)) return {Inf};
|
|
494
|
+
if (is_a<Add>(*e) || is_a<Mul>(*e)) {
|
|
495
|
+
const bool sum = is_a<Add>(*e);
|
|
496
|
+
std::vector<Expr> values;
|
|
497
|
+
std::vector<bool> oscillations;
|
|
498
|
+
for (const Expr &part : e->get_args()) {
|
|
499
|
+
const Found found = limitFound(part);
|
|
500
|
+
if (found.value.is_null()) oscillations.push_back(found.bounded);
|
|
501
|
+
else values.push_back(found.value);
|
|
502
|
+
}
|
|
503
|
+
const Expr value = sum ? sumOfLimits(values) : productOfLimits(values);
|
|
504
|
+
if (oscillations.empty()) return {value};
|
|
505
|
+
const bool bounded = std::all_of(oscillations.begin(), oscillations.end(), [](bool b) { return b; });
|
|
506
|
+
const int infinity = infinitySign(value);
|
|
507
|
+
//A bounded oscillation and an infinity, a bounded oscillation times 0
|
|
508
|
+
if (sum && infinity != 0 && bounded) return {value};
|
|
509
|
+
if (!sum && bounded && eq(*value, *zero)) return {zero};
|
|
510
|
+
//One oscillation and a limit (sin(u) + c, sin(u) c with c not 0): no limit
|
|
511
|
+
if (oscillations.size() == 1) {
|
|
512
|
+
if (sum && infinity == 0) return {Expr(), bounded};
|
|
513
|
+
if (!sum && (infinity != 0 || compareOf(value, zero) == 1 || compareOf(value, zero) == -1)) return {Expr(), bounded && infinity == 0};
|
|
514
|
+
}
|
|
515
|
+
throw notFound("of oscillating parts");
|
|
516
|
+
}
|
|
517
|
+
if (is_a<Pow>(*e)) {
|
|
518
|
+
const Expr base = down_cast<const Pow &>(*e).get_base(), exponent = down_cast<const Pow &>(*e).get_exp();
|
|
519
|
+
if (has(exponent, x_)) {
|
|
520
|
+
if (eq(*base, *E)) {
|
|
521
|
+
const Found found = limitFound(exponent);
|
|
522
|
+
if (found.value.is_null()) {
|
|
523
|
+
if (found.bounded) return {Expr(), true};
|
|
524
|
+
throw notFound("of an oscillating exponent");
|
|
525
|
+
}
|
|
526
|
+
const int infinity = infinitySign(found.value);
|
|
527
|
+
if (infinity != 0) return {infinity > 0 ? Expr(Inf) : Expr(zero)};
|
|
528
|
+
return {defined(exp(found.value))};
|
|
529
|
+
}
|
|
530
|
+
return lawsLimit(tractable(powerOf(E, mul(exponent, logOf(base, positives_)), positives_), false));
|
|
531
|
+
}
|
|
532
|
+
const Found found = limitFound(base);
|
|
533
|
+
if (found.value.is_null()) {
|
|
534
|
+
if (is_a<Integer>(*exponent) && down_cast<const Integer &>(*exponent).is_positive() && found.bounded) return {Expr(), true};
|
|
535
|
+
throw notFound("of a power of an oscillating base");
|
|
536
|
+
}
|
|
537
|
+
const Expr &v = found.value;
|
|
538
|
+
const int infinity = infinitySign(v);
|
|
539
|
+
const int exponentSign = compareOf(exponent, zero);
|
|
540
|
+
if (exponentSign != 1 && exponentSign != -1) throw signUnknown(exponent);
|
|
541
|
+
if (infinity > 0) return {exponentSign > 0 ? Expr(Inf) : Expr(zero)};
|
|
542
|
+
if (infinity < 0) {
|
|
543
|
+
if (exponentSign < 0) return {zero};
|
|
544
|
+
if (!is_a<Integer>(*exponent)) throw notFound("of a power of a negative infinity");
|
|
545
|
+
return {down_cast<const Integer &>(*exponent).as_integer_class() % 2 == 0 ? Expr(Inf) : Expr(NegInf)};
|
|
546
|
+
}
|
|
547
|
+
if (eq(*v, *zero) && exponentSign < 0) {
|
|
548
|
+
const int s = sign(base);
|
|
549
|
+
if (s > 0) return {Inf};
|
|
550
|
+
if (s < 0 && is_a<Integer>(*exponent)) return {down_cast<const Integer &>(*exponent).as_integer_class() % 2 == 0 ? Expr(Inf) : Expr(NegInf)};
|
|
551
|
+
throw notFound("of a power of a base going to 0");
|
|
552
|
+
}
|
|
553
|
+
return {defined(pow(v, exponent))};
|
|
554
|
+
}
|
|
555
|
+
if (is_a<Log>(*e)) {
|
|
556
|
+
const Found found = limitFound(down_cast<const Log &>(*e).get_arg());
|
|
557
|
+
if (found.value.is_null()) throw notFound("of the logarithm of an oscillation");
|
|
558
|
+
const int infinity = infinitySign(found.value);
|
|
559
|
+
if (infinity > 0) return {Inf};
|
|
560
|
+
if (eq(*found.value, *zero) && sign(down_cast<const Log &>(*e).get_arg()) > 0) return {NegInf};
|
|
561
|
+
if (infinity < 0 || eq(*found.value, *zero)) throw notFound("of the logarithm of a value going to 0 or -inf");
|
|
562
|
+
return {defined(log(found.value))};
|
|
563
|
+
}
|
|
564
|
+
if (is_a_sub<OneArgFunction>(*e)) {
|
|
565
|
+
const Found found = limitFound(e->get_args()[0]);
|
|
566
|
+
if (found.value.is_null()) throw notFound("of a function of an oscillation");
|
|
567
|
+
const int infinity = infinitySign(found.value);
|
|
568
|
+
if (infinity == 0) return {defined(down_cast<const OneArgFunction &>(*e).create(found.value))};
|
|
569
|
+
//The functions at inf and -inf
|
|
570
|
+
if (is_a<Sin>(*e) || is_a<Cos>(*e)) return {Expr(), true};
|
|
571
|
+
if (is_a<ATan>(*e)) return {infinity > 0 ? div(pi, integer(2)) : neg(div(pi, integer(2)))};
|
|
572
|
+
if (is_a<ACot>(*e)) return {zero};
|
|
573
|
+
if (is_a<Erf>(*e)) return {integer(infinity)};
|
|
574
|
+
if (is_a<Erfc>(*e)) return {infinity > 0 ? zero : integer(2)};
|
|
575
|
+
if ((is_a<Gamma>(*e) || is_a<LogGamma>(*e) || is_a<LambertW>(*e)) && infinity > 0) return {Inf};
|
|
576
|
+
if (is_a<Floor>(*e) || is_a<Ceiling>(*e) || is_a<Truncate>(*e)) return {found.value};
|
|
577
|
+
throw notFound("the limit of " + nameOf(e) + " at infinity is not known");
|
|
578
|
+
}
|
|
579
|
+
//The special functions of integrals: at a value, at inf and -inf (Si(inf) is pi/2)
|
|
580
|
+
if (const auto *special = dynamic_cast<const SpecialIntegral *>(e.get())) {
|
|
581
|
+
const Found found = limitFound(e->get_args()[0]);
|
|
582
|
+
if (found.value.is_null()) throw notFound("of a function of an oscillation");
|
|
583
|
+
const int infinity = infinitySign(found.value);
|
|
584
|
+
if (infinity == 0) return {defined(special->create({found.value}))};
|
|
585
|
+
const Expr value = specialIntegralAtInfinity(special->kind(), infinity);
|
|
586
|
+
if (value.is_null()) throw notFound("the limit of " + nameOf(e) + " at -inf is not real");
|
|
587
|
+
return {value};
|
|
588
|
+
}
|
|
589
|
+
//zeta(s) for s going to inf
|
|
590
|
+
if (is_a<Zeta>(*e) && !has(e->get_args()[1], x_) && eq(*e->get_args()[1], *one)) {
|
|
591
|
+
const Found found = limitFound(e->get_args()[0]);
|
|
592
|
+
if (!found.value.is_null() && infinitySign(found.value) > 0) return {one};
|
|
593
|
+
if (!found.value.is_null() && infinitySign(found.value) == 0) return {defined(zeta(found.value, one))};
|
|
594
|
+
}
|
|
595
|
+
throw notFound(is_a_sub<Function>(*e) ? "the limit of " + nameOf(e) + " is not known" : "the limit of a part is not known");
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
//A value that is not undefined
|
|
599
|
+
static Expr defined(const Expr &value)
|
|
600
|
+
{
|
|
601
|
+
if (undefinedIn(value)) throw notFound("of an undefined value");
|
|
602
|
+
return value;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
//1 for inf, -1 for -inf, 0 for a finite value
|
|
606
|
+
static int infinitySign(const Expr &value)
|
|
607
|
+
{
|
|
608
|
+
if (!is_a<Infty>(*value)) {
|
|
609
|
+
if (undefinedIn(value)) throw notFound("of an undefined value");
|
|
610
|
+
return 0;
|
|
611
|
+
}
|
|
612
|
+
const Infty &infinity = down_cast<const Infty &>(*value);
|
|
613
|
+
if (infinity.is_positive_infinity()) return 1;
|
|
614
|
+
if (infinity.is_negative_infinity()) return -1;
|
|
615
|
+
throw notFound("of complex infinity");
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
//The sum of limits: inf - inf is not decided
|
|
619
|
+
static Expr sumOfLimits(const std::vector<Expr> &values)
|
|
620
|
+
{
|
|
621
|
+
Expr sum = zero;
|
|
622
|
+
int infinity = 0;
|
|
623
|
+
for (const Expr &value : values) {
|
|
624
|
+
const int s = infinitySign(value);
|
|
625
|
+
if (s == 0) sum = add(sum, value);
|
|
626
|
+
else if (infinity == -s) throw notFound("of inf - inf");
|
|
627
|
+
else infinity = s;
|
|
628
|
+
}
|
|
629
|
+
if (infinity != 0) return infinity > 0 ? Expr(Inf) : Expr(NegInf);
|
|
630
|
+
return sum;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
//The product of limits: 0 inf is not decided, an infinity times a value of a known sign
|
|
634
|
+
static Expr productOfLimits(const std::vector<Expr> &values)
|
|
635
|
+
{
|
|
636
|
+
Expr product = one;
|
|
637
|
+
int infinity = 0;
|
|
638
|
+
for (const Expr &value : values) {
|
|
639
|
+
const int s = infinitySign(value);
|
|
640
|
+
if (s == 0) product = mul(product, value);
|
|
641
|
+
else infinity = infinity == 0 ? s : infinity * s;
|
|
642
|
+
}
|
|
643
|
+
if (infinity == 0) return product;
|
|
644
|
+
const int s = compareOf(product, zero);
|
|
645
|
+
if (s == 0) throw notFound("of 0 inf");
|
|
646
|
+
if (s != 1 && s != -1) throw signUnknown(product);
|
|
647
|
+
return infinity * s > 0 ? Expr(Inf) : Expr(NegInf);
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
//Whether a condition of x holds for x large enough
|
|
651
|
+
bool eventually(const RCP<const Boolean> &condition)
|
|
652
|
+
{
|
|
653
|
+
if (is_a<BooleanAtom>(*condition)) return down_cast<const BooleanAtom &>(*condition).get_val();
|
|
654
|
+
if (is_a<And>(*condition) || is_a<Or>(*condition)) {
|
|
655
|
+
const bool all = is_a<And>(*condition);
|
|
656
|
+
const set_boolean &parts = all ? down_cast<const And &>(*condition).get_container() : down_cast<const Or &>(*condition).get_container();
|
|
657
|
+
for (const auto &part : parts) {
|
|
658
|
+
if (eventually(part) != all) return !all;
|
|
659
|
+
}
|
|
660
|
+
return all;
|
|
661
|
+
}
|
|
662
|
+
if (is_a<Not>(*condition)) return !eventually(down_cast<const Not &>(*condition).get_arg());
|
|
663
|
+
if (is_a_Relational(*condition)) {
|
|
664
|
+
const Relational &relation = down_cast<const Relational &>(*condition);
|
|
665
|
+
const int s = sign(tractable(sub(relation.get_arg1(), relation.get_arg2())));
|
|
666
|
+
if (is_a<Equality>(*condition)) return s == 0;
|
|
667
|
+
if (is_a<Unequality>(*condition)) return s != 0;
|
|
668
|
+
if (is_a<LessThan>(*condition)) return s <= 0;
|
|
669
|
+
if (is_a<StrictLessThan>(*condition)) return s < 0;
|
|
670
|
+
}
|
|
671
|
+
throw notFound(internal(condition) ? "a condition is not decided" : "the condition " + toText(condition) + " is not decided");
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
//The functions written as those the algorithm takes, for x large enough: abs(u), sign(u), max and min by signs, floor(u)
|
|
675
|
+
//of u going to a value by its side, piecewise by the conditions that hold, the hyperbolic functions and their inverses
|
|
676
|
+
//by exp and log, sinc(u) as sin(u)/u, root(u, n) as a power (with laws: of the limits of the parts, those that are
|
|
677
|
+
//not eventually constant left as they are)
|
|
678
|
+
Expr tractable(const Expr &e, bool strict = true)
|
|
679
|
+
{
|
|
680
|
+
if (!has(e, x_)) return e;
|
|
681
|
+
if (is_a<Abs>(*e)) {
|
|
682
|
+
const Expr u = tractable(down_cast<const Abs &>(*e).get_arg(), strict);
|
|
683
|
+
return sign(u) >= 0 ? u : neg(u);
|
|
684
|
+
}
|
|
685
|
+
if (is_a<Sign>(*e)) return integer(sign(tractable(down_cast<const Sign &>(*e).get_arg(), strict)));
|
|
686
|
+
if (is_a<Max>(*e) || is_a<Min>(*e)) {
|
|
687
|
+
const bool largest = is_a<Max>(*e);
|
|
688
|
+
Expr chosen;
|
|
689
|
+
for (const Expr &argument : e->get_args()) {
|
|
690
|
+
const Expr u = tractable(argument, strict);
|
|
691
|
+
if (chosen.is_null() || sign(sub(u, chosen)) == (largest ? 1 : -1)) chosen = u;
|
|
692
|
+
}
|
|
693
|
+
return chosen;
|
|
694
|
+
}
|
|
695
|
+
if (is_a<Piecewise>(*e)) {
|
|
696
|
+
for (const auto &[value, condition] : down_cast<const Piecewise &>(*e).get_vec()) {
|
|
697
|
+
if (eventually(condition)) return tractable(value, strict);
|
|
698
|
+
}
|
|
699
|
+
return Nan;
|
|
700
|
+
}
|
|
701
|
+
if (is_a<Floor>(*e) || is_a<Ceiling>(*e) || is_a<Truncate>(*e)) {
|
|
702
|
+
const Expr u = tractable(e->get_args()[0], strict);
|
|
703
|
+
const Expr v = limitInf(u);
|
|
704
|
+
if (infinitySign(v) != 0) {
|
|
705
|
+
if (strict) throw notFound("of " + nameOf(e) + " going to infinity");
|
|
706
|
+
return down_cast<const OneArgFunction &>(*e).create(u);
|
|
707
|
+
}
|
|
708
|
+
//Constant for x large enough: of a value that is not an integer, of an integer from one side
|
|
709
|
+
const Expr atValue = down_cast<const OneArgFunction &>(*e).create(v);
|
|
710
|
+
if (!is_a<Integer>(*v)) {
|
|
711
|
+
if (!is_a_Number(*atValue)) throw notFound("of " + nameOf(e) + " near a value that is not decided");
|
|
712
|
+
return atValue;
|
|
713
|
+
}
|
|
714
|
+
const int side = sign(sub(u, v));
|
|
715
|
+
if (side == 0) return v;
|
|
716
|
+
if (is_a<Floor>(*e)) return side > 0 ? v : sub(v, one);
|
|
717
|
+
if (is_a<Ceiling>(*e)) return side > 0 ? add(v, one) : v;
|
|
718
|
+
if (eq(*v, *zero)) return zero;
|
|
719
|
+
return v;
|
|
720
|
+
}
|
|
721
|
+
if (is_a<Sinh>(*e) || is_a<Cosh>(*e) || is_a<Tanh>(*e) || is_a<Coth>(*e) || is_a<Sech>(*e) || is_a<Csch>(*e)) {
|
|
722
|
+
const Expr u = tractable(e->get_args()[0], strict);
|
|
723
|
+
const Expr a = exp(u), b = exp(neg(u));
|
|
724
|
+
if (is_a<Sinh>(*e)) return div(sub(a, b), integer(2));
|
|
725
|
+
if (is_a<Cosh>(*e)) return div(add(a, b), integer(2));
|
|
726
|
+
if (is_a<Tanh>(*e)) return div(sub(a, b), add(a, b));
|
|
727
|
+
if (is_a<Coth>(*e)) return div(add(a, b), sub(a, b));
|
|
728
|
+
if (is_a<Sech>(*e)) return div(integer(2), add(a, b));
|
|
729
|
+
return div(integer(2), sub(a, b));
|
|
730
|
+
}
|
|
731
|
+
if (is_a<ASinh>(*e) || is_a<ACosh>(*e) || is_a<ATanh>(*e) || is_a<ACoth>(*e) || is_a<ASech>(*e) || is_a<ACsch>(*e)) {
|
|
732
|
+
Expr u = tractable(e->get_args()[0], strict);
|
|
733
|
+
if (is_a<ACoth>(*e) || is_a<ASech>(*e) || is_a<ACsch>(*e)) u = div(one, u);
|
|
734
|
+
if (is_a<ASinh>(*e) || is_a<ACsch>(*e)) return log(add(u, sqrt(add(mul(u, u), one))));
|
|
735
|
+
if (is_a<ACosh>(*e) || is_a<ASech>(*e)) return log(add(u, sqrt(sub(mul(u, u), one))));
|
|
736
|
+
return div(sub(log(add(one, u)), log(sub(one, u))), integer(2));
|
|
737
|
+
}
|
|
738
|
+
if (is_a_sub<FunctionWrapper>(*e)) {
|
|
739
|
+
const FunctionWrapper &function = down_cast<const FunctionWrapper &>(*e);
|
|
740
|
+
const vec_basic arguments = function.get_args();
|
|
741
|
+
if (function.get_name() == "sinc") {
|
|
742
|
+
const Expr u = tractable(arguments[0], strict);
|
|
743
|
+
return div(sin(u), u);
|
|
744
|
+
}
|
|
745
|
+
if (function.get_name() == "root") {
|
|
746
|
+
const Expr u = tractable(arguments[0], strict), n = arguments[1];
|
|
747
|
+
if (sign(u) >= 0) return pow(u, div(one, n));
|
|
748
|
+
return neg(pow(neg(u), div(one, n)));
|
|
749
|
+
}
|
|
750
|
+
if (const auto *special = dynamic_cast<const SpecialIntegral *>(&function); special != nullptr && strict) {
|
|
751
|
+
return specialPolynomial(special->kind(), tractable(arguments[0], strict));
|
|
752
|
+
}
|
|
753
|
+
//(the laws of limits take the others: Si(x) at inf)
|
|
754
|
+
if (strict) throw notFound(nameOf(e) + " is not taken by the algorithm");
|
|
755
|
+
vec_basic tractableArguments;
|
|
756
|
+
for (const Expr &argument : arguments) tractableArguments.push_back(tractable(argument, strict));
|
|
757
|
+
return function.create(tractableArguments);
|
|
758
|
+
}
|
|
759
|
+
if (is_a<Derivative>(*e) || is_a<Subs>(*e)) throw notFound("an unevaluated derivative is not taken by the algorithm");
|
|
760
|
+
if (is_a<Add>(*e)) {
|
|
761
|
+
Expr sum = zero;
|
|
762
|
+
for (const Expr &term : e->get_args()) sum = add(sum, tractable(term, strict));
|
|
763
|
+
return sum;
|
|
764
|
+
}
|
|
765
|
+
if (is_a<Mul>(*e)) {
|
|
766
|
+
Expr product = one;
|
|
767
|
+
for (const Expr &factor : e->get_args()) product = mul(product, tractable(factor, strict));
|
|
768
|
+
return product;
|
|
769
|
+
}
|
|
770
|
+
if (is_a<Pow>(*e)) return powerOf(tractable(down_cast<const Pow &>(*e).get_base(), strict), tractable(down_cast<const Pow &>(*e).get_exp(), strict), positives_);
|
|
771
|
+
if (is_a_sub<Function>(*e)) {
|
|
772
|
+
vec_basic arguments;
|
|
773
|
+
for (const Expr &argument : e->get_args()) arguments.push_back(tractable(argument, strict));
|
|
774
|
+
return rebuilt(e, arguments);
|
|
775
|
+
}
|
|
776
|
+
return e;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
//"<", "=" or ">": the growth of a compared with that of b, by the limit of log(a)/log(b) (compare)
|
|
780
|
+
char compare(const Expr &a, const Expr &b)
|
|
781
|
+
{
|
|
782
|
+
const Expr la = isExp(a) ? argumentOf(a) : logOf(a, positives_);
|
|
783
|
+
const Expr lb = isExp(b) ? argumentOf(b) : logOf(b, positives_);
|
|
784
|
+
const Expr c = limitInf(div(la, lb));
|
|
785
|
+
if (is_a_Number(*c) && down_cast<const Number &>(*c).is_zero()) return '<';
|
|
786
|
+
if (isInfinite(c)) return '>';
|
|
787
|
+
return '=';
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
//The sign of e for x large enough (sign)
|
|
791
|
+
int sign(const Expr &e)
|
|
792
|
+
{
|
|
793
|
+
checkpoint();
|
|
794
|
+
if (!has(e, x_)) {
|
|
795
|
+
const int found = compareOf(e, zero);
|
|
796
|
+
if (found == 2) throw signUnknown(e);
|
|
797
|
+
return found;
|
|
798
|
+
}
|
|
799
|
+
if (eq(*e, *x_)) return 1;
|
|
800
|
+
if (is_a<Mul>(*e)) {
|
|
801
|
+
int s = sign(down_cast<const Mul &>(*e).get_coef());
|
|
802
|
+
for (const auto &[base, exponent] : down_cast<const Mul &>(*e).get_dict()) {
|
|
803
|
+
if (s == 0) return 0;
|
|
804
|
+
s *= sign(pow(base, exponent));
|
|
805
|
+
}
|
|
806
|
+
return s;
|
|
807
|
+
}
|
|
808
|
+
if (isExp(e)) return 1;
|
|
809
|
+
if (is_a<Pow>(*e)) {
|
|
810
|
+
const int s = sign(down_cast<const Pow &>(*e).get_base());
|
|
811
|
+
if (s == 1) return 1;
|
|
812
|
+
const Expr exponent = down_cast<const Pow &>(*e).get_exp();
|
|
813
|
+
if (is_a<Integer>(*exponent)) return down_cast<const Integer &>(*exponent).as_integer_class() % 2 == 0 ? (s == 0 ? 0 : 1) : s;
|
|
814
|
+
}
|
|
815
|
+
if (is_a<Log>(*e)) return sign(sub(down_cast<const Log &>(*e).get_arg(), one));
|
|
816
|
+
const auto [c0, e0] = mrvLeadterm(e);
|
|
817
|
+
return sign(c0);
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
//The faster of two sets, or both (mrv_max3, mrv_max1)
|
|
821
|
+
std::pair<SubsSet, Expr> mrvMax3(const SubsSet &f, const Expr &expsf, const SubsSet &g, const Expr &expsg, const SubsSet &both, const Expr &expsboth)
|
|
822
|
+
{
|
|
823
|
+
if (f.items.empty()) return {g, expsg};
|
|
824
|
+
if (g.items.empty()) return {f, expsf};
|
|
825
|
+
if (f.meets(g)) return {both, expsboth};
|
|
826
|
+
const char c = compare(f.items.front().first, g.items.front().first);
|
|
827
|
+
if (c == '>') return {f, expsf};
|
|
828
|
+
if (c == '<') return {g, expsg};
|
|
829
|
+
return {both, expsboth};
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
std::pair<SubsSet, Expr> mrvMax1(const SubsSet &f, const SubsSet &g, const Expr &exps)
|
|
833
|
+
{
|
|
834
|
+
const auto [both, expsboth] = f.unite(g, exps);
|
|
835
|
+
return mrvMax3(f, g.expressed(exps), g, f.expressed(exps), both, expsboth);
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
//The most rapidly varying subexpressions of e, and e written with their variables (mrv)
|
|
839
|
+
std::pair<SubsSet, Expr> mrv(const Expr &e)
|
|
840
|
+
{
|
|
841
|
+
checkpoint();
|
|
842
|
+
if (!has(e, x_)) return {SubsSet(), e};
|
|
843
|
+
if (eq(*e, *x_)) {
|
|
844
|
+
SubsSet s;
|
|
845
|
+
const Variable v = s.at(x_);
|
|
846
|
+
return {s, v};
|
|
847
|
+
}
|
|
848
|
+
if (is_a<Add>(*e) || is_a<Mul>(*e)) {
|
|
849
|
+
const bool sum = is_a<Add>(*e);
|
|
850
|
+
Expr independent = sum ? Expr(zero) : Expr(one);
|
|
851
|
+
std::vector<Expr> dependent;
|
|
852
|
+
for (const Expr &term : e->get_args()) {
|
|
853
|
+
if (has(term, x_)) dependent.push_back(term);
|
|
854
|
+
else independent = sum ? add(independent, term) : mul(independent, term);
|
|
855
|
+
}
|
|
856
|
+
const auto join = [sum](const Expr &a, const Expr &b) { return sum ? add(a, b) : mul(a, b); };
|
|
857
|
+
if (dependent.size() == 1) {
|
|
858
|
+
const auto [s, expression] = mrv(dependent[0]);
|
|
859
|
+
return {s, join(independent, expression)};
|
|
860
|
+
}
|
|
861
|
+
Expr rest = sum ? Expr(zero) : Expr(one);
|
|
862
|
+
for (size_t i = 1; i < dependent.size(); i++) rest = join(rest, dependent[i]);
|
|
863
|
+
const auto [s1, e1] = mrv(dependent[0]);
|
|
864
|
+
const auto [s2, e2] = mrv(rest);
|
|
865
|
+
return mrvMax1(s1, s2, join(independent, join(e1, e2)));
|
|
866
|
+
}
|
|
867
|
+
if (is_a<Pow>(*e) && !isExp(e)) {
|
|
868
|
+
Expr base = e, exponent = one;
|
|
869
|
+
while (is_a<Pow>(*base) && !isExp(base)) {
|
|
870
|
+
exponent = mul(exponent, down_cast<const Pow &>(*base).get_exp());
|
|
871
|
+
base = down_cast<const Pow &>(*base).get_base();
|
|
872
|
+
}
|
|
873
|
+
if (eq(*base, *one)) return {SubsSet(), one};
|
|
874
|
+
if (has(exponent, x_)) return mrv(powerOf(E, mul(exponent, logOf(base, positives_)), positives_));
|
|
875
|
+
const auto [s, expression] = mrv(base);
|
|
876
|
+
return {s, pow(expression, exponent)};
|
|
877
|
+
}
|
|
878
|
+
if (is_a<Log>(*e)) {
|
|
879
|
+
const auto [s, expression] = mrv(down_cast<const Log &>(*e).get_arg());
|
|
880
|
+
return {s, log(expression)};
|
|
881
|
+
}
|
|
882
|
+
if (isExp(e)) {
|
|
883
|
+
const Expr argument = argumentOf(e);
|
|
884
|
+
if (is_a<Log>(*argument)) return mrv(down_cast<const Log &>(*argument).get_arg());
|
|
885
|
+
if (isInfinite(limitInf(argument))) {
|
|
886
|
+
SubsSet s1;
|
|
887
|
+
const Variable e1 = s1.at(e);
|
|
888
|
+
const auto [s2, e2] = mrv(argument);
|
|
889
|
+
SubsSet both = s1.unite(s2, zero).first;
|
|
890
|
+
both.rewrites[e1] = pow(E, e2);
|
|
891
|
+
return mrvMax3(s1, e1, s2, pow(E, e2), both, e1);
|
|
892
|
+
}
|
|
893
|
+
const auto [s, expression] = mrv(argument);
|
|
894
|
+
return {s, pow(E, expression)};
|
|
895
|
+
}
|
|
896
|
+
if (is_a_sub<Function>(*e)) {
|
|
897
|
+
const vec_basic arguments = e->get_args();
|
|
898
|
+
std::vector<std::pair<SubsSet, Expr>> found;
|
|
899
|
+
for (const Expr &argument : arguments) found.push_back(mrv(argument));
|
|
900
|
+
const SubsSet *set = nullptr;
|
|
901
|
+
for (const auto &[s, expression] : found) {
|
|
902
|
+
if (s.items.empty()) continue;
|
|
903
|
+
if (set) throw notFound("of " + nameOf(e) + " with the variable in several arguments");
|
|
904
|
+
set = &s;
|
|
905
|
+
}
|
|
906
|
+
vec_basic rewritten;
|
|
907
|
+
for (const auto &[s, expression] : found) rewritten.push_back(expression);
|
|
908
|
+
return {set ? *set : SubsSet(), rebuilt(e, rewritten)};
|
|
909
|
+
}
|
|
910
|
+
throw notFound("the growth of " + nameOf(e) + " is not known");
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
//The set moved up one level: x as exp(x) (moveup)
|
|
914
|
+
void moveUp(SubsSet &s, Expr &exps)
|
|
915
|
+
{
|
|
916
|
+
const Expr up = pow(E, x_);
|
|
917
|
+
for (auto &[expression, variable] : s.items) expression = positiveForm(replaced(expression, x_, up), positives_);
|
|
918
|
+
for (auto &[variable, rewrite] : s.rewrites) rewrite = positiveForm(replaced(rewrite, x_, up), positives_);
|
|
919
|
+
exps = positiveForm(replaced(exps, x_, up), positives_);
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
//(c0, e0): the leading term c0 w^e0 of e, w going to 0 (mrv_leadterm)
|
|
923
|
+
std::pair<Expr, Expr> mrvLeadterm(const Expr &e)
|
|
924
|
+
{
|
|
925
|
+
if (!has(e, x_)) return {e, zero};
|
|
926
|
+
auto [omega, exps] = mrv(e);
|
|
927
|
+
if (omega.items.empty()) return {exps, zero};
|
|
928
|
+
if (omega.contains(x_)) moveUp(omega, exps);
|
|
929
|
+
const Variable w = fresh("w");
|
|
930
|
+
const auto [f, logw] = rewrite(exps, omega, w);
|
|
931
|
+
const Variable L = fresh("L");
|
|
932
|
+
const auto [c0, e0] = leadterm(f, w, L);
|
|
933
|
+
return {substituted(c0, L, logw), e0};
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
//e written with w: each subexpression exp(a) of the set as exp(a - c b) w^c, exp(b) the simplest one, w = exp(-b) or
|
|
937
|
+
//1/w as b goes to inf (rewrite); log(w) as an expression of x
|
|
938
|
+
std::pair<Expr, Expr> rewrite(const Expr &e, const SubsSet &omega, const Variable &w)
|
|
939
|
+
{
|
|
940
|
+
for (const auto &[expression, variable] : omega.items) {
|
|
941
|
+
if (!isExp(expression)) throw notFound("its most rapidly varying parts are not exponentials");
|
|
942
|
+
}
|
|
943
|
+
//By the heights of the rewritings: an expression before those it is written with
|
|
944
|
+
std::map<const Basic *, long> heights;
|
|
945
|
+
std::function<long(const Variable &)> height = [&](const Variable &variable) -> long {
|
|
946
|
+
long total = 1;
|
|
947
|
+
const auto rewrite = omega.rewrites.find(variable);
|
|
948
|
+
if (rewrite != omega.rewrites.end()) {
|
|
949
|
+
for (const auto &[expression, other] : omega.items) {
|
|
950
|
+
if (!eq(*other, *variable) && has(rewrite->second, other)) total += height(other);
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
return total;
|
|
954
|
+
};
|
|
955
|
+
std::vector<std::pair<Expr, Variable>> items = omega.items;
|
|
956
|
+
std::stable_sort(items.begin(), items.end(), [&height](const auto &a, const auto &b) { return height(a.second) > height(b.second); });
|
|
957
|
+
int s = 0;
|
|
958
|
+
for (const auto &[expression, variable] : items) {
|
|
959
|
+
s = sign(argumentOf(expression));
|
|
960
|
+
if (s != 1 && s != -1) throw signUnknown(argumentOf(expression));
|
|
961
|
+
}
|
|
962
|
+
const Expr g = argumentOf(items.back().first);
|
|
963
|
+
const Expr ws = s == 1 ? div(one, w) : Expr(w);
|
|
964
|
+
integer_class denominators(1);
|
|
965
|
+
std::vector<std::pair<Variable, Expr>> replacements;
|
|
966
|
+
for (const auto &[expression, variable] : items) {
|
|
967
|
+
const Expr c = limitInf(div(argumentOf(expression), g));
|
|
968
|
+
if (infinitySign(c) != 0 || eq(*c, *zero) || has(c, x_)) throw notFound("the growth of its most rapidly varying parts is not compared");
|
|
969
|
+
if (is_a<Rational>(*c)) {
|
|
970
|
+
integer_class next;
|
|
971
|
+
mp_lcm(next, denominators, get_den(down_cast<const Rational &>(*c).as_rational_class()));
|
|
972
|
+
denominators = next;
|
|
973
|
+
}
|
|
974
|
+
Expr a = argumentOf(expression);
|
|
975
|
+
const auto rewrite = omega.rewrites.find(variable);
|
|
976
|
+
if (rewrite != omega.rewrites.end()) a = argumentOf(rewrite->second);
|
|
977
|
+
replacements.emplace_back(variable, mul(pow(E, expand(sub(a, mul(c, g)))), pow(ws, c)));
|
|
978
|
+
}
|
|
979
|
+
Expr f = e;
|
|
980
|
+
for (const auto &[variable, value] : replacements) f = replaced(f, variable, value);
|
|
981
|
+
for (const auto &[expression, variable] : items) {
|
|
982
|
+
if (has(f, variable)) throw notFound("its most rapidly varying parts are not all rewritten");
|
|
983
|
+
}
|
|
984
|
+
Expr logw = s == 1 ? neg(g) : g;
|
|
985
|
+
//w to the lcm of the denominators of the powers
|
|
986
|
+
if (denominators != 1) {
|
|
987
|
+
const Expr q = integer(denominators);
|
|
988
|
+
f = substituted(f, w, pow(w, q));
|
|
989
|
+
logw = div(logw, q);
|
|
990
|
+
}
|
|
991
|
+
return {positiveForm(f, {x_, w}), logw};
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
//The leading term c0 w^e0 of f, w going to 0, log(w) as the symbol L: the logarithms and the powers that are not
|
|
995
|
+
//integers of the functions of w written with their leading terms, w as v^q where its powers are fractions, then the
|
|
996
|
+
//series in v at increasing orders
|
|
997
|
+
std::pair<Expr, Expr> leadterm(const Expr &given, const Variable &w, const Variable &L)
|
|
998
|
+
{
|
|
999
|
+
checkpoint();
|
|
1000
|
+
if (++depth_ > LIMIT_DEPTH) {
|
|
1001
|
+
depth_--;
|
|
1002
|
+
throw notFound("its computation is nested too deep");
|
|
1003
|
+
}
|
|
1004
|
+
struct Leave {
|
|
1005
|
+
unsigned &depth;
|
|
1006
|
+
~Leave() { depth--; }
|
|
1007
|
+
} leave{depth_};
|
|
1008
|
+
Expr f = substituted(positiveForm(given, {x_, w}), log(w), L);
|
|
1009
|
+
f = separated(f, w, L);
|
|
1010
|
+
if (!has(f, w)) return {f, zero};
|
|
1011
|
+
//Powers of w that are not rational (rates of exponentials such as 2^x and 3^x): the leading terms of the parts
|
|
1012
|
+
if (irrationalPowers(f, w)) {
|
|
1013
|
+
const auto found = structuralLead(f, w, L);
|
|
1014
|
+
if (!found) throw notFound("of terms with powers that are not rational cancelling");
|
|
1015
|
+
return *found;
|
|
1016
|
+
}
|
|
1017
|
+
//The powers of w: their denominators
|
|
1018
|
+
integer_class q(1);
|
|
1019
|
+
powersOf(f, w, q);
|
|
1020
|
+
Variable v = w;
|
|
1021
|
+
if (q != 1) {
|
|
1022
|
+
v = fresh("v");
|
|
1023
|
+
f = positiveForm(substituted(f, w, pow(v, integer(q))), {x_, v});
|
|
1024
|
+
}
|
|
1025
|
+
//SymEngine's series knows its variable by its name: a symbol of a name no other has
|
|
1026
|
+
static std::atomic<size_t> count{0};
|
|
1027
|
+
const Variable s = symbol("@series" + std::to_string(++count));
|
|
1028
|
+
f = replaced(f, v, s);
|
|
1029
|
+
for (long order = 1; order <= 64; order *= 2) {
|
|
1030
|
+
std::map<long, Expr> terms;
|
|
1031
|
+
try {
|
|
1032
|
+
terms = seriesTermsOf(f, s, order);
|
|
1033
|
+
} catch (SymEngineException &) {
|
|
1034
|
+
throw notFound("a series is not computed");
|
|
1035
|
+
} catch (const MathError &error) {
|
|
1036
|
+
if (error.code() == ErrorCode::Cancelled || error.code() == ErrorCode::Timeout) throw;
|
|
1037
|
+
throw notFound("a series is not computed");
|
|
1038
|
+
}
|
|
1039
|
+
for (const auto &[power, coefficient] : terms) {
|
|
1040
|
+
if (zeroCoefficient(coefficient)) continue;
|
|
1041
|
+
return {coefficient, Rational::from_mpq(rational_class(integer_class(power), q))};
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
throw notFound("a leading term is not found");
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
//Whether a coefficient is 0: expanded, or as a fraction cancelled
|
|
1048
|
+
static bool zeroCoefficient(const Expr &c)
|
|
1049
|
+
{
|
|
1050
|
+
if (eq(*expand(c), *zero)) return true;
|
|
1051
|
+
try {
|
|
1052
|
+
return eq(*cancelOf(c), *zero);
|
|
1053
|
+
} catch (const MathError &) {
|
|
1054
|
+
return false;
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
//Whether e has a power of w whose exponent is not a rational number
|
|
1059
|
+
static bool irrationalPowers(const Expr &e, const Variable &w)
|
|
1060
|
+
{
|
|
1061
|
+
if (is_a<Pow>(*e) && eq(*down_cast<const Pow &>(*e).get_base(), *w) && !is_a_Number(*down_cast<const Pow &>(*e).get_exp())) return true;
|
|
1062
|
+
if (is_a<Mul>(*e)) {
|
|
1063
|
+
for (const auto &[base, exponent] : down_cast<const Mul &>(*e).get_dict()) {
|
|
1064
|
+
if (eq(*base, *w) && !is_a_Number(*exponent)) return true;
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
for (const Expr &argument : e->get_args()) {
|
|
1068
|
+
if (irrationalPowers(argument, w)) return true;
|
|
1069
|
+
}
|
|
1070
|
+
return false;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
//The leading term of f from those of its parts: of a sum, the terms of the lowest power (nothing where they cancel),
|
|
1074
|
+
//of a product, of a power, of a function of a part going to a value where it is not 0
|
|
1075
|
+
std::optional<std::pair<Expr, Expr>> structuralLead(const Expr &f, const Variable &w, const Variable &L)
|
|
1076
|
+
{
|
|
1077
|
+
checkpoint();
|
|
1078
|
+
if (!has(f, w)) return std::make_pair(f, Expr(zero));
|
|
1079
|
+
if (eq(*f, *w)) return std::make_pair(Expr(one), Expr(one));
|
|
1080
|
+
if (is_a<Mul>(*f)) {
|
|
1081
|
+
Expr c = one, k = zero;
|
|
1082
|
+
for (const Expr &factor : f->get_args()) {
|
|
1083
|
+
const auto found = structuralLead(factor, w, L);
|
|
1084
|
+
if (!found) return std::nullopt;
|
|
1085
|
+
c = mul(c, found->first);
|
|
1086
|
+
k = add(k, found->second);
|
|
1087
|
+
}
|
|
1088
|
+
return std::make_pair(c, k);
|
|
1089
|
+
}
|
|
1090
|
+
if (is_a<Add>(*f)) {
|
|
1091
|
+
std::vector<std::pair<Expr, Expr>> terms;
|
|
1092
|
+
for (const Expr &term : f->get_args()) {
|
|
1093
|
+
const auto found = structuralLead(term, w, L);
|
|
1094
|
+
if (!found) return std::nullopt;
|
|
1095
|
+
terms.push_back(*found);
|
|
1096
|
+
}
|
|
1097
|
+
Expr lowest = terms.front().second;
|
|
1098
|
+
for (const auto &[c, k] : terms) {
|
|
1099
|
+
const int order = compareOf(k, lowest);
|
|
1100
|
+
if (order != 0 && order != 1 && order != -1) return std::nullopt;
|
|
1101
|
+
if (order == -1) lowest = k;
|
|
1102
|
+
}
|
|
1103
|
+
Expr c = zero;
|
|
1104
|
+
for (const auto &[coefficient, k] : terms) {
|
|
1105
|
+
if (compareOf(k, lowest) == 0) c = add(c, coefficient);
|
|
1106
|
+
}
|
|
1107
|
+
if (zeroCoefficient(c)) return std::nullopt;
|
|
1108
|
+
return std::make_pair(c, lowest);
|
|
1109
|
+
}
|
|
1110
|
+
if (isExp(f)) {
|
|
1111
|
+
const auto found = structuralLead(argumentOf(f), w, L);
|
|
1112
|
+
if (!found) return std::nullopt;
|
|
1113
|
+
const int order = compareOf(found->second, zero);
|
|
1114
|
+
if (order == 1) return std::make_pair(Expr(one), Expr(zero));
|
|
1115
|
+
if (order != 0) return std::nullopt;
|
|
1116
|
+
//e^(a L + r) = w^a e^r for a number a; for a of x, a coefficient (as in the series, L later log(w) of x)
|
|
1117
|
+
const Expr c = expand(found->first);
|
|
1118
|
+
const Expr a = expand(SymEngine::diff(c, L, true));
|
|
1119
|
+
if (is_a_Number(*a)) return std::make_pair(Expr(exp(expand(sub(c, mul(a, L))))), a);
|
|
1120
|
+
return std::make_pair(Expr(exp(c)), Expr(zero));
|
|
1121
|
+
}
|
|
1122
|
+
if (is_a<Pow>(*f)) {
|
|
1123
|
+
const Expr exponent = down_cast<const Pow &>(*f).get_exp();
|
|
1124
|
+
if (has(exponent, w)) return std::nullopt;
|
|
1125
|
+
const auto found = structuralLead(down_cast<const Pow &>(*f).get_base(), w, L);
|
|
1126
|
+
if (!found) return std::nullopt;
|
|
1127
|
+
if (!is_a<Integer>(*exponent) && !positive(found->first, {x_}) && compareOf(found->first, zero) != 1) return std::nullopt;
|
|
1128
|
+
return std::make_pair(pow(found->first, exponent), mul(found->second, exponent));
|
|
1129
|
+
}
|
|
1130
|
+
if (is_a<Log>(*f)) {
|
|
1131
|
+
const Expr a = down_cast<const Log &>(*f).get_arg();
|
|
1132
|
+
const auto found = structuralLead(a, w, L);
|
|
1133
|
+
if (!found || has(found->first, L)) return std::nullopt;
|
|
1134
|
+
//log(a) of a going to 1: as a - 1
|
|
1135
|
+
if (eq(*found->first, *one) && eq(*found->second, *zero)) return structuralLead(expand(sub(a, one)), w, L);
|
|
1136
|
+
const Expr value = add(log(found->first), mul(found->second, L));
|
|
1137
|
+
if (zeroCoefficient(value)) return std::nullopt;
|
|
1138
|
+
return std::make_pair(value, Expr(zero));
|
|
1139
|
+
}
|
|
1140
|
+
if (is_a_sub<OneArgFunction>(*f)) {
|
|
1141
|
+
const auto found = structuralLead(f->get_args()[0], w, L);
|
|
1142
|
+
if (!found || has(found->first, L)) return std::nullopt;
|
|
1143
|
+
const int order = compareOf(found->second, zero);
|
|
1144
|
+
if (order != 0 && order != 1) return std::nullopt;
|
|
1145
|
+
const Expr value = down_cast<const OneArgFunction &>(*f).create(order == 1 ? Expr(zero) : found->first);
|
|
1146
|
+
if (undefinedIn(value)) return std::nullopt;
|
|
1147
|
+
//Of a function that is 0 at 0, of an argument going to 0: its derivative at 0 times the argument
|
|
1148
|
+
if (order == 1 && eq(*value, *zero)) {
|
|
1149
|
+
Expr slope;
|
|
1150
|
+
if (is_a<Sin>(*f) || is_a<Tan>(*f) || is_a<ASin>(*f) || is_a<ATan>(*f)) slope = one;
|
|
1151
|
+
if (is_a<Erf>(*f)) slope = div(integer(2), sqrt(pi));
|
|
1152
|
+
if (slope.is_null()) return std::nullopt;
|
|
1153
|
+
return std::make_pair(mul(slope, found->first), found->second);
|
|
1154
|
+
}
|
|
1155
|
+
if (zeroCoefficient(value)) return std::nullopt;
|
|
1156
|
+
return std::make_pair(value, Expr(zero));
|
|
1157
|
+
}
|
|
1158
|
+
return std::nullopt;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
//The lcm of the denominators of the powers of w
|
|
1162
|
+
static void powersOf(const Expr &e, const Variable &w, integer_class &q)
|
|
1163
|
+
{
|
|
1164
|
+
if (is_a<Pow>(*e) && eq(*down_cast<const Pow &>(*e).get_base(), *w) && is_a<Rational>(*down_cast<const Pow &>(*e).get_exp())) {
|
|
1165
|
+
integer_class next;
|
|
1166
|
+
mp_lcm(next, q, get_den(down_cast<const Rational &>(*down_cast<const Pow &>(*e).get_exp()).as_rational_class()));
|
|
1167
|
+
q = next;
|
|
1168
|
+
}
|
|
1169
|
+
if (is_a<Mul>(*e)) {
|
|
1170
|
+
for (const auto &[base, exponent] : down_cast<const Mul &>(*e).get_dict()) {
|
|
1171
|
+
if (eq(*base, *w) && is_a<Rational>(*exponent)) {
|
|
1172
|
+
integer_class next;
|
|
1173
|
+
mp_lcm(next, q, get_den(down_cast<const Rational &>(*exponent).as_rational_class()));
|
|
1174
|
+
q = next;
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
for (const Expr &argument : e->get_args()) powersOf(argument, w, q);
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
//log(A) and A^p (p not an integer) of a function A of w that is not a power of w: with the leading term c w^k of A,
|
|
1182
|
+
//log c + k L + log(A/(c w^k)) and c^p w^(k p) (A/(c w^k))^p, of a positive c
|
|
1183
|
+
Expr separated(const Expr &e, const Variable &w, const Variable &L)
|
|
1184
|
+
{
|
|
1185
|
+
if (!has(e, w)) return e;
|
|
1186
|
+
if (is_a<Log>(*e)) {
|
|
1187
|
+
const Expr a = separated(down_cast<const Log &>(*e).get_arg(), w, L);
|
|
1188
|
+
const auto [c, k] = leadterm(a, w, L);
|
|
1189
|
+
if (has(c, L)) throw notFound("of a logarithm of a logarithm going to 0");
|
|
1190
|
+
if (!positive(c, {x_}) && compareOf(c, zero) != 1) throw notFound("of a logarithm of a value that is not decided positive");
|
|
1191
|
+
const Expr rest = expand(div(a, mul(c, pow(w, k))));
|
|
1192
|
+
return add(add(log(c), mul(k, L)), log(rest));
|
|
1193
|
+
}
|
|
1194
|
+
if (is_a<Pow>(*e) && !isExp(e)) {
|
|
1195
|
+
const Expr base = separated(down_cast<const Pow &>(*e).get_base(), w, L);
|
|
1196
|
+
const Expr exponent = separated(down_cast<const Pow &>(*e).get_exp(), w, L);
|
|
1197
|
+
if (eq(*base, *w) || is_a<Integer>(*exponent) || has(exponent, w)) return pow(base, exponent);
|
|
1198
|
+
const auto [c, k] = leadterm(base, w, L);
|
|
1199
|
+
if (!positive(c, {x_}) && compareOf(c, zero) != 1) throw notFound("of a power of a value that is not decided positive");
|
|
1200
|
+
const Expr rest = expand(div(base, mul(c, pow(w, k))));
|
|
1201
|
+
return mul(mul(pow(c, exponent), pow(w, mul(k, exponent))), pow(rest, exponent));
|
|
1202
|
+
}
|
|
1203
|
+
if (is_a<Add>(*e)) {
|
|
1204
|
+
Expr sum = zero;
|
|
1205
|
+
for (const Expr &term : e->get_args()) sum = add(sum, separated(term, w, L));
|
|
1206
|
+
return sum;
|
|
1207
|
+
}
|
|
1208
|
+
if (is_a<Mul>(*e)) {
|
|
1209
|
+
Expr product = one;
|
|
1210
|
+
for (const Expr &factor : e->get_args()) product = mul(product, separated(factor, w, L));
|
|
1211
|
+
return product;
|
|
1212
|
+
}
|
|
1213
|
+
//A function of an argument going to infinity (sin(1/w) for sin(x) at inf): no series, and maybe no limit
|
|
1214
|
+
const auto bounded = [&](const Expr &argument) {
|
|
1215
|
+
if (!has(argument, w)) return;
|
|
1216
|
+
const auto [c, k] = leadterm(argument, w, L);
|
|
1217
|
+
if (is_a_Number(*k) && down_cast<const Number &>(*k).is_negative()) {
|
|
1218
|
+
throw notFound("of a function of an argument going to infinity");
|
|
1219
|
+
}
|
|
1220
|
+
};
|
|
1221
|
+
if (isExp(e)) {
|
|
1222
|
+
const Expr argument = separated(argumentOf(e), w, L);
|
|
1223
|
+
bounded(argument);
|
|
1224
|
+
return pow(E, argument);
|
|
1225
|
+
}
|
|
1226
|
+
//atan(u) = ±pi/2 - atan(1/u) for u going to ±inf, acot(u) = atan(1/u)
|
|
1227
|
+
if (is_a<ACot>(*e)) return separated(atan(div(one, down_cast<const ACot &>(*e).get_arg())), w, L);
|
|
1228
|
+
if (is_a<ATan>(*e)) {
|
|
1229
|
+
const Expr u = separated(down_cast<const ATan &>(*e).get_arg(), w, L);
|
|
1230
|
+
const auto [c, k] = leadterm(u, w, L);
|
|
1231
|
+
if (is_a_Number(*k) && down_cast<const Number &>(*k).is_negative()) {
|
|
1232
|
+
const int s = sign(c);
|
|
1233
|
+
if (s != 1 && s != -1) throw signUnknown(c);
|
|
1234
|
+
return sub(mul(integer(s), div(pi, integer(2))), separated(atan(div(one, u)), w, L));
|
|
1235
|
+
}
|
|
1236
|
+
return atan(u);
|
|
1237
|
+
}
|
|
1238
|
+
if (is_a_sub<Function>(*e)) {
|
|
1239
|
+
vec_basic arguments;
|
|
1240
|
+
for (const Expr &argument : e->get_args()) {
|
|
1241
|
+
arguments.push_back(separated(argument, w, L));
|
|
1242
|
+
bounded(arguments.back());
|
|
1243
|
+
}
|
|
1244
|
+
return rebuilt(e, arguments);
|
|
1245
|
+
}
|
|
1246
|
+
return e;
|
|
1247
|
+
}
|
|
1248
|
+
};
|
|
1249
|
+
|
|
1250
|
+
//The functions whose limit at a point is not their value there: their jumps
|
|
1251
|
+
bool jumps(const Expr &e)
|
|
1252
|
+
{
|
|
1253
|
+
if (is_a<Abs>(*e) || is_a<Sign>(*e) || is_a<Floor>(*e) || is_a<Ceiling>(*e) || is_a<Truncate>(*e) || is_a<Piecewise>(*e)) return true;
|
|
1254
|
+
if (is_a_sub<FunctionWrapper>(*e)) {
|
|
1255
|
+
const std::string &name = down_cast<const FunctionWrapper &>(*e).get_name();
|
|
1256
|
+
if (name == "round" || name == "mod" || name == "sum" || name == "product") return true;
|
|
1257
|
+
}
|
|
1258
|
+
for (const Expr &argument : e->get_args()) {
|
|
1259
|
+
if (jumps(argument)) return true;
|
|
1260
|
+
}
|
|
1261
|
+
return false;
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
//The limit from one side of a finite point, or at inf or -inf, or its oscillation (gruntz)
|
|
1265
|
+
Found oneSided(const Expr &e, const Variable &x, const Expr &point, bool above)
|
|
1266
|
+
{
|
|
1267
|
+
const bool infinite = is_a<Infty>(*point);
|
|
1268
|
+
//Continuous there: the value
|
|
1269
|
+
if (!infinite && !jumps(e)) {
|
|
1270
|
+
try {
|
|
1271
|
+
const Expr value = evaluatedOf(substituted(e, x, point));
|
|
1272
|
+
//(a constant computed: atanh(1) is left as it is)
|
|
1273
|
+
bool finite = !undefinedIn(value);
|
|
1274
|
+
if (finite && free_symbols(*value).empty()) {
|
|
1275
|
+
const std::complex<double> number = toComplex(value);
|
|
1276
|
+
finite = std::isfinite(number.real()) && std::isfinite(number.imag());
|
|
1277
|
+
}
|
|
1278
|
+
if (finite) return {value};
|
|
1279
|
+
} catch (SymEngineException &) {
|
|
1280
|
+
} catch (const MathError &error) {
|
|
1281
|
+
if (error.code() == ErrorCode::Cancelled || error.code() == ErrorCode::Timeout) throw;
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
const Variable z = fresh("z");
|
|
1285
|
+
Expr atInf;
|
|
1286
|
+
if (infinite) {
|
|
1287
|
+
atInf = down_cast<const Infty &>(*point).is_positive_infinity() ? substituted(e, x, z) : substituted(e, x, neg(z));
|
|
1288
|
+
} else {
|
|
1289
|
+
atInf = substituted(e, x, above ? add(point, div(one, z)) : sub(point, div(one, z)));
|
|
1290
|
+
}
|
|
1291
|
+
Found found;
|
|
1292
|
+
try {
|
|
1293
|
+
found = Gruntz(z).limitFound(atInf);
|
|
1294
|
+
} catch (SymEngineException &error) {
|
|
1295
|
+
throw notFound(error.what());
|
|
1296
|
+
}
|
|
1297
|
+
if (found.value.is_null()) return found;
|
|
1298
|
+
if (has_symbol(*found.value, *z)) throw notFound("its variable is left in the result");
|
|
1299
|
+
return found;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
Expr limitOf(const Expr &given, const std::string &name, const Expr &point, const std::string &direction)
|
|
1305
|
+
{
|
|
1306
|
+
if (!isName(name) || isBuiltin(name)) throw MathError(ErrorCode::Argument, name + " is not a variable");
|
|
1307
|
+
return limitOf(given, symbol(name), point, direction);
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
Expr limitOf(const Expr &given, const RCP<const Symbol> &x, const Expr &point, const std::string &direction)
|
|
1311
|
+
{
|
|
1312
|
+
const std::string &name = x->get_name();
|
|
1313
|
+
if (direction != "+" && direction != "-" && direction != "both") throw MathError(ErrorCode::Argument, "The direction of a limit is '+', '-' or 'both'");
|
|
1314
|
+
if (has_symbol(*point, *x)) throw MathError(ErrorCode::Argument, "The point of a limit is not of its variable");
|
|
1315
|
+
if (is_a<NaN>(*point) || (is_a<Infty>(*point) && down_cast<const Infty &>(*point).is_unsigned_infinity())) throw MathError(ErrorCode::Argument, "The point of a limit is a number, inf or -inf");
|
|
1316
|
+
const Expr e = evaluatedOf(given);
|
|
1317
|
+
if (!has_symbol(*e, *x)) return e;
|
|
1318
|
+
const auto oscillating = [&]() {
|
|
1319
|
+
return MathError(ErrorCode::Domain, toText(given) + " has no limit at " + name + " = " + toText(point) + ": it oscillates");
|
|
1320
|
+
};
|
|
1321
|
+
if (is_a<Infty>(*point) || direction != "both") {
|
|
1322
|
+
const Found found = oneSided(e, x, point, direction != "-");
|
|
1323
|
+
if (found.value.is_null()) throw oscillating();
|
|
1324
|
+
return found.value;
|
|
1325
|
+
}
|
|
1326
|
+
const Found above = oneSided(e, x, point, true), below = oneSided(e, x, point, false);
|
|
1327
|
+
if (above.value.is_null() || below.value.is_null()) throw oscillating();
|
|
1328
|
+
if (eq(*above.value, *below.value) || compareOf(above.value, below.value) == 0) return above.value;
|
|
1329
|
+
throw MathError(ErrorCode::Domain, toText(given) + " has no limit at " + name + " = " + toText(point) + ": " + toText(below.value) + " from below, " + toText(above.value) + " from above");
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
}
|