weight
.add(
w
)
A weight which denotes the sum of both weights.
import vcsn w1 = vcsn.Z.weight('3') w2 = vcsn.Z.weight('-7') w1.add(w2)
−4-4−4
w3 = vcsn.B.weight('1') w3 + w3
⊤\top⊤
w4 = vcsn.Q.weight('5/12') w5 = vcsn.Q.weight('4/3') w4 + w5
74\frac{7}{4}47