f python?

Ian Kelly ian.g.kelly at gmail.com
Sun Apr 15 18:59:31 EDT 2012


On Sun, Apr 15, 2012 at 4:49 PM, Terry Reedy <tjreedy at udel.edu> wrote:
> On 4/15/2012 12:16 PM, Ian Kelly wrote:
>>
>> On Sat, Apr 14, 2012 at 8:57 PM, Shmuel  Metz
>> <spamtrap at library.lspace.org.invalid>  wrote:
>>>
>>> In<87aa2iz3l1.fsf at kuiper.lan.informatimago.com>, on 04/11/2012
>>>   at 05:32 PM, "Pascal J. Bourguignon"<pjb at informatimago.com>  said:
>>>
>>>> You're confused. C doesn't have arrays.  Lisp has arrays. C only has
>>>> vectors
>>>
>>>
>>> Neither C nor any other programming language has vectors ;-)
>>
>>
>> AFAIK, C++ nomenclature notwithstanding, a vector is just an array
>> with only one or indices, so all languages that have arrays have
>> vectors.
>
>
> Vectors are magnitude with direction, often represented by 1-d array of
> projections on coordinate axes. If a = 1,2,3 and b = 3,2,1 are
> (mathematical) vectors, then a+b = 4,4,4; 2*a = 2,4,6; and a*b = (3+4+3) =
> 10.

I'm referring to the programming usage, not the mathematical usage.
See definition #4 at dictionary.com, or definition #8 at wiktionary.



More information about the Python-list mailing list