<?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>Function _ Thing -- attach the first argument to a function of two or more arguments</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_function_spdocumentation_sptemplate.html">next</a> | <a href="___Function_sp_at_at_sp__Function.html">previous</a> | <a href="_function_spdocumentation_sptemplate.html">forward</a> | <a href="___Function_sp_at_at_sp__Function.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>Function _ Thing -- attach the first argument to a function of two or more arguments</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>g = f_x</tt></div> </dd></dl> </div> </li> <li><span>Operator: <a href="__us.html" title="a binary operator, used for subscripting and access to elements">_</a></span></li> <li><div class="single">Inputs:<ul><li><span><tt>f</tt>, <span>a <a href="___Function.html">function</a></span>, a function of two or more arguments</span></li> <li><span><tt>x</tt>, <span>a <a href="___Thing.html">thing</a></span></span></li> </ul> </div> </li> <li><div class="single">Outputs:<ul><li><span><tt>g</tt>, <span>a <a href="___Function.html">function</a></span>, a new function with the property that <tt>g(y)</tt> returns the value of <tt>f(x,y)</tt>, that <tt>g(y,z)</tt> returns the value of <tt>f(x,y,z)</tt>, and so on.</span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div><p>This abbreviation allows us to save a bit of typing, and in some cases, agrees with standard mathematical notation.</p> <table class="examples"><tr><td><pre>i1 : R = ZZ[a .. i];</pre> </td></tr> <tr><td><pre>i2 : f = genericMatrix(R,a,3,3) o2 = | a d g | | b e h | | c f i | 3 3 o2 : Matrix R <--- R</pre> </td></tr> <tr><td><pre>i3 : exteriorPower(2,f) o3 = | -bd+ae -bg+ah -eg+dh | | -cd+af -cg+ai -fg+di | | -ce+bf -ch+bi -fh+ei | 3 3 o3 : Matrix R <--- R</pre> </td></tr> <tr><td><pre>i4 : exteriorPower_2 f o4 = | -bd+ae -bg+ah -eg+dh | | -cd+af -cg+ai -fg+di | | -ce+bf -ch+bi -fh+ei | 3 3 o4 : Matrix R <--- R</pre> </td></tr> <tr><td><pre>i5 : p = prepend_7 o5 = p o5 : FunctionClosure</pre> </td></tr> <tr><td><pre>i6 : p {8,9,10} o6 = {7, 8, 9, 10} o6 : List</pre> </td></tr> </table> </div> </div> </div> </body> </html>