Learn R Programming


title: "mosaicCalc: Calculus in R"

Purpose and design

The mosaicCalc package is designed to facilitate the use of R in statistics and calculus instruction by providing a number of functions that (a) make many common tasks fit into a common template, and (b) simplify some tasks that would otherwise be too complicated for beginners.

Installation

You install from CRAN using

install.packages("mosaicCalc")

or from github with

devtools::install_github("ProjectMOSAIC/mosaicCalc")

If you want to try out our developmental code (the beta branch), use

devtools::install_github("ProjectMOSAIC/mosaicCalc", ref="beta")

Updates to the master github repository are more frequent than CRAN updates. Our beta branch is where we implement bug fixes most quickly and develop new features. We try to keep it pretty stable, but there may be a few rough edges, missing documentation, etc. while things are in progress.

If you discover a problem with any version of the package, be sure to let us know so that we can address it. Post an issue on github or send email to Rpkgs@mosaic-web.org.

Project MOSAIC

Project MOSAIC is a community of educators working to develop a new way to introduce mathematics, statistics, computation and modeling to students in colleges and universities.

Our goal: Provide a broader approach to quantitative studies that provides better support for work in science and technology. The focus of the project is to tie together better diverse aspects of quantitative work that students in science, technology, and engineering will need in their professional lives, but which are today usually taught in isolation, if at all.

  • Modeling. The ability to create, manipulate and investigate useful and informative mathematical representations of a real-world situations.
  • Statistics. The analysis of variability that draws on our ability to quantify uncertainty and to draw logical inferences from observations and experiment.
  • Computation. The capacity to think algorithmically, to manage data on large scales, to visualize and interact with models, and to automate tasks for efficiency, accuracy, and reproducibility.
  • Calculus. The traditional mathematical entry point for college and university students and a subject that still has the potential to provide important insights to today's students.

The name MOSAIC reflects the first letters --- M, S, C, C --- of these important components of a quantitative education. Project MOSAIC is motivated by a vision of quantitative education as a mosaic where the basic materials come together to form a complete and compelling picture.

Find out more about Project MOSAIC at [http://www.mosaic-web.org].

Copy Link

Version

Install

install.packages('mosaicCalc')

Monthly Downloads

811

Version

0.6.4

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Daniel Kaplan

Last Published

July 26th, 2024

Functions in mosaicCalc (0.6.4)

Kepler

Kepler's calculation of the position of Mars
RI_tide

Tide levels from the US NOAA
UK_GDP

Gross Domestic Product of the United Kingdom over a millenium
M2014F

Mortality versus age for females in the US in 2014
EbolaAll

Case numbers in an Ebola outbreak in 2014
Boyle

Robert Boyle's pressure vs volume measurements
Effective_oxygen

Effective amount of oxygen available at different altitudes
CPUs

Characteristics of computer central processing unit chips over the decades
HDD_Minneapolis

Heating degree days in Minneapolis, Minnesota, USA
Engines

Characteristics of various internal combustion engines
Home_utilities

Gas and electricity usage by a home in St. Paul, MN
streamlines

Dynamical systems calculations and graphics
Runners

Running times
Fly_ball

Trajectory of a fly ball in baseball
Robot_stations

Waypoints on the path of a fictitious robot
create_num_antiD

Create a numerical anti-derivative function which can be called with one or many values of the w.r.t. input
box_set

Evenly spaced samples across a one- or two-dim domain
US_income

Income distribution data from the US in 2009
first_three_args

Handle the first three arguments of graphics functions
makeODE

Create a dynamics object for use in integrateODE() and the ODE graphics
Integrate

Integrate a function
numD

Numerical Derivatives
smoother

Create a smoothing function approximating a cloud of points
PE_fun1

Potential energy functions used as examples in MOSAIC Calculus.
Picket

Creates a "picket fence" of points for illustrating numerical integration
Planet_solar

Solar irradiance of the planets
Iterate

Iterate a function on an initial condition
SSA_2007

US Mortality table from 2007
Planets

NASA data on planets
Vowel_ee

Recordings of vowel sounds
df2matrix

Construct a model matrix from data as if by hand
surface_plot

Make an interactive plotly plot of a function of two variables
Zeros

Finds zeros of a function within a specified domain
Blob1

Shapes used in moment of inertia calculations
contour_plot

Contour plots of functions of two variables
argM

Find local extreme points
simpleYacasIntegrate

Interface to integration using Ryacas
slice_plot

Plot a function of a single variable
simplify_fun

Turn a 1-line function into an inline formula
inscribed_circle

Create a data frame for a circle marking the curvature of a function.
basis_sets

Basis sets for for function approximation
bounds

Specify a domain over which a function is to be graphed
inequality_constraint

Graphics for constraints
fitSpline

Find zeros of a function
gradient_plot

Plot a vector field
plotFun

Plot functions of one and two variables using lattice system
infer_RHS

Utilities for formulas and graphics arguments
qspliner

Create a quadratic spline (inefficiently)
is_in_domain

check whether a value is in a domain
integrateODE

Integrate ordinary differential equations
reexports

Objects exported from other packages
rfun

Generate a "natural looking" function of one or multiple variables
traj_plot_3D

Simple 3D plot of a trajectory
symbolicD

Symbolic Derivatives
unbound

Identifying unbound inputs to a function
vector_arg

convert a function with separate arguments into one with a single vector argument For use with optim.
vectors

Utilities for vector calculations
traj_plot

Plots a trajectory
Cello

Short recordings of a cello and a violin
D

Derivative and Anti-derivative operators
Body_fat

Measurements of body-fat percentage and related quantities
Aquaman

Box office from the movie Aquaman
Chirps

Cricket chirp rate and temperature
Covid_US

COVID data from the first half of the pandemic