put: Substitute a value for a variable

putR Documentation

Substitute a value for a variable

Description

Substitute a value for a variable and return a multipol of arity d-1

Usage

put(a, i, value, keep = TRUE)

Arguments

a

multipol

i

Dimension to substitute

value

value to substitute for x[i]

keep

Boolean with default TRUE meaning to retain singleton dimensions and FALSE meaning to drop them

Author(s)

Robin K. S. Hankin

See Also

deriv.multipol

Examples


a <- as.multipol(matrix(1:12,3,4))
put(a,1,pi)
put(a,2,pi)

b <- as.multipol(array(1:12,c(3,2,3)))

put(b,2,pi,TRUE)
put(b,2,pi,FALSE)

multipol documentation built on Aug. 21, 2023, 9:10 a.m.