Open
Description
This was encountered while trying the following code:
octave:1> pkg load symbolic
octave:2> version
ans = 9.2.0
octave:3> syms u v
Symbolic pkg v3.2.1: Python communication link active, SymPy v1.10.1.
octave:4> eqns = [2*u^2 + v^2 == 0, u - v == 1];
octave:5> vars = [v u];
octave:6> [solv, solu] = solve(eqns,vars)
solv = (sym 2x1 matrix)
[ ___ ]
[1 \/ 2 *I]
[- + -------]
[3 3 ]
[ ]
[ ___ ]
[1 \/ 2 *I]
[- - -------]
[3 3 ]
solu = (sym 2x1 matrix)
[ ___ ]
[ 2 \/ 2 *I]
[- - + -------]
[ 3 3 ]
[ ]
[ ___ ]
[ 2 \/ 2 *I]
[- - - -------]
[ 3 3 ]
octave:7> warning('on', 'all')
octave:8> [solv, solu] = solve(eqns,vars)
warning: Using an object of size 3x1 as a boolean value implies all().
warning: called from
compare_versions at line 115 column 7
python_ipc_driver at line 36 column 9
pycall_sympy__ at line 164 column 11
solve at line 197 column 9
warning: Using an object of size 2x1 as a boolean value implies all().
warning: called from
compare_versions at line 119 column 7
python_ipc_driver at line 36 column 9
pycall_sympy__ at line 164 column 11
solve at line 197 column 9
warning: implicit conversion from string to real N-D array
warning: called from
compare_versions at line 159 column 8
python_ipc_driver at line 36 column 9
pycall_sympy__ at line 164 column 11
solve at line 197 column 9
warning: implicit conversion from string to real N-D array
warning: called from
compare_versions at line 159 column 8
python_ipc_driver at line 36 column 9
pycall_sympy__ at line 164 column 11
solve at line 197 column 9
warning: concatenation of different character string types may have unintended consequences
warning: called from
strjoin at line 84 column 10
write_lines at line 28 column 3
python_ipc_popen2 at line 145 column 3
python_ipc_driver at line 62 column 15
pycall_sympy__ at line 164 column 11
solve at line 197 column 9
warning: concatenation of different character string types may have unintended consequences
warning: called from
strjoin at line 84 column 10
write_lines at line 28 column 3
python_ipc_popen2 at line 180 column 3
python_ipc_driver at line 62 column 15
pycall_sympy__ at line 164 column 11
solve at line 197 column 9
warning: concatenation of different character string types may have unintended consequences
warning: called from
strjoin at line 84 column 10
write_lines at line 28 column 3
python_ipc_popen2 at line 182 column 3
python_ipc_driver at line 62 column 15
pycall_sympy__ at line 164 column 11
solve at line 197 column 9
solv = (sym 2x1 matrix)
[ ___ ]
[1 \/ 2 *I]
[- + -------]
[3 3 ]
[ ]
[ ___ ]
[1 \/ 2 *I]
[- - -------]
[3 3 ]
solu = (sym 2x1 matrix)
[ ___ ]
[ 2 \/ 2 *I]
[- - + -------]
[ 3 3 ]
[ ]
[ ___ ]
[ 2 \/ 2 *I]
[- - - -------]
[ 3 3 ]
This issue was discussed in #1310.