mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/sequence] Give an example of content in recurrent sequences
Change-Id: If80b62673d21954d96cd128108cb783b2d4487cc
This commit is contained in:
@@ -97,7 +97,26 @@ void Sequence::setType(Type type) {
|
||||
m_type = type;
|
||||
tidy();
|
||||
/* Reset all contents */
|
||||
setContent("");
|
||||
switch (m_type) {
|
||||
case Type::Explicite:
|
||||
setContent("");
|
||||
break;
|
||||
case Type::SingleRecurrence:
|
||||
{
|
||||
char ex[5] = "u(n)";
|
||||
ex[0] = name()[0];
|
||||
setContent(ex);
|
||||
break;
|
||||
}
|
||||
case Type::DoubleRecurrence:
|
||||
{
|
||||
char ex[12] = "u(n+1)+u(n)";
|
||||
ex[0] = name()[0];
|
||||
ex[7] = name()[0];
|
||||
setContent(ex);
|
||||
break;
|
||||
}
|
||||
}
|
||||
setFirstInitialConditionContent("");
|
||||
setSecondInitialConditionContent("");
|
||||
m_indexBuffer[0] = -1;
|
||||
|
||||
Reference in New Issue
Block a user