multipol (version 1.0-7)

put: 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

Robin K. S. Hankin

See Also

deriv.multipol

Examples

Run this code

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)

Run the code above in your browser using DataLab