|
From: LaBella, V. <vla...@al...> - 2026-02-24 23:50:49
|
Andrey,
I wrote these set of functions to encode numbers into a string to act like an array. There is a performance penalty but it works. I used it to do a Romberg integration.
Hope this helps.
Vince
-----Original Message-----
From: Andrey G. Grozin via Glx-general <glx...@li...>
Sent: Tuesday, February 24, 2026 10:33 AM
To: GLE discussion <glx...@li...>
Cc: Andrey G. Grozin <A.G...@in...>
Subject: Re: [GLE-general] [GLE-devel] arrays of lists? (fwd)
Thank you
On Sun, 22 Feb 2026, Radek Machulka wrote:
> sub get_value array$ index
> return val(seg$(array$, index, index)) end sub
>
> nums$ = "1234567890"
>
> for i = 1 to len(nums$)
> val = 10*get_value(nums$, i)
> print val
> next i
I think I'm going to try to use a set of simple variables x1, x2, x3, ...
as an "array":
val(format$(i,"dec prepend x"))
will return the i-th element.
for i = 1 to xn
xi = val(format$(i,"dec prepend x"))
do_something_with_xi
next i
Something like that.
Once more thank you,
Andrey
_______________________________________________
Glx-general mailing list
Glx...@li...
https://lists.sourceforge.net/lists/listinfo/glx-general
|