1 #ifndef SEQUENCE_SEQUENCE_H 2 #define SEQUENCE_SEQUENCE_H 4 #include "../shared/function.h" 28 const char * firstInitialConditionText();
29 const char * secondInitialConditionText();
37 void setType(Type type);
38 void setInitialRank(
int rank);
39 void setContent(
const char *
c)
override;
40 void setFirstInitialConditionContent(
const char *
c);
41 void setSecondInitialConditionContent(
const char *
c);
42 int numberOfElements();
47 bool isDefined()
override;
48 bool isEmpty()
override;
50 return templatedApproximateAtAbscissa(x, static_cast<SequenceContext *>(context));
53 return templatedApproximateAtAbscissa(x, static_cast<SequenceContext *>(context));
55 template<
typename T>
T approximateToNextRank(
int n,
SequenceContext * sqctx)
const;
58 constexpr
static int k_initialRankNumberOfDigits = 3;
60 constexpr
static double k_maxNumberOfTermsInSum = 100000.0;
62 static_assert((k_dataLengthInBytes & 0x3) == 0,
"The sequence data size is not a multiple of 4 bytes (cannot compute crc)");
63 char symbol()
const override;
64 template<
typename T>
T templatedApproximateAtAbscissa(
T x,
SequenceContext * sqctx)
const;
static constexpr int maxBufferSize()
double evaluateAtAbscissa(double x, Poincare::Context *context) const override
constexpr KDColor KDColorBlack
float evaluateAtAbscissa(float x, Poincare::Context *context) const override