<?xml version="1.0" encoding="utf-8" ?> <!-- for emacs: -*- coding: utf-8 -*- --> <!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head><title>vars(List) -- a sequence of variables</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_vars_lp__Ring_rp.html">next</a> | <a href="_vars_lp__General__Ordered__Monoid_rp.html">previous</a> | <a href="_vars_lp__Ring_rp.html">forward</a> | <a href="_vars_lp__General__Ordered__Monoid_rp.html">backward</a> | up | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div> </td> </tr> </table> <hr/> <div><h1>vars(List) -- a sequence of variables</h1> <div class="single"><h2>Synopsis</h2> <ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>vars L</tt></div> </dd></dl> </div> </li> <li><span>Function: <a href="_vars.html" title="variables">vars</a></span></li> <li><div class="single">Inputs:<ul><li><span><tt>L</tt>, <span>a <a href="___List.html">list</a></span>, , integer, or <a href="___Sequence.html">sequence</a> of integers</span></li> </ul> </div> </li> <li><div class="single">Outputs:<ul><li><span><span>a <a href="___Sequence.html">sequence</a></span>, which consists of <a href="___Symbol.html">symbols</a> which can be used as indeterminates</span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div>The <a href="___Symbol.html">symbols</a> returned are single letters, or the letter <tt>x</tt> or <tt>X</tt> followed by some digits. There is no limit on the size or sign of the integers in <tt>L</tt>.<table class="examples"><tr><td><pre>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</pre> </td></tr> <tr><td><pre>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</pre> </td></tr> <tr><td><pre>i3 : vars 52 o3 = x0 o3 : Symbol</pre> </td></tr> <tr><td><pre>i4 : vars(-9..-1) o4 = (X9, X8, X7, X6, X5, X4, X3, X2, X1) o4 : Sequence</pre> </td></tr> <tr><td><pre>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</pre> </td></tr> </table> </div> </div> <div class="single"><h2>See also</h2> <ul><li><span><a href="_...html" title="a binary operator, used for sequences of consecutive items">..</a> -- a binary operator, used for sequences of consecutive items</span></li> </ul> </div> </div> </body> </html>