library(mosaicCalc)
## Loading required package: mosaic
## Registered S3 method overwritten by 'mosaic':
## method from
## fortify.SpatialPolygonsDataFrame ggplot2
##
## The 'mosaic' package masks several functions from core packages in order to add
## additional features. The original behavior of these functions should not be affected by this.
##
## Attaching package: 'mosaic'
## The following objects are masked from 'package:dplyr':
##
## count, do, tally
## The following object is masked from 'package:Matrix':
##
## mean
## The following object is masked from 'package:ggplot2':
##
## stat
## The following objects are masked from 'package:stats':
##
## binom.test, cor, cor.test, cov, fivenum, IQR, median, prop.test,
## quantile, sd, t.test, var
## The following objects are masked from 'package:base':
##
## max, mean, min, prod, range, sample, sum
## Loading required package: mosaicCore
##
## Attaching package: 'mosaicCore'
## The following objects are masked from 'package:dplyr':
##
## count, tally
##
## Attaching package: 'mosaicCalc'
## The following object is masked from 'package:stats':
##
## D
slice_plot(
90 - 80*exp(-.3*t) ~ t,
domain(t = 0:20) )

contour_plot(
sin(2*pi*t/10)*exp(-.2*x) ~ t & x,
domain(t = range(0,10), x = range(0,10)))

contour_plot(
sin(2*pi*t/10)*exp(-.4*x) ~ t & x,
domain(t=0:20, x=0:10))

interactive_plot(
sin(4*pi*t/10)*exp(-.6*x) ~ t & x,
domain(t = 0:20, x = 0:10))
g <- makeFun(
sin(5*pi*t/10)*exp(-.2*x) ~ t & x)
contour_plot(
g(t, x) ~ t + x,
domain(t=0:5, x=0:15))

g(x = 2, t = 5)
## [1] 0.67032
g(2, 5)
## [1] 4.505075e-17
g(t = 2, x = 5)
## [1] 4.505075e-17