UNSW   Faculty of Engineering PRINT VERSION SITE MAP  
cse | School of Computer Science and Engineering (CRICOS Provider No. 00098G)
    #About CSE     #Undergraduate Study     #Postgraduate Study     #Timetables & Courses     #Research & Publications     #People & Work Units     #Help & Resources     #News & Events     #High School Portal

Last updated 28.09.06

PREV UP NEXT GNU Emacs Calc 2.02 Manual

10.8: Reducing and Mapping Vectors

The commands in this section allow for more general operations on the elements of vectors.

The simplest of these operations is V A (calc-apply) [apply], which applies a given operator to the elements of a vector. For example, applying the hypothetical function f to the vector `[1, 2, 3]' would produce the function call `f(1, 2, 3)'. Applying the + function to the vector `[a, b]' gives `a + b'. Applying + to the vector `[a, b, c]' is an error, since the + function expects exactly two arguments.

While V A is useful in some cases, you will usually find that either V R or V M, described below, is closer to what you want.

Top Of Page

 ###
Site maintained by webmistress@cse.unsw.edu.au
Please read the UNSW Copyright & Disclaimer Statement