Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 7ebd25ac536d248d499a3ce2acda963a > files > 5977

Macaulay2-1.3.1-8.fc15.i686.rpm

<?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>RemoteObject -- The class of all remote SCSCP objects</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="___S__C__S__C__P__Connection.html">next</a> | <a href="_new__Connection.html">previous</a> | <a href="___S__C__S__C__P__Connection.html">forward</a> | <a href="_new__Connection.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>RemoteObject -- The class of all remote SCSCP objects</h1>
<div class="single"><h2>Description</h2>
<div>As an example, we store three polynomials on a remote server, compute their product both locally and remotely, and then ask the remote server whether the results are equal. Note that &lt;== and &lt;=== may be used without their first argument if no confusion can arise about the SCSCP server where the computation should take place.<table class="examples"><tr><td><pre>
i1 : QQ[x];

i2 : p1 = x^2+1; p2 = x^3-1; p3 = x+17;

i5 : GAP = newConnection "127.0.0.1:26135";

i6 : gp1 = GAP &lt;=== p1

o6 = &lt;&lt; Remote GAP object >>

o6 : RemoteObject

i7 : gp2 = GAP &lt;=== p2; gp3 = GAP &lt;=== p3;

i9 : gp = gp1*gp2*gp3

o9 = &lt;&lt; Remote GAP object >>

o9 : RemoteObject

i10 : p = p1*p2*p3;

i11 : &lt;== (gp == p)

o11 = true

i12 : close GAP

i13 : </pre>
</td></tr>
</table>
We create matrices in Macaulay2 and compute the order of the group they generate in GAP<table class="examples"><tr><td><pre>
i1 : m1 = id_(QQ^10)^{1,6,2,7,3,8,4,9,5,0}

o1 = | 0 1 0 0 0 0 0 0 0 0 |
     | 0 0 0 0 0 0 1 0 0 0 |
     | 0 0 1 0 0 0 0 0 0 0 |
     | 0 0 0 0 0 0 0 1 0 0 |
     | 0 0 0 1 0 0 0 0 0 0 |
     | 0 0 0 0 0 0 0 0 1 0 |
     | 0 0 0 0 1 0 0 0 0 0 |
     | 0 0 0 0 0 0 0 0 0 1 |
     | 0 0 0 0 0 1 0 0 0 0 |
     | 1 0 0 0 0 0 0 0 0 0 |

              10        10
o1 : Matrix QQ   &lt;--- QQ

i2 : m2 = id_(QQ^10)^{1,0,2,3,4,5,6,7,8,9}

o2 = | 0 1 0 0 0 0 0 0 0 0 |
     | 1 0 0 0 0 0 0 0 0 0 |
     | 0 0 1 0 0 0 0 0 0 0 |
     | 0 0 0 1 0 0 0 0 0 0 |
     | 0 0 0 0 1 0 0 0 0 0 |
     | 0 0 0 0 0 1 0 0 0 0 |
     | 0 0 0 0 0 0 1 0 0 0 |
     | 0 0 0 0 0 0 0 1 0 0 |
     | 0 0 0 0 0 0 0 0 1 0 |
     | 0 0 0 0 0 0 0 0 0 1 |

              10        10
o2 : Matrix QQ   &lt;--- QQ

i3 : GAP = newConnection "127.0.0.1:26135"

o3 = SCSCP Connection to GAP (4.dev) on 127.0.0.1:26135

o3 : SCSCPConnection

i4 : G = GAP &lt;=== matrixGroup({m1,m2})

o4 = &lt;&lt; Remote GAP object >>

o4 : RemoteObject

i5 : &lt;== size G

o5 = 10080

i6 : close GAP

i7 : </pre>
</td></tr>
</table>
</div>
</div>
<div class="single"><h2>See also</h2>
<ul><li><span><a href="_new__Connection.html" title="Create a connection to an SCSCP server">newConnection</a> -- Create a connection to an SCSCP server</span></li>
<li><span><a href="___Manipulator_sp__S__C__S__C__P__Connection.html" title="Close an SCSCP connection">Manipulator SCSCPConnection</a> -- Close an SCSCP connection</span></li>
<li><span><a href="___S__C__S__C__P__Connection_sp_lt_eq_eq_sp__Thing.html" title="Execute computations using SCSCP">SCSCPConnection Thing</a> -- Execute computations using SCSCP</span></li>
</ul>
</div>
<div class="waystouse"/>
<div class="waystouse"><h2>For the programmer</h2>
<p>The object <a href="___Remote__Object.html" title="The class of all remote SCSCP objects">RemoteObject</a> is <span>a <a href="../../Macaulay2Doc/html/___Type.html">type</a></span>, with ancestor classes <tt>XMLnode</tt> (missing documentation<!-- tag: XMLnode -->) &lt; <a href="../../Macaulay2Doc/html/___Mutable__Hash__Table.html" title="the class of all mutable hash tables">MutableHashTable</a> &lt; <a href="../../Macaulay2Doc/html/___Hash__Table.html" title="the class of all hash tables">HashTable</a> &lt; <a href="../../Macaulay2Doc/html/___Thing.html" title="the class of all things">Thing</a>.</p>
</div>
</div>
</body>
</html>