CoCalc -- Collaborative Calculation in the Cloud
Sharedsupport / 2015-03-30-093420-subs.sagewsOpen in CoCalc

Examples for support purposes...

var("x,y")
t = (x,y)   # this is a tuple
tuple([a.subs(x=10,y=20) for a in t])
tuple([a.subs({x:10,y:20}) for a in t])
vector([x,y]).subs(x=10,y=20)  # this is a vector

(x, y) (10, 20) (10, 20) (10, 20)