Learn R Programming

mosaic (version 0.3-13)

print.function: Printing Calculus Functions

Description

Printing Calculus Functions

Usage

## S3 method for class 'function':
print(x, useSource = TRUE,
    default = FALSE, ...)

Arguments

x
the function to be printed
default
use the standard function printing methods
useSource
passed along to the standard function printing methods
...
additional arguments

Value

  • nothing

Details

The mosaic calculus operators such as D and antiD and linearModel sometimes create functions with an obscure numerical method as the internal contents. This print method detects such functions (through their kind attribute) and provides a more friendly display

Examples

Run this code
F <- antiD(sin(x^2)~x)
F
print(F)
print(F, default=TRUE)

Run the code above in your browser using DataLab