6 #ifndef SYMENGINE_SERIES_GENERIC_H
7 #define SYMENGINE_SERIES_GENERIC_H
10 #include <symengine/polys/uexprpoly.h>
17 :
public SeriesBase<UExprDict, Expression, UnivariateSeries>
26 const unsigned degree)
29 SYMENGINE_ASSIGN_TYPEID()
32 static RCP<const UnivariateSeries> create(
const RCP<const Symbol> &var,
33 const unsigned int &prec,
36 return make_rcp<const UnivariateSeries>(
std::move(s), var->get_name(),
40 static RCP<const UnivariateSeries>
41 series(
const RCP<const Basic> &t,
const std::string &x,
unsigned int prec);
44 bool operator==(
const UnivariateSeries &u)
const;
45 RCP<const Basic> as_basic()
const override;
46 umap_int_basic as_dict()
const override;
47 RCP<const Basic> get_coeff(
int)
const override;
50 static Expression convert(
const Basic &x);
52 static int ldegree(
const UExprDict &s);
53 static UExprDict mul(
const UExprDict &s,
const UExprDict &r,
unsigned prec);
54 static UExprDict pow(
const UExprDict &s,
int n,
unsigned prec);
55 static Expression find_cf(
const UExprDict &s,
const UExprDict &var,
57 static Expression root(Expression &c,
unsigned n);
58 static UExprDict diff(
const UExprDict &s,
const UExprDict &var);
59 static UExprDict integrate(
const UExprDict &s,
const UExprDict &var);
60 static UExprDict subs(
const UExprDict &s,
const UExprDict &var,
61 const UExprDict &r,
unsigned prec);
63 static Expression sin(
const Expression &c);
64 static Expression cos(
const Expression &c);
65 static Expression tan(
const Expression &c);
66 static Expression asin(
const Expression &c);
67 static Expression acos(
const Expression &c);
68 static Expression atan(
const Expression &c);
69 static Expression sinh(
const Expression &c);
70 static Expression cosh(
const Expression &c);
71 static Expression tanh(
const Expression &c);
72 static Expression asinh(
const Expression &c);
73 static Expression acosh(
const Expression &c);
74 static Expression atanh(
const Expression &c);
75 static Expression exp(
const Expression &c);
76 static Expression log(
const Expression &c);
79 inline RCP<const UnivariateSeries>
80 univariate_series(RCP<const Symbol> i,
unsigned int prec,
const UExprDict &s)
82 return make_rcp<const UnivariateSeries>(
std::move(s), i->get_name(), prec);
#define IMPLEMENT_TYPEID(SYMENGINE_ID)
Inline members and functions.
RCP< const Number > mul(const Number &other) const override
Multiplication.
RCP< const Number > pow(const Number &other) const override
Power.
int compare(const Basic &o) const override
hash_t __hash__() const override
Main namespace for SymEngine package.