Skip to content

Commit

Permalink
Use (+) for max plus operator instead of i=unicode not displayed corr…
Browse files Browse the repository at this point in the history
…ectly by dear #11
  • Loading branch information
Lecrapouille committed Jan 9, 2024
1 parent 582bc3a commit c0945d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Editor/PetriEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ void Editor::showDynamicLinearSystem() const
SparseMatrix<double> B; SparseMatrix<double> C;
toSysLin(m_net, D, A, B, C);
SparseMatrix<double>::display_for_julia = false;
ImGui::Text(u8"%s", "X(n) = D . X(n) A . X(n-1) B . U(n)\nY(n) = C . X(n)");
ImGui::Text(u8"%s", "X(n) = D . X(n) (+) A . X(n-1) (+) B . U(n)\nY(n) = C . X(n)");
ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_None;
if (ImGui::BeginTabBar("syslin", tab_bar_flags))
{
Expand Down
8 changes: 4 additions & 4 deletions src/Net/Algorithms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ std::stringstream showCounterEquation(Net const& net, std::string const& comment
{
ss << "(t)";
}
separator2 = (minplus_notation ? " " : ", ");
separator2 = (minplus_notation ? " (+) " : ", ");
}
separator1 = (minplus_notation ? " " : ", ");
separator1 = (minplus_notation ? " (+) " : ", ");
}
ss << (minplus_notation ? "" : ")") << std::endl;
}
Expand Down Expand Up @@ -403,9 +403,9 @@ std::stringstream showDaterEquation(Net const& net, std::string const& comment,
}
ss << ")";

separator2 = (maxplus_notation ? " " : ", ");
separator2 = (maxplus_notation ? " (+) " : ", ");
}
separator1 = (maxplus_notation ? " " : ", ");
separator1 = (maxplus_notation ? " (+) " : ", ");
}
ss << (maxplus_notation ? "" : ")") << std::endl;
}
Expand Down

0 comments on commit c0945d4

Please sign in to comment.