Re: New & question

new topic     » goto parent     » topic index » view thread      » older message » newer message

Still not quite clear to me:

I'm using sequences for matrix calculations and therefor would
like to estimate the memory consumption by sequences (representing
vektors
or matrices).

My question:  how many bytes will be occupied im memory (except small
overhead) by the sequence s used in the following code?

Here the code:

    constant PI = arctan(1)     -- a double presision float (8 byte)

    sequence s
    s = {}
    for i = 1 to 1024 do
        s = s & i*PI            -- 1024 different doub. pres. floats
    end for                     --   in a one-dim-sequence

Thanks, Rolf

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu