<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to TableUP</title><link>https://sourceforge.net/p/mathmaker/doc4dev/TableUP/</link><description>Recent changes to TableUP</description><atom:link href="https://sourceforge.net/p/mathmaker/doc4dev/TableUP/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 24 Feb 2014 20:48:38 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/mathmaker/doc4dev/TableUP/feed" rel="self" type="application/rss+xml"/><item><title>TableUP modified by Nicolas Hainaux</title><link>https://sourceforge.net/p/mathmaker/doc4dev/TableUP/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This is used to manipulate proportionnal Tables with uncomplete cells (UP stands for uncomplete and proportionnal).&lt;/p&gt;
&lt;p&gt;The main method is into_cross_product_equation() which needs an object being an unknown content of the Table_UP and which will create the CrossProductEquation that allows to calculate the unknown content. (For instance, into_cross_product_equation(Item('AB')) will create something like AB/4 = 5/7).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Possible args for __init__():&lt;/strong&gt;&lt;br /&gt;
nb|numericCalculable,   [nb|numericCalculable],   [None|(None|literalCalculable, None|literalCalculable)]&lt;/p&gt;
&lt;p&gt;The first argument is the coefficient,&lt;br /&gt;
the second argument is the first line of the Table&lt;br /&gt;
the third argument tells which cells should appear as empty. Each element of this list matches one column. For each element: if it's None or (None, None), then the column is complete; if it's (None, literalCalculable) then the cell of the first line is complete and the cell of the second line is unknown (and the literal Calculable will be displayed there); if it's (literalCalculable, None) then the cell of the first line is unknown (and the literal Calculable will be displayed there) and the second line is known; if it's (literalCalculable, literalCalculable) then both the cells of first and second lines are unknown (and won't be listed as calculable elements in cross_product_info).&lt;/p&gt;
&lt;p&gt;For instance, if you want to create this table:&lt;/p&gt;
&lt;p&gt;AB   | 20  | EF   |  15&lt;br /&gt;
40   | 80  | GH   |  KL&lt;/p&gt;
&lt;p&gt;then you have to write:&lt;br /&gt;
t = Table_UP(Item(4), [Item(10), Item(20), None, Item(15)], [('AB', None), None, ('EF', 'GH'), (None, 'KL')])&lt;/p&gt;
&lt;p&gt;The two last arguments must have the same length. One column at least must be complete (otherwise there would be no mean to fill the empty cells).&lt;/p&gt;
&lt;p&gt;__init__() will compute the second line from the first and the coefficient.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Fields:&lt;/strong&gt;&lt;br /&gt;
coeff: &lt;em&gt;(read-only)&lt;/em&gt; the coefficient of the Table&lt;br /&gt;
cross_product_info: &lt;em&gt;(read-only)&lt;/em&gt; is a dictionnary where the keys are the unknown contents (like "EF", "AB" etc.) and the data are tuples containing the numbers of columns allowing to calculate the unknown content thanks to a cross product. For instance, {'AB' : (0,1), 'KL' : (3,1)} means that 'KL' can be calculated using the columns number 3 and 1.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Debugging info:&lt;/strong&gt; no dbg_str() method, so far&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://mathmaker.sourceforge.net/participate/doc/classcore_1_1calculus_1_1Table__UP.html"&gt;Check Table_UP's complete doc&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="/p/mathmaker/doc4dev/Core%20Objects/"&gt;Back&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nicolas Hainaux</dc:creator><pubDate>Mon, 24 Feb 2014 20:48:38 -0000</pubDate><guid>https://sourceforge.net8f63588f7daaeae79b9395eef8ab2fbc11a29bde</guid></item></channel></rss>