Sharedsupport / 2015-03-30-093420-subs.sagewsOpen in CoCalc
Authors: Harald Schilly, ℏal Snyder, William A. Stein
License: GNU General Public License v3.0
Description: 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)