LMCAS
Lamina Computer Algebra System
载入中...
搜索中...
未找到
exact_algebraic.hpp
浏览该文件的文档.
1#pragma once
2
4#include "polynomial.hpp"
5#include "result.hpp"
6
7#include <cstddef>
8
9namespace LMCAS::detail {
10
13 Rational lower;
14 Rational upper;
15 std::size_t root_index = 0;
16 std::size_t multiplicity = 1;
17
18 bool is_rational() const noexcept { return lower == upper; }
19};
20
22
24 Polynomial<Rational> polynomial,
25 std::size_t root_index,
26 std::size_t multiplicity,
28
32 const std::string& operation = "exact_algebraic.refine");
33
39 const std::string& operation = "exact_algebraic.refine");
40
45
50
51} // namespace LMCAS::detail
一元多项式模板类
#define LMCAS_API
多元 Hensel 提升(单变量步)
Result< void > refine_exact_real_algebraic_to_tolerance(ExactRealAlgebraic &value, double absolute_tolerance, double relative_tolerance, ComputationContext &context, const std::string &operation)
ExactRealAlgebraic rhs
Result< int > compare_exact_real_algebraic(ExactRealAlgebraic lhs, ExactRealAlgebraic rhs, ComputationContext &context)
std::size_t std::size_t multiplicity
Result< void > refine_exact_real_algebraic(ExactRealAlgebraic &value, ComputationContext &context, const std::string &operation)
ComputationContext const std::string & operation
Result< ExactRealAlgebraic > ExactRealAlgebraicResult
ExactRealAlgebraicResult make_exact_real_algebraic(Polynomial< Rational > polynomial, std::size_t root_index, std::size_t multiplicity, ComputationContext &context)
std::size_t std::size_t ComputationContext & context
double double relative_tolerance
Result< bool > equal_exact_real_algebraic(ExactRealAlgebraic lhs, ExactRealAlgebraic rhs, ComputationContext &context)
const std::string const ExprPtr & value
一元多项式模板类 Polynomial<T>,支持四则运算,GCD,求导,求值.