powered by
Substitute symbol for value
subs(s, x, v)
Expression
Name of symbol (character)
Value for x
x
subs_vec(), subs_lst()
subs_vec()
subs_lst()
if (has_sympy()) { x <- symbol('x') e <- 2*x^2 e subs(e, "x", "2") y <- as_sym("2") subs(e, "x", y) }
Run the code above in your browser using DataLab