LMCAS
Lamina Computer Algebra System
载入中...
搜索中...
未找到
solve_polynomial.hpp
浏览该文件的文档.
1#pragma once
2
3#include "symbolic.hpp"
5#include "poly_utils.hpp"
6#include "rational.hpp"
7#include <vector>
8#include <utility>
9#include <memory>
10#include <string>
11
12namespace LMCAS {
13
14LMCAS_API std::vector<std::shared_ptr<SymbolicExpr>> solve_cubic(
15 const std::shared_ptr<SymbolicExpr>& a,
16 const std::shared_ptr<SymbolicExpr>& b,
17 const std::shared_ptr<SymbolicExpr>& c,
18 const std::shared_ptr<SymbolicExpr>& d,
19 const std::string& var);
20
21LMCAS_API std::vector<std::shared_ptr<SymbolicExpr>> solve_quartic(
22 const std::shared_ptr<SymbolicExpr>& a,
23 const std::shared_ptr<SymbolicExpr>& b,
24 const std::shared_ptr<SymbolicExpr>& c,
25 const std::shared_ptr<SymbolicExpr>& d,
26 const std::shared_ptr<SymbolicExpr>& e,
27 const std::string& var);
28
29LMCAS_API std::vector<std::shared_ptr<SymbolicExpr>> solve_biquadratic(
30 const std::shared_ptr<SymbolicExpr>& a,
31 const std::shared_ptr<SymbolicExpr>& b,
32 const std::shared_ptr<SymbolicExpr>& c,
33 const std::string& var);
34
35
36/**
37 * @brief 通过因式分解求解多项式方程。
38 * @param poly 符号系数多项式
39 * @param var 求解变量名
40 * @return 所有根的符号表达式列表
41 */
42LMCAS_API std::vector<std::shared_ptr<SymbolicExpr>> solve_by_factoring(
44 const std::string& var);
45
46}
一元多项式模板类
#define LMCAS_API
ExprResult e()
std::vector< std::shared_ptr< SymbolicExpr > > solve_by_factoring(const Polynomial< SymbolicPolyCoeff > &poly, const std::string &variable)
std::vector< std::shared_ptr< SymbolicExpr > > solve_quartic(const std::shared_ptr< SymbolicExpr > &a, const std::shared_ptr< SymbolicExpr > &b, const std::shared_ptr< SymbolicExpr > &c, const std::shared_ptr< SymbolicExpr > &d, const std::shared_ptr< SymbolicExpr > &e, const std::string &variable)
const VectorField const VectorField & c
const MultiPoly & b
__attribute__((visibility("default"))) VectorCalculusExprResult curve_integral_scalar_checked(const std __attribute__((visibility("default"))) VectorCalculusExprResult curve_integral_scalar_checked(const std __attribute__((visibility("default"))) std const VectorField const std::string const std::shared_ptr< SymbolicExpr > & a
std::vector< std::shared_ptr< SymbolicExpr > > solve_biquadratic(const std::shared_ptr< SymbolicExpr > &a, const std::shared_ptr< SymbolicExpr > &b, const std::shared_ptr< SymbolicExpr > &c, const std::string &variable)
std::vector< std::shared_ptr< SymbolicExpr > > solve_cubic(const std::shared_ptr< SymbolicExpr > &a, const std::shared_ptr< SymbolicExpr > &b, const std::shared_ptr< SymbolicExpr > &c, const std::shared_ptr< SymbolicExpr > &d, const std::string &variable)
多项式转换与精确符号多项式代数。
精确有理数 Rational,基于 BigInt 分子/分母表示,自动约分。
符号表达式主类 SymbolicExpr 及其工厂方法,运算接口.