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)

monom(degree = 1, coefficient = 1)

Arguments

degree

integer: degree of the polynomial (default: 1)

coefficient

numeric: coefficient of the polynomial (default: 1)

Value

A polynomial

Examples

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

exams.forge documentation built on Sept. 11, 2024, 5:32 p.m.