monomial: monomial

View source: R/polynomial.R

monomialR Documentation

monomial

Description

Creates a polynomial of the form c*x^d.

Usage

monomial(degree = 1, coefficient = 1)

Arguments

degree

integer: degree of the polynomial (default: 1)

coefficient

numeric: coefficient of the polynomial (default: 1)

Value

a poylnomial

Examples

monomial()     # equivalent to polynomial()
monomial(3)    # x^3
monomial(3, 2) # 2*x^3

sigbertklinke/exams2moodle documentation built on July 6, 2023, 3:26 p.m.