Last Updated 10/21/2022

Sage Essentials
Section 5: Functions: Defining, Evaluating and Graphing

Recall that we introduced functions in Section 1 and plotting graphs in Section 3. In this section, we look into the details on manipulating and graphing functions.

Manipulating Functions

Example 1

Once you have defined a function, SageMath will remember that function during your entire working session. If you want to overwrite the function with a new definition, you simply retype the definition.

For example, if you want to replace the function f( x )= x 2 +x+1  with cosx+1  , type:


← Previous Example Next Example →