Talk:Vector: Difference between revisions

m
Line 13:
:To reiterate Paddy's points: I think you should explicitly declare which "four basic operations" you had in mind. There are different concepts of "physical vector" and it's the job of the person specifying the task to present the important information about the domain of interest.
:Specifically, by examining the sample implementation you have provided, we can see five basic operations: add, negate, subtract, multiply, divide. Strictly speaking, your multiply and divide are mixed operations since you define them in terms of a vector and a scalar. Looking closer you are only working with 2-vectors, and yet physical vectors could easily be 3-vectors (and depending on the field of study other sorts of vectors are possible).
:Also, note that negate and either add or subtract could be defined in terms of the remaining operations.
:I hope this helps. --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 06:19, 22 March 2015 (UTC)
 
6,951

edits