Question: Subtracting a scalar from each value in a List

Good Evening Everybody,

Would anybody show me how to subtract a scalar from each value in a list and output the results as list. Below is the problem am trying to solve, transforming the coordinate of the list to the origin (C.G). My goal is to output w =[ .....] and z = [.....]

 #msub(mi("x"),mi("coord")) := [0., 2., 8., 10., 5., 5., 7.5, 7.5, 2.5, 2.5, 

5.0, 5.0, 0]
#msub(mi("y"),mi("coord")) := [0., 10.0, 10.0, 0., 0., 2.0, 2.0, 3.0, 3.0,

2.0, 2.0, 0., 0.]
#msub(mi("x"),mi("bar")) := 4.722
#msub(mi("y"),mi("bar")) := 5.0
w := [op(#msub(mi("x"),mi("coord"))) - #msub(mi("y"),mi("bar"))]
z := #msub(mi("y"),mi("coord")) - #msub(mi("x"),mi("bar"))
 

Regards,

Please Wait...