Re: The Euphoria Sub Commander project

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

CChris wrote:

<snip> <snip> <snip>

> Well yes, it is actually one of the strengths of Euphoria that you can do s
> = s1 + s2 and that this adds the two vectors together, provided their
> structures
> match. This works with and, or, xor,-,* and /, but not & unfortunately.
> All math operations (tan(), sqrt() and friends) also work like this. You'll
> get a complete picture in the docs, section 2.2.4 (Operations on sequences).
> 
> 
> For some background on sequence operations in Eu, see
>  
> <a
> href="http://www.openeuphoria.org/cgi-bin/esearch.exu?fromMonth=6&fromYear=1&toMonth=B&toYear=C&postedBy=robert+craig&keywords=background+on+sequence+operations">http://www.openeuphoria.org/cgi-bin/esearch.exu?fromMonth=6&fromYear=1&toMonth=B&toYear=C&postedBy=robert+craig&keywords=background+on+sequence+operations</a>
> 
> (URL wraps, see post #1 there). Strangely, I cannot find this post on Topica,
> even though the replies do appear. The post is too old to be viewed here, even
> with the several pages recent enhancement.
> 
> CChris

I'm glad you made this post. It seems you understand what I missed. The
    adding of two sequences. It's not that clear in the statment,

draw_line(colors[k],{cen[k],cen[k]+p2xy(r,rt/1800*PI)}).

After studying it I see it. It's so simple now.

I read some of Rob's old posts you put up a link to. Although a lot of it is 
above my head I get the gist. I know this was well covered in David Gay's
tutorial, but it has been about four years since I read it.

Don Cole

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

Search



Quick Links

User menu

Not signed in.

Misc Menu