delzero: Delete the first zero in the output remainder of 'polydiv'

View source: R/delzero.R

delzeroR Documentation

Delete the first zero in the output remainder of 'polydiv'

Description

The output remainder of polydiv(x,y)[2] from the package 'pracma' may contain a zero in the first place which is not needed for text presentation. The function will modify the output by deleting the first zero, if any.

Usage

delzero(x)

Arguments

x

a list of numbers whose first entry may be zero or close to zero with absolute value less than or equal to 1e-10.

Value

The function truncates the first zero entry of the list.

Examples

x <- c(0,sample(c((-10):10),5))
delzero(x)

Tex4exams documentation built on May 31, 2023, 8:04 p.m.

Related to delzero in Tex4exams...