Many of the MATLAB scripts and functions here were originally developed to support an undergraduate course in "applied" calculus. Make sure you download both the .p and .m files. You can use the function or script with only the .p file, but you'll need the .m file for the associated help. For example, if you download RiemannSumsF.p you can use the RiemannSumsF function, provided you know how to use it. To read how to use it, however, you'll need RiemannSumsF.m. Once you've downloaded RiemannSumsF.m, you can enter help RiemannSumsF in the command window to read instructions on how to use the RiemannSumsF function.
Files  Description 
Function: This function takes its function handle input, and if the function handle is an anonymous function (i.e., a formula as shown above), the dots before arithmetic operations (that vectorize the operations) and the @ are removed, parentheses () enclosing exponents are converted to braces {}, and * for multiplication is converted to \cdot. The resulting returned value of f_of_x is a string suitable for LaTeX formatting of objects in Figure Windows (e.g., titles). One limitation is that named functions (e.g., sin, cos, log, etc. are not converted to LaTeX format.) So, for example, cos is not converted to \cos and log is not converted to \ln, etc.  
Script: Used to demonstrate the concept of limit by estimating the limit of a
usersupplied function as x approaches some value a, which is also
supplied by the user.
lim_{x>a} f(x) The user must supply the xvalues taken closer and closer to a. The demonstration produces a graph showing the estimates and produces a table. Prerequisite: function2LaTeXstring 

Function: Used to demonstrate the concept of limit by estimating the limit of a
usersupplied function as x approaches some value a, which is also
supplied by the user.
lim_{x>a} f(x) Prerequisite: function2LaTeXstring 

Function: Another function used to demonstrate the concept of limit by estimating the limit of a
usersupplied function as x approaches some value a, which is also
supplied by the user.
lim_{x>a} f(x)
Prerequisite: function2LaTeXstring 

Function: Yet another function used to demonstrate the concept of limit by estimating the limit of a
usersupplied function as x approaches some value a, which is also
supplied by the user.
lim_{x>a} f(x)
Prerequisite: function2LaTeXstring 

Function: Used to demonstrates Riemann sums (left, midpoint, right, lower, or upper, depending on userinput). A table of approximations and related graphs showing the rectangles under the curve are generated.  
Function: Used to demonstrate that the limit of a secant line slope lim_{h >0} (f(a+h)  f(a))/h produces the slope of the tangent line to y=f(x) at x=a. A sequence of graphs of secant lines is generated in a manner such that the secant lines approach the tangent line. Prerequisite: function2LaTeXstring 
This work is licensed under a Creative Commons AttributionNonCommercialShareAlike 4.0 License.
.