- This web page describes an activity within the Department of Mathematics at Ohio University, but is not an official university web page.
- If you have difficulty accessing these materials due to visual impairment, please email me at mohlenka@ohio.edu; an alternative format may be available.

# Sage resources for Calculus

Hit "Evaluate" to see the results of each computation. You can
edit the contents of a cell to do your own computations.

- There is a lot of
sage
documentation,
but it may be a challenge to find
what you seek.
- There are sage apps for mobile devices. Search for "sagemath".
- If you want to make your own web pages with sage cells, see the instructions.

### Calculus Topics

### Pre-Calculus: Algebra, Plotting, ...

You can do arithmetic.

You can multiply out.

You can factor.

You can (try to) solve equations, and use show() to ask for
pretty formatting.

Here is an example of plotting. You can use sin(x), cos(x),
log(x), exp(x), etc. Powers are done as x^2 or x**2. Use
parentheses and * for multiplication. The second argument is the
interval to plot over.

Here is one that is discontinuous at 0. Try zooming in by
changing the interval to (-0.1,0.1) etc.

You can plot piecewise defined functions. (At the breakpoints
f evaluates to the average of its two sides, which is not usually
what you want.) By default, only the results of the last command are
printed; if you want more, then explicitly say to print them.

Martin J. Mohlenkamp
Last modified: Thu Jul 30 16:45:57 EDT 2015