Lists 8-5
A list can be used to input several values for certain functions.
(Other chapters and Appendix A state when a list is valid.)
The function is evaluated for each element in the list, and a
list is returned.
¦If a list is used with a function, the function must be valid
for every element in the list.
)This returns an error because 1 is
divided by 0.
¦If two lists are used with a two-argument function, the
lengths of the lists must be the same. The answer is a list
in which each element is calculated by evaluating the
function using the corresponding elements in the lists.
¦If a list and a value are used with a two-argument function,
the value is used with each element in the list.
Notes about
Using Math
Functions with
Lists