Macaulay2 » Documentation
Packages » Macaulay2Doc :: vars(List)
next | previous | forward | backward | up | index | toc

vars(List) -- a sequence of variables

Synopsis

Description

The symbols returned are single letters, or the letter x or X followed by some digits. There is no limit on the size or sign of the integers in L.
i1 : vars{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25}

o1 = {a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x,
     ------------------------------------------------------------------------
     y, z}

o1 : List
i2 : vars(26..51)

o2 = (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X,
     ------------------------------------------------------------------------
     Y, Z)

o2 : Sequence
i3 : vars 52

o3 = x0

o3 : Symbol
i4 : vars(-9..-1)

o4 = (X9, X8, X7, X6, X5, X4, X3, X2, X1)

o4 : Sequence
i5 : vars(3 .. 9, 33 .. 35, 1000 .. 1002, -100 .. -98)

o5 = (d, e, f, g, h, i, j, H, I, J, x948, x949, x950, X100, X99, X98)

o5 : Sequence

See also

Ways to use this method: