Jump to content

Talk:Scalar

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by PAR (talk | contribs) at 05:32, 8 July 2006 (Merge). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Scalars in computer programming

In computer programming, scalars are variables that can hold only one value at a time, as distinct from arrays which are variables that can hold many values at the same time. Some languages such as Pascal and Perl narrow this definition somewhat, but the underlying principal holds true.

That is of course a new concept of scalar that did not exist until the 20th century, and is still not what most people think of when they hear the word scalar. Perhaps another page could be titled scalar (computing). Michael Hardy 22:42, 16 Feb 2005 (UTC)

Hmmm. One could argue that the computer based definition above is simply an extension of the idea presented in - and corresponds closely to - the article's statement "In physics a scalar is a quantity that can be described by a single number", in contrast with the physics concept of a vector which intrinsically entails several values at the same time, viz. magnitude and direction. Hence we have vector vs. array.

I've just been going through a few disambiguations, and have found the need for a scalar (computing) page as well. I don't agree that the physical scalar is close enough to the concept behind scalar computer terms to be used. The mathematical scalar is closer (for me), but still doesn't fit well. At the moment, I'm not ready to build such a page, but perhaps at a later date, if there is more support for one. WhiteHatLurker 04:17, 11 June 2006 (UTC)[reply]

I don't know enough computer science to build that page either, but I'm going to be bold and make it anyway. It'll be better off as an independent stub than as a paragraph sitting here. --Smack (talk) 22:45, 14 June 2006 (UTC)[reply]

Discussion of scalars in physics

Several sections from this page have been moved to Talk:Scalar (physics).

Merge

There appear to be three articles on scalars, scalar (physics), scalar (mathematics) and scalar (computing), all talking about the same concept. They should be merged. Sigh. Cruft patrol is endless, isn't it? linas 03:41, 6 July 2006 (UTC)[reply]

I support the merger. It seems like a section should be added to the mathy article which discusses representations; a scalar (under some group, perhaps implicit) is an element of the trivial representation. That description seems like it would subsume any use of the term in physics, right? -lethe talk + 04:21, 6 July 2006 (UTC)[reply]
Partial support. The physics version and mathematics version are probably better merged, but the computing version would need greater care as it has little to do with the algebra of vector spaces. The articles on superscalar and scalar processors may give a feel for some of the ways the term has been used in computing. Perhaps the computing article should be merged with primitive type instead of scalar, though that's awkward for the processor classification usage. Ah well, as many words as mathematics has borrowed and redefined — and in multiple ways — we can't complain if computer science does the same. --KSmrqT 05:21, 6 July 2006 (UTC)[reply]
Yes, I could back off on scalar in computing; note however, the historical origin of this term is "opposite of vector", coming into use in the 70's when "vector processors" such as the the Cray were all the craze. linas 13:57, 6 July 2006 (UTC)[reply]
They were split some time ago from a common base - see the physics talk section. The idea is that the abstract mathematical form, the physical form and the (somewhat) in between form for computing were distinct enough to require separate pages. I'm not in favour of remerging these back into one. In fact there are more terms which are to be explained - more on vector vs scalar processing, scalar particles, and probably a lot of work on scalar fields as well. WhiteHatLurker 19:15, 6 July 2006 (UTC)[reply]
I do not find a discussion at talk:scalar (physics) about a split. Can you help me find it? -lethe talk + 19:55, 6 July 2006 (UTC)[reply]
I re-wrote scalar field (quantum field theory) from scratch, so that should no longer be an issue in this debate. linas 01:18, 7 July 2006 (UTC)[reply]
Linas - Okay, and I see your comments in the physics one relating to Lorentz Scalars. WhiteHatLurker 03:52, 7 July 2006 (UTC)[reply]
Lethe, the thing I misremember on the physics page was a reference to moving from the scalar page. I may have read too much into it. I don't have time at the moment to do much on this - I was drawn in by a desire to help on the disambiguation thing and that was a page or two at a time. I still feel the differences are there, but if the consensus is to merge the scalar pages, good luck. WhiteHatLurker 03:52, 7 July 2006 (UTC)[reply]
Oppose. The three scalars are, very confusingly, identical and different at once. A physical or computer scalar is, indeed, necessarily a mathematical scalar (and, vice versa, a math scalar can be represented as a CS scalar). Furthermore, in all three cases, 'scalar' is the antonym of 'vector.'
However, vectors in math, physics, and CS are not the same! For instance, in mathematics, a function is a vector (it is a member of a vector space). However, neither physics nor computer science consider it a vector. Because the three kinds of scalars have three different antonyms, I believe they should be kept separate. --Smack (talk) 04:45, 7 July 2006 (UTC)[reply]
I'm not sure. The fact that functions are vectors is a bit abstract and far away from this discussion, where the relevant fact is that vectors in CS, physics, and math (and including functions) are lists of numbers, whereas scalars are single numbers. It takes some abstract thinking perhaps to think of a function as a list of numbers perhaps, but any CS student who's ever studied a function by looking at a table of its values will get it right away. Vectors are all the same thing. Scalars are all the same thing. Separate articles obfuscate this fact, which rather needs further explanation and clarification. -lethe talk + 05:03, 7 July 2006 (UTC)[reply]
Functions are vectors in a very concrete way, which has nothing to do with lists of numbers. Vector space gives eight properties that define a vector space, and Examples of vector spaces shows that functions fit right in. This is straightforward math, not trickery with tables of values. I learned it in an introductory course on linear algebra. --Smack (talk) 16:16, 7 July 2006 (UTC)[reply]
Being a vector by virtue of satisfying algebraic axioms is exactly what I mean when I say "in an abstract way". So you confirm the abstract way of thinking. But I want to reiterate the concrete fact that functions are lists of numbers, which is why the abstract fact that they satisfy some axioms is true. This big difference about vectors in mathematics being different that you mention as a reason not to merge is simply not true. Well, OK, it's only true in the most abstract sense, where a vector is regarded purely as an atomic element of a set satisfying axioms, and the vector space is infinite-dimensional, and the axiom of choice is not assumed. In that case, you can make an argument that vectors are not lists of numbers. But as I say, such abstract chicanery is quite far from this article, which still needs to be merged. I would really like for you to consider my argument and come around to my way of thinking. Do you really have a reason to believe that vector spaces made of functions are somehow different from vector spaces made of arrays of numbers? Please tell me what it is. -lethe talk + 16:30, 7 July 2006 (UTC)[reply]
Smack is right. Vectors are not lists of numbers, they are things that obey the eight properties. Lists of numbers may behave as vectors if the proper operations on those lists are defined. Physical vectors in particular are not lists of numbers. They are entities which, once you pick your coordinate system, may be described as a weighted sum of the coordinate vectors. These weights (components) form a list of numbers, but they are not the vector. If you change your coordinate system, the list changes, but the vector does not. A physical scalar is an entity which does not change its value under a change of coordinate system. An element of a list of vector components is a single number, but it is not a physical scalar, because its value changes when the coordinate system is changed. I also agree that functions may be treated as vectors in a very concrete way, just as lists may be treated as vectors if the proper operations are defined. Again, their vector nature has nothing to do with lists. However, since functions are infinite dimensional vectors, they are more abstract. It is "chicanery" to imply that the subset of vectors called lists are any more than one of many examples. PAR 16:50, 7 July 2006 (UTC)[reply]
About physical vectors. They are not just elements of a vector space, they are elements of a representation of some group. Thus of course you have to pay attention to how they transform. I've already mentioned how that needs to be handled. We're talking about vectors in a vector space now (what some splitter decided to call "mathematical vectors"). There is a theorem that every vector space has a basis. Thus every vector is a list of numbers. Thus, not only is it not chicanery to say that the "subset of vectors called lists" is more than an example. It's actually a theorem (as soon as I replace the notion of "subset of vectors" with a statement with meaning). I don't really appreciate having my argument referred to as "chicanery" either. It seems slightly uncivil. Just because I referred to my own arguments that way doesn't mean I want you to do it too.
Let me summarize and reiterate. I certainly agree that everyone things of vectors differently: mathematicians consider abstract elements satisfying axioms, physicists consider a list of numbers which transform in some way under coordinate changes, computer scientists think of simple lists of numbers or other scalar data. I think we all agree on that. But where we differ is whether these ideas are somehow different. I argue that they are all the same idea. Having them all in the same article emphasizes their unity. I am a mergist, and I always think that articles than can be merged should be. There are benefits to splitting (emphasize the different ways of thinking, keep information relevant to a specific kind of reader), but I think the benefits of a merged article (the article makes it clear to the reader that a vector, in any sense, is a list of numbers (group actions are just a footnote)) are more than the benefits of a split article. -lethe talk + 19:38, 7 July 2006 (UTC)[reply]
Forget the chicanery remark, I don't mean any incivility.
You say "physicists consider a list of numbers which transform in some way under coordinate changes". This is wrong. Physicists consider a physical entity and some operations which form a vector space. They then choose a coordinate system and represent that vector by a list. If they change coordinate systems, they come up with a new list to represent the vector. But they should never confuse the list with the vector.
What you said and what I said are the same thing.
To condense the argument - An element of a list of physical vector components is not a scalar, since it changes with coordinate system. This points out clearly the fact that a vector is not the same as the list of its components, while at the same time addressing the topic of this article. Do you agree?
Regarding the merge, I have no opinion. I just don't want it done or not done on the basis of wrong arguments. PAR 00:34, 8 July 2006 (UTC)[reply]
An element of a list of physical vector components is not a scalar, since it changes with coordinate system yes, I agree if we're talking about group representations. A component of a vector of a nontrivial representation does not live in the trivial representation, so is not a scalar in the physicists' sense. However, a component of a vector is a scalar in the more general sense. This points out the fact that a vector in a representation is not a list of its components (you also need transformations). It does not change the fact that a vector in a vector space is a list of numbers. I will also point out that a component can be a scalar even in the physicists' sense. For example, in Kaluza-Klein theory, one of the components of the metric tensor is a scalar field. It is of course not a scalar under the full extra-dimensional Lorentz group, but it is a scalar under the 4 dimensional Lorentz group. The point is that as far as vectors are concerned, their components are scalars, and the vectors themselves are lists of numbers. Whether they live in appropriate representations depends very much on which group we're representing, as this example shows. -lethe talk + 04:05, 8 July 2006 (UTC)[reply]
Ok, I've stated my position as clearly as I can, and my suspicion is that you have too. I am willing to let the record of our conversation speak for itself. Again, I am neutral on the merge, but I will actively oppose any description of a physical vector being defined as simply a list of numbers, or a physical scalar as a single number unless there is an unfortunate consensus to the contrary. PAR 05:32, 8 July 2006 (UTC)[reply]
← Carriage return
User:Lethe claims that since any vector can be represented as a linear combination of basis vectors, it is actually a "list of numbers" (coordinates). Because I have never studied analysis, I have never seen this for myself, but there's enough information in the wiki to disprove this argument.
According to Vector space, coefficients must belong to a field. According to Field, we can have a field of functions. Thus, the "list of numbers" conception of a vector becomes a "list of functions." --Smack (talk) 01:08, 8 July 2006 (UTC)[reply]
Nothing in what you've said contradicts anything I've said, as far as I can see. So what's the point? Some sets of functions constitute fields. Vector spaces over those fields will be lists of elements of those fields. Is there any disagreement? -lethe talk + 04:05, 8 July 2006 (UTC)[reply]