Skip to content

Commit

Permalink
Workaround nsolve with immutable x vars
Browse files Browse the repository at this point in the history
  • Loading branch information
cbm755 committed Sep 13, 2022
1 parent 353718d commit f0e5ecd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inst/vpasolve.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f0e5ecd

Please sign in to comment.