From f0e5ecdd85027f387d61a8c8b9c56a50eb8c9f19 Mon Sep 17 00:00:00 2001 From: "Colin B. Macdonald" Date: Tue, 13 Sep 2022 00:51:49 -0700 Subject: [PATCH] Workaround nsolve with immutable x vars --- inst/vpasolve.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inst/vpasolve.m b/inst/vpasolve.m index 6fb80e780..2b0a7308b 100644 --- a/inst/vpasolve.m +++ b/inst/vpasolve.m @@ -105,6 +105,9 @@ '(e, x, x0, n) = _ins' 'import mpmath' 'mpmath.mp.dps = n' + 'if isinstance(x, MatrixBase):' + ' # TODO: find/file upstream issue' + ' x = x.as_mutable()' 'r = nsolve(e, x, x0)' 'return r' }; r = pycall_sympy__ (cmd, sym(e), x, x0, n);