Substitute a value for a variable

Description

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

Usage

1
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

1
2
3
4
5
6
7
8
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)