Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 45895
Kernel: Python 3

weight.add(w)

weight + w

A weight which denotes the sum of both weights.

Examples

import vcsn w1 = vcsn.Z.weight('3') w2 = vcsn.Z.weight('-7') w1.add(w2)

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}