Skip to content

Commit ee7fde0

Browse files
committed
Repaired the Equations->Solve numerical->Find numerical solution" menu (Fixes: #2010).
The 'find_root()' menu wizard was removed with commit 376a5f5
1 parent b9808ab commit ee7fde0

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

NEWS.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
and wxMaxima. (#1926)
1414
- Kill Lisp (e.g. sbcl.exe) when closing wxMaxima. (#1963, #1922, #1824, #1199)
1515
- Correct heading colors (#2005)
16+
- Repaired the Equations->Solve numerical->Find numerical solution" menu (#2010)
1617

1718
# 25.01.0
1819

src/wxMaxima.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -7769,6 +7769,14 @@ void wxMaxima::EquationsMenu(wxCommandEvent &event) {
77697769
else if(event.GetId() == EventIDs::menu_solve_num) {
77707770
if (expr.StartsWith(wxS("%")))
77717771
expr = wxS("''(") + expr + wxS(")");
7772+
CommandWiz(
7773+
_("Solve equations numerically"),
7774+
_("Tries to find a value of the variable that solves the equation between the two bonds"), wxEmptyString,
7775+
wxT("find_root(#1#,#2#,#3#,#4#);"),
7776+
_("Equation:"), expr, wxEmptyString,
7777+
_("Variable:"), wxT("x"), wxEmptyString,
7778+
_("Lower bound:"), wxT("-1"), wxEmptyString,
7779+
_("Upper bound:"), wxT("1"), wxEmptyString);
77727780
}
77737781
else if((event.GetId() == EventIDs::button_solve_ode) ||
77747782
(event.GetId() == EventIDs::menu_solve_ode)) {

0 commit comments

Comments
 (0)