Learn R Programming

exams.forge (version 1.0.10)

monomial: Monomial

Description

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

Usage

monomial(degree = 1, coefficient = 1)

monom(degree = 1, coefficient = 1)

Value

A polynomial

Arguments

degree

integer: degree of the polynomial (default: 1)

coefficient

numeric: coefficient of the polynomial (default: 1)

Examples

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

Run the code above in your browser using DataLab