diff -r 55342d3c9d25 -r 7c4855fb8e5f advanced-features-functions/quickref.tex --- a/advanced-features-functions/quickref.tex Mon Oct 11 01:25:45 2010 +0530 +++ b/advanced-features-functions/quickref.tex Mon Oct 11 11:40:04 2010 +0530 @@ -1,8 +1,8 @@ -Creating a linear array:\\ -{\ex \lstinline| x = linspace(0, 2*pi, 50)|} +\textbf{Advanced features of functions} + +Arguments of functions can have default arguments. -Plotting two variables:\\ -{\ex \lstinline| plot(x, sin(x))|} +All arguments with default arguments are at the end of the definition. -Plotting two lists of equal length x, y:\\ -{\ex \lstinline| plot(x, y)|} +Functions can be called with keyword arguments. All the keyword +arguments should be at the end of the argument list.