Re: Deprecation when trying to solve system of linear equations.

Nicholas Jankowski <[email protected]> Fri, 18 Oct 2024 10:16:18 -0400
Newsgroups gmane.comp.gnu.octave.general
Message-ID <CALW4+b+2A91-x+HP3yzHC0Uh8DOYk4C4xm9DVh-whsNSeQ_Sug@mail.gmail.com>
--===============5486967984332087035==
Content-Type: multipart/alternative; boundary="0000000000001149230624c0f351"

--0000000000001149230624c0f351
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

As the message at the bottom says, this mailing list is less used than
octaves discussion forum at

https://octave.discourse.group

 in this case since you're asking about a symbolic package issue, you
should probably report it directly at the package github issue tracker at:

https://github.com/gnu-octave/symbolic/issues

On Fri, Oct 18, 2024, 10:04 Carlo Wood via Help-octave <[email protected]=
>
wrote:

> I tried the following MATLAB example code:
>
> syms u v
> eqns =3D [2*u^2 + v^2 =3D=3D 0, u - v =3D=3D 1];
> vars =3D [v u];
> [solv, solu] =3D solve(eqns,vars)
>
> This gives a deprecation warning, the output is:
>
> Symbolic pkg v3.2.1: Python communication link active, SymPy v1.13.3.
> <stdin>:7: SymPyDeprecationWarning:
>
> non-Expr objects in a Matrix is deprecated. Matrix represents
> a mathematical matrix. To represent a container of non-numeric
> entities, Use a list of lists, TableForm, NumPy array, or some
> other data structure instead.
>
> See
> https://docs.sympy.org/latest/explanation/active-deprecations.html#deprec=
ated-non-expr-in-matrix
> for details.
>
> This has been deprecated since SymPy version 1.9. It
> will be removed in a future version of SymPy.
>
> solv =3D (sym 2=C3=971 matrix)
>
>   =E2=8E=A1  2   =E2=88=9A2=E2=8B=85=E2=85=88=E2=8E=A4
>   =E2=8E=A2- =E2=94=80 + =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=8E=A5
>   =E2=8E=A2  3    3  =E2=8E=A5
>   =E2=8E=A2          =E2=8E=A5
>   =E2=8E=A2  2   =E2=88=9A2=E2=8B=85=E2=85=88=E2=8E=A5
>   =E2=8E=A2- =E2=94=80 - =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=8E=A5
>   =E2=8E=A3  3    3  =E2=8E=A6
>
> solu =3D (sym 2=C3=971 matrix)
>
>   =E2=8E=A11   =E2=88=9A2=E2=8B=85=E2=85=88=E2=8E=A4
>   =E2=8E=A2=E2=94=80 + =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=8E=A5
>   =E2=8E=A23    3  =E2=8E=A5
>   =E2=8E=A2        =E2=8E=A5
>   =E2=8E=A21   =E2=88=9A2=E2=8B=85=E2=85=88=E2=8E=A5
>   =E2=8E=A2=E2=94=80 - =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=8E=A5
>   =E2=8E=A33    3  =E2=8E=A6
>
>
> Is there a way to do this without getting this deprecation warning?
>
> Carlo Wood
>
> PS Using GNU Octave, version 9.2.0
>
>
>
> ----------
> We are transitioning to a web based forum
> for community help discussions at
> https://octave.discourse.group/c/help
>

--0000000000001149230624c0f351
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><p dir=3D"ltr">As the message at the bottom says, this ma=
iling list is less used than octaves discussion forum at=C2=A0</p><p dir=3D=
"ltr"><a href=3D"https://octave.discourse.group">https://octave.discourse.g=
roup</a></p><p dir=3D"ltr">=C2=A0in this case since you&#39;re asking about=
 a symbolic package issue, you should probably report it directly at the pa=
ckage github issue tracker at:<br></p><p dir=3D"ltr"><a href=3D"https://git=
hub.com/gnu-octave/symbolic/issues">https://github.com/gnu-octave/symbolic/=
issues</a><br></p></div>
<br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Fri=
, Oct 18, 2024, 10:04 Carlo Wood via Help-octave &lt;<a href=3D"mailto:help=
[email protected]" target=3D"_blank" rel=3D"noreferrer">[email protected]</=
a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 =
0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I tried the following=
 MATLAB example code:<br>
<br>
syms u v<br>
eqns =3D [2*u^2 + v^2 =3D=3D 0, u - v =3D=3D 1];<br>
vars =3D [v u];<br>
[solv, solu] =3D solve(eqns,vars)<br>
<br>
This gives a deprecation warning, the output is:<br>
<br>
Symbolic pkg v3.2.1: Python communication link active, SymPy v1.13.3.<br>
&lt;stdin&gt;:7: SymPyDeprecationWarning: <br>
<br>
non-Expr objects in a Matrix is deprecated. Matrix represents<br>
a mathematical matrix. To represent a container of non-numeric<br>
entities, Use a list of lists, TableForm, NumPy array, or some<br>
other data structure instead.<br>
<br>
See <a href=3D"https://docs.sympy.org/latest/explanation/active-deprecation=
s.html#deprecated-non-expr-in-matrix" rel=3D"noreferrer noreferrer noreferr=
er" target=3D"_blank">https://docs.sympy.org/latest/explanation/active-depr=
ecations.html#deprecated-non-expr-in-matrix</a><br>
for details.<br>
<br>
This has been deprecated since SymPy version 1.9. It<br>
will be removed in a future version of SymPy.<br>
<br>
solv =3D (sym 2=C3=971 matrix)<br>
<br>
=C2=A0 =E2=8E=A1=C2=A0 2=C2=A0 =C2=A0=E2=88=9A2=E2=8B=85=E2=85=88=E2=8E=A4<=
br>
=C2=A0 =E2=8E=A2- =E2=94=80 + =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=8E=A5=
<br>
=C2=A0 =E2=8E=A2=C2=A0 3=C2=A0 =C2=A0 3=C2=A0 =E2=8E=A5<br>
=C2=A0 =E2=8E=A2=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =E2=8E=A5<br>
=C2=A0 =E2=8E=A2=C2=A0 2=C2=A0 =C2=A0=E2=88=9A2=E2=8B=85=E2=85=88=E2=8E=A5<=
br>
=C2=A0 =E2=8E=A2- =E2=94=80 - =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=8E=A5=
<br>
=C2=A0 =E2=8E=A3=C2=A0 3=C2=A0 =C2=A0 3=C2=A0 =E2=8E=A6<br>
<br>
solu =3D (sym 2=C3=971 matrix)<br>
<br>
=C2=A0 =E2=8E=A11=C2=A0 =C2=A0=E2=88=9A2=E2=8B=85=E2=85=88=E2=8E=A4<br>
=C2=A0 =E2=8E=A2=E2=94=80 + =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=8E=A5<b=
r>
=C2=A0 =E2=8E=A23=C2=A0 =C2=A0 3=C2=A0 =E2=8E=A5<br>
=C2=A0 =E2=8E=A2=C2=A0 =C2=A0 =C2=A0 =C2=A0 =E2=8E=A5<br>
=C2=A0 =E2=8E=A21=C2=A0 =C2=A0=E2=88=9A2=E2=8B=85=E2=85=88=E2=8E=A5<br>
=C2=A0 =E2=8E=A2=E2=94=80 - =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=8E=A5<b=
r>
=C2=A0 =E2=8E=A33=C2=A0 =C2=A0 3=C2=A0 =E2=8E=A6<br>
<br>
<br>
Is there a way to do this without getting this deprecation warning?<br>
<br>
Carlo Wood<br>
<br>
PS Using GNU Octave, version 9.2.0<br>
<br>
<br>
<br>
----------<br>
We are transitioning to a web based forum<br>
for community help discussions at<br>
<a href=3D"https://octave.discourse.group/c/help" rel=3D"noreferrer norefer=
rer noreferrer" target=3D"_blank">https://octave.discourse.group/c/help</a>=
<br>
</blockquote></div>

--0000000000001149230624c0f351--


--===============5486967984332087035==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

Ci0tLS0tLS0tLS0KV2UgYXJlIHRyYW5zaXRpb25pbmcgdG8gYSB3ZWIgYmFzZWQgZm9ydW0KZm9y
IGNvbW11bml0eSBoZWxwIGRpc2N1c3Npb25zIGF0Cmh0dHBzOi8vb2N0YXZlLmRpc2NvdXJzZS5n
cm91cC9jL2hlbHAK

--===============5486967984332087035==--