bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] miscellāneum


From: Hudson Flavio Meneses Lacerda
Subject: Re: [Bug-apl] miscellāneum
Date: Mon, 4 Mar 2019 22:20:19 -0300

On Sun, 3 Mar 2019 16:21:25 +0100
Dr. Jürgen Sauermann <address@hidden> wrote:
[...]
> As far as GNU APL is concerned, first of all apply statement 1. on
> page 38 to the interpreter itself rather than to the APL code that is
> being interpreted. [...]

Hi.

Do you suggest, when writing GNU APL, to put the emphasis on the
readability and basically ignore optimization? Are there any tips
for better code for GNU APL?

[...]
> In particular today I would argue that:
[...]
> 
> 8. I tend to measure time with a (CPU-)clock rather than a ruler. The
> remarks on scalars are partly incorrect in the context of scalar
> extension (e.g. multiplication of a vector and a scalar).

Those examples seem to involve only scalars and scalar items of vectors.


BTW, are there any significant differences between these expressions
(where f is scalar, and t is a lengthy vector) ?:

a)      cos ← {2○⍵}
        PI ← ○1
        S ← cos 2 × PI × f × t
b)      S ← 2○ ○t×f×2
c)      S ← 2○ (2×○1×f) × t
d)      S ← 2○ (○2×f) × t
e)      S ← 2○ (○f+f) × t
f)      S ← cos(2×PI×f)×t
g)      S ← cos t×(2×PI×f)


Regards,
Hudson











reply via email to

[Prev in Thread] Current Thread [Next in Thread]