diff options
author | Puneeth Chaganti | 2010-10-11 11:40:04 +0530 |
---|---|---|
committer | Puneeth Chaganti | 2010-10-11 11:40:04 +0530 |
commit | 98aafc8888970c0dc6da22cfb057c103334065ed (patch) | |
tree | e5e1b2b8f0255a378f8202668bc182592c4dc1f4 /advanced-features-functions | |
parent | f09d82f3c8f5a84ece5a42412e31cf1c71b89ea9 (diff) | |
download | st-scripts-98aafc8888970c0dc6da22cfb057c103334065ed.tar.gz st-scripts-98aafc8888970c0dc6da22cfb057c103334065ed.tar.bz2 st-scripts-98aafc8888970c0dc6da22cfb057c103334065ed.zip |
Quickrefs
Diffstat (limited to 'advanced-features-functions')
-rw-r--r-- | advanced-features-functions/quickref.tex | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/advanced-features-functions/quickref.tex b/advanced-features-functions/quickref.tex index b26d168..160370e 100644 --- a/advanced-features-functions/quickref.tex +++ b/advanced-features-functions/quickref.tex @@ -1,8 +1,8 @@ -Creating a linear array:\\ -{\ex \lstinline| x = linspace(0, 2*pi, 50)|} +\textbf{Advanced features of functions} -Plotting two variables:\\ -{\ex \lstinline| plot(x, sin(x))|} +Arguments of functions can have default arguments. -Plotting two lists of equal length x, y:\\ -{\ex \lstinline| plot(x, y)|} +All arguments with default arguments are at the end of the definition. + +Functions can be called with keyword arguments. All the keyword +arguments should be at the end of the argument list. |