Re: octave 9.1 w 64 bit err between func(*) arg and index using()

"Dmitri A. Sergatskov" <[email protected]> Thu, 19 Sep 2024 01:07:04 -0400
Newsgroups gmane.comp.gnu.octave.general
Message-ID <CAO+XyQLjHRQNvv_E6zdrepuRpkoMNPwtAPwd0hSP=v+jWMbFSw@mail.gmail.com>
--===============2648582965468239203==
Content-Type: multipart/alternative; boundary="00000000000062654a062271e513"

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

I saved you fgg() as fgg.m file. Then I see:
octave:1> xx=3D [ 1 2]
xx =3D

   1   2

octave:2> [z gg]=3D fgg (xx )
z =3D 100
gg =3D

  -400
   200

Is this what you expect? I do not see any errors.

Dmitri.
--=20


On Thu, Sep 19, 2024 at 12:52=E2=80=AFAM DuyKy Nguyen <[email protected]> w=
rote:

> dear my Octave heros
> I'm retiree after 35 yr as R&D Engwith dusability but still love geek
> working
> Due to my limit finance I still using my old w7 64
> I really love Octave per its nice and great feature over MLab even I've
> used MLab since 1993
> Recently I run into problem with my Octave 9.1on my w7 -64b
> I could not install 9.2
> The error is it report my function fgg
>
> #########################################################################=
#####
> function [z gg]=3D fgg (xx )
> x=3Dxx(1);
> y=3Dxx(2);
>     gg=3Dones(2,1);
>     z =3D   (1 - x)^2 + 100*(-x^2 + y)^2;
> Fx =3D   -400*x*(-x^2 + y) + 2*x - 2;
> Fy =3D   -200*x^2 + 200*y;
> gg(1)=3DFx;
> gg(2)=3DFy;
> endfunction
>
> #########################################################################=
#####
> with xx=3D [ 1 2]
> [z gg]=3D fgg (xx )
> it raise err in interpreting () in fgg not as arg but as index
> Sincer regards
> DuyKy Nguyen, PhD EE, retiree
>
> ----------
> We are transitioning to a web based forum
> for community help discussions at
> https://octave.discourse.group/c/help
>

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

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:monospace;font-size:large">I saved you fgg() as fgg.m file. Then I=
 see:</div><div class=3D"gmail_default" style=3D"font-family:monospace;font=
-size:large">octave:1&gt; xx=3D [ 1 2]<br>xx =3D<br><br>=C2=A0 =C2=A01 =C2=
=A0 2<br><br>octave:2&gt; [z gg]=3D fgg (xx )<br>z =3D 100<br>gg =3D<br><br=
>=C2=A0 -400<br>=C2=A0 =C2=A0200<br><br></div><div class=3D"gmail_default" =
style=3D"font-family:monospace;font-size:large">Is this what you expect? I =
do not see any errors.</div><div class=3D"gmail_default" style=3D"font-fami=
ly:monospace;font-size:large"><br></div><div class=3D"gmail_default" style=
=3D"font-family:monospace;font-size:large">Dmitri.</div><div class=3D"gmail=
_default" style=3D"font-family:monospace;font-size:large">--=C2=A0</div><di=
v class=3D"gmail_default" style=3D"font-family:monospace;font-size:large"><=
br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gma=
il_attr">On Thu, Sep 19, 2024 at 12:52=E2=80=AFAM DuyKy Nguyen &lt;<a href=
=3D"mailto:[email protected]">[email protected]</a>&gt; wrote:<br></div><bl=
ockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-lef=
t:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">
dear my Octave heros<br>
I&#39;m retiree after 35 yr as R&amp;D Engwith dusability but still love ge=
ek working<br>
Due to my limit finance I still using my old w7 64 <br>
I really love Octave per its nice and great feature over MLab even I&#39;ve=
 used MLab since 1993<br>
Recently I run into problem with my Octave 9.1on my w7 -64b<br>
I could not install 9.2<br>
The error is it report my function fgg<br>
###########################################################################=
###<br>
function [z gg]=3D fgg (xx )<br>
x=3Dxx(1);<br>
y=3Dxx(2);<br>
=C2=A0=C2=A0=C2=A0 gg=3Dones(2,1);<br>
=C2=A0=C2=A0=C2=A0 z =3D=C2=A0=C2=A0 (1 - x)^2 + 100*(-x^2 + y)^2;<br>
Fx =3D=C2=A0=C2=A0 -400*x*(-x^2 + y) + 2*x - 2;<br>
Fy =3D=C2=A0=C2=A0 -200*x^2 + 200*y;<br>
gg(1)=3DFx;<br>
gg(2)=3DFy;<br>
endfunction<br>
###########################################################################=
###<br>
with xx=3D [ 1 2]<br>
[z gg]=3D fgg (xx )<br>
it raise err in interpreting () in fgg not as arg but as index<br>
Sincer regards<br>
DuyKy Nguyen, PhD EE, retiree

</div>
<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" target=
=3D"_blank">https://octave.discourse.group/c/help</a><br>
</blockquote></div></div>

--00000000000062654a062271e513--


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

Ci0tLS0tLS0tLS0KV2UgYXJlIHRyYW5zaXRpb25pbmcgdG8gYSB3ZWIgYmFzZWQgZm9ydW0KZm9y
IGNvbW11bml0eSBoZWxwIGRpc2N1c3Npb25zIGF0Cmh0dHBzOi8vb2N0YXZlLmRpc2NvdXJzZS5n
cm91cC9jL2hlbHAK

--===============2648582965468239203==--