Calc-50 programming and graphics

David M. Smith
Professor of Mathematics (Emeritus)
Loyola Marymount University
Los Angeles, CA

Here are some examples that use Calc-50 programming and graphics.

Program Fourier series using sum key and display with plot.
Fourier series

Analyse the rate of convergence of an infinite sum.
Arctan sum

Evaluate an infinite nested sequence of radicals.
Use the sum key as a loop control and the select key as an if statement
Nested radicals

Evaluate an infinite sum with only prime terms.
Define the prime counting function and use Aitken acceleration to coax more accuracy from a sum.
Prime sum

Derive a Guass quadrature integration rule.
Evaluate Legendre polynomials, and use combinations, derivatives, sums, equation solving.
Derive a Guass quadrature rule

Solve an equation where the function involves an integral.
The solve key calls a function which in turn calls the integrate function.
Solve an integral equation

Solve an ordinary differential equation and do a list plot of the solution.
The ode function is called from sum to make a list of points y(x(i)) and then plot the list.
Solve a differential equation

Use ode called from the solve function for a boundary value problem.
Define a function with a root that gives the solution to a boundary value problem.
Solve a boundary value problem

Estimate the value of a double sum.
Use the sum key with a function that also uses the sum key.
Make a table of partial sums and then extrapolate using a function that does a general
version the Aitken acceleration formula.
Double sum

Back to the main Calc-50 page