Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 17. Functions

17. Functions

Introduction 511

17.1 User-Defined Functions 512

17.1.1 Defining a Function 512 :=, SyntaxInformation, InverseFunction, Identity, etc.

17.1.2 Piecewise-Defined Functions 516 Piecewise, PiecewiseExpand

17.1.3 Implicit Functions 518 ContourPlot

17.1.4 Pure Functions and Scoping Constructs 520 Function, Module, With, Block

17.2 More about Functions 523

17.2.1 Tracing 523 Trace, On, Off

17.2.2 Debugging 524

17.2.3 Compiling 528 Compile

17.2.4 Attributes 530 Attributes, SetAttributes, ClearAttributes

17.3 Contexts and Packages 531

17.3.1 What Is a Context? 531 $ContextPath, $Context, Context, Contexts, Names

17.3.2 Forgetting to Load: Once Again 533

17.3.3 Writing a Package 535 BeginPackage, EndPackage, Begin, End, (* *)

17.3.4 Handling Options and Messages 538 Options, OptionsPattern, FilterRules, Message, etc.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint