PageRenderTime 40ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/maxima-5.27.0/doc/info/maxima_66.html

#
HTML | 251 lines | 110 code | 17 blank | 124 comment | 0 complexity | 130b6144f0a94de9b6425739d5a0514a MD5 | raw file
Possible License(s): GPL-2.0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
  2. <html>
  3. <!-- Created on April, 4 2012 by texi2html 1.76 -->
  4. <!--
  5. Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
  6. Karl Berry <karl@freefriends.org>
  7. Olaf Bachmann <obachman@mathematik.uni-kl.de>
  8. and many others.
  9. Maintained by: Many creative people <dev@texi2html.cvshome.org>
  10. Send bugs and suggestions to <users@texi2html.cvshome.org>
  11. -->
  12. <head>
  13. <title>Maxima 5.27.0 Manual: 66. makeOrders</title>
  14. <meta name="description" content="Maxima 5.27.0 Manual: 66. makeOrders">
  15. <meta name="keywords" content="Maxima 5.27.0 Manual: 66. makeOrders">
  16. <meta name="resource-type" content="document">
  17. <meta name="distribution" content="global">
  18. <meta name="Generator" content="texi2html 1.76">
  19. <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
  20. <style type="text/css">
  21. <!--
  22. a.summary-letter {text-decoration: none}
  23. pre.display {font-family: serif}
  24. pre.format {font-family: serif}
  25. pre.menu-comment {font-family: serif}
  26. pre.menu-preformatted {font-family: serif}
  27. pre.smalldisplay {font-family: serif; font-size: smaller}
  28. pre.smallexample {font-size: smaller}
  29. pre.smallformat {font-family: serif; font-size: smaller}
  30. pre.smalllisp {font-size: smaller}
  31. span.sansserif {font-family:sans-serif; font-weight:normal;}
  32. ul.toc {list-style: none}
  33. body
  34. {
  35. color: black;
  36. background: white;
  37. margin-left: 8%;
  38. margin-right: 13%;
  39. }
  40. h1
  41. {
  42. margin-left: +8%;
  43. font-size: 150%;
  44. font-family: sans-serif
  45. }
  46. h2
  47. {
  48. font-size: 125%;
  49. font-family: sans-serif
  50. }
  51. h3
  52. {
  53. font-size: 100%;
  54. font-family: sans-serif
  55. }
  56. h2,h3,h4,h5,h6 { margin-left: +4%; }
  57. div.textbox
  58. {
  59. border: solid;
  60. border-width: thin;
  61. /* width: 100%; */
  62. padding-top: 1em;
  63. padding-bottom: 1em;
  64. padding-left: 2em;
  65. padding-right: 2em
  66. }
  67. div.titlebox
  68. {
  69. border: none;
  70. padding-top: 1em;
  71. padding-bottom: 1em;
  72. padding-left: 2em;
  73. padding-right: 2em;
  74. background: rgb(200,255,255);
  75. font-family: sans-serif
  76. }
  77. div.synopsisbox
  78. {
  79. border: none;
  80. padding-top: 1em;
  81. padding-bottom: 1em;
  82. padding-left: 2em;
  83. padding-right: 2em;
  84. background: rgb(255,220,255);
  85. /*background: rgb(200,255,255); */
  86. /* font-family: fixed */
  87. }
  88. pre.example
  89. {
  90. border: 1px solid gray;
  91. padding-top: 1em;
  92. padding-bottom: 1em;
  93. padding-left: 1em;
  94. padding-right: 1em;
  95. /* background: rgb(247,242,180); */ /* kind of sandy */
  96. /* background: rgb(200,255,255); */ /* sky blue */
  97. background-color: #F1F5F9; /* light blue-gray */
  98. /* font-family: "Lucida Console", monospace */
  99. }
  100. div.spacerbox
  101. {
  102. border: none;
  103. padding-top: 2em;
  104. padding-bottom: 2em
  105. }
  106. div.image
  107. {
  108. margin: 0;
  109. padding: 1em;
  110. text-align: center;
  111. }
  112. div.categorybox
  113. {
  114. border: 1px solid gray;
  115. padding-top: 0px;
  116. padding-bottom: 0px;
  117. padding-left: 1em;
  118. padding-right: 1em;
  119. background: rgb(247,242,220);
  120. }
  121. -->
  122. </style>
  123. <link rel="icon" href="http://maxima.sourceforge.net/favicon.ico"/>
  124. </head>
  125. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  126. <a name="makeOrders"></a>
  127. <a name="SEC310"></a>
  128. <table cellpadding="1" cellspacing="1" border="0">
  129. <tr><td valign="middle" align="left">[<a href="maxima_65.html#SEC309" title="Previous section in reading order"> &lt; </a>]</td>
  130. <td valign="middle" align="left">[<a href="#SEC311" title="Next section in reading order"> &gt; </a>]</td>
  131. <td valign="middle" align="left"> &nbsp; </td>
  132. <td valign="middle" align="left">[<a href="maxima_65.html#SEC307" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
  133. <td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Up section"> Up </a>]</td>
  134. <td valign="middle" align="left">[<a href="maxima_67.html#SEC312" title="Next chapter"> &gt;&gt; </a>]</td>
  135. <td valign="middle" align="left"> &nbsp; </td>
  136. <td valign="middle" align="left"> &nbsp; </td>
  137. <td valign="middle" align="left"> &nbsp; </td>
  138. <td valign="middle" align="left"> &nbsp; </td>
  139. <td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
  140. <td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
  141. <td valign="middle" align="left">[<a href="maxima_83.html#SEC380" title="Index">Index</a>]</td>
  142. <td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
  143. </tr></table>
  144. <h1 class="chapter"> 66. makeOrders </h1>
  145. <table class="menu" border="0" cellspacing="0">
  146. <tr><td align="left" valign="top"><a href="#SEC311">66.1 Functions and Variables for makeOrders</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
  147. </td></tr>
  148. </table>
  149. <p><a name="Item_003a-Functions-and-Variables-for-makeOrders"></a>
  150. </p><hr size="6">
  151. <a name="Functions-and-Variables-for-makeOrders"></a>
  152. <a name="SEC311"></a>
  153. <table cellpadding="1" cellspacing="1" border="0">
  154. <tr><td valign="middle" align="left">[<a href="#SEC310" title="Previous section in reading order"> &lt; </a>]</td>
  155. <td valign="middle" align="left">[<a href="maxima_67.html#SEC312" title="Next section in reading order"> &gt; </a>]</td>
  156. <td valign="middle" align="left"> &nbsp; </td>
  157. <td valign="middle" align="left">[<a href="#SEC310" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
  158. <td valign="middle" align="left">[<a href="#SEC310" title="Up section"> Up </a>]</td>
  159. <td valign="middle" align="left">[<a href="maxima_67.html#SEC312" title="Next chapter"> &gt;&gt; </a>]</td>
  160. <td valign="middle" align="left"> &nbsp; </td>
  161. <td valign="middle" align="left"> &nbsp; </td>
  162. <td valign="middle" align="left"> &nbsp; </td>
  163. <td valign="middle" align="left"> &nbsp; </td>
  164. <td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
  165. <td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
  166. <td valign="middle" align="left">[<a href="maxima_83.html#SEC380" title="Index">Index</a>]</td>
  167. <td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
  168. </tr></table>
  169. <h2 class="section"> 66.1 Functions and Variables for makeOrders </h2>
  170. <dl>
  171. <dt><u>Function:</u> <b>makeOrders</b><i> (<var>indvarlist</var>,<var>orderlist</var>)</i>
  172. <a name="IDX2518"></a>
  173. </dt>
  174. <dd><p>Returns a list of all powers for a polynomial up to and including the arguments.
  175. </p>
  176. <pre class="example">(%i1) load(&quot;makeOrders&quot;)$
  177. (%i2) makeOrders([a,b],[2,3]);
  178. (%o2) [[0, 0], [0, 1], [0, 2], [0, 3], [1, 0], [1, 1],
  179. [1, 2], [1, 3], [2, 0], [2, 1], [2, 2], [2, 3]]
  180. (%i3) expand((1+a+a^2)*(1+b+b^2+b^3));
  181. 2 3 3 3 2 2 2 2 2
  182. (%o3) a b + a b + b + a b + a b + b + a b + a b
  183. 2
  184. + b + a + a + 1
  185. </pre><p>where <code>[0, 1]</code> is associated with the term <em>b</em> and <code>[2, 3]</code> with <em>a^2 b^3</em>.
  186. </p>
  187. <p>To use this function write first <code>load(&quot;makeOrders&quot;)</code>.
  188. </p>
  189. <div class=categorybox>
  190. <p>Categories:&nbsp;&nbsp;<a href="maxima_99.html#Category_003a-Polynomials">Polynomials</a>
  191. &middot;
  192. <a href="maxima_99.html#Category_003a-Share-packages">Share packages</a>
  193. &middot;
  194. <a href="maxima_99.html#Category_003a-Package-makeOrders">Package makeOrders</a>
  195. </p>
  196. </div>
  197. </dd></dl>
  198. <p><a name="Item_003a-mnewton"></a>
  199. </p><hr size="6">
  200. <table cellpadding="1" cellspacing="1" border="0">
  201. <tr><td valign="middle" align="left">[<a href="#SEC310" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
  202. <td valign="middle" align="left">[<a href="maxima_67.html#SEC312" title="Next chapter"> &gt;&gt; </a>]</td>
  203. <td valign="middle" align="left"> &nbsp; </td>
  204. <td valign="middle" align="left"> &nbsp; </td>
  205. <td valign="middle" align="left"> &nbsp; </td>
  206. <td valign="middle" align="left"> &nbsp; </td>
  207. <td valign="middle" align="left"> &nbsp; </td>
  208. <td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
  209. <td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
  210. <td valign="middle" align="left">[<a href="maxima_83.html#SEC380" title="Index">Index</a>]</td>
  211. <td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
  212. </tr></table>
  213. <p>
  214. <font size="-1">
  215. This document was generated on <i>April, 4 2012</i> using <a href="http://texi2html.cvshome.org/"><i>texi2html 1.76</i></a>.
  216. </font>
  217. <br>
  218. </p>
  219. </body>
  220. </html>