// Copyright (C) 2026 Kiyotsugu Arai // SPDX-License-Identifier: LGPL-3.0-or-later // root_finding.hpp #ifndef SANGI_ROOT_FINDING_HPP #define SANGI_ROOT_FINDING_HPP // 求根関連のヘッダーをすべてインクルード #include "root_finding_base.hpp" #include "root_finding_1d.hpp" #include "root_finding_nd.hpp" #include "polynomial_roots.hpp" // 名前空間エイリアスの提供(利便性向上のため) namespace sangi { namespace root = sangi; // rootという短い名前でアクセス可能 // 旧バージョンとの互換性のためのエイリアス // 詳細は非推奨としてマークし、新しいAPIの使用を推奨 #ifdef __has_cpp_attribute #if __has_cpp_attribute(deprecated) [[deprecated("Use RootFindingResult bisection() instead")]] #endif #endif inline auto bisection_old = bisection_legacy; #ifdef __has_cpp_attribute #if __has_cpp_attribute(deprecated) [[deprecated("Use RootFindingResult newton_raphson() instead")]] #endif #endif inline auto newton_raphson_old = newton_raphson_legacy; #ifdef __has_cpp_attribute #if __has_cpp_attribute(deprecated) [[deprecated("Use RootFindingResult secant_method() instead")]] #endif #endif inline auto secant_method_old = secant_method_legacy; #ifdef __has_cpp_attribute #if __has_cpp_attribute(deprecated) [[deprecated("Use RootFindingResult brent_method() instead")]] #endif #endif inline auto brent_method_old = brent_method_legacy; } #endif // SANGI_ROOT_FINDING_HPP