<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Signed</title><link>https://sourceforge.net/p/mathmaker/doc4dev/Signed/</link><description>Recent changes to Signed</description><atom:link href="https://sourceforge.net/p/mathmaker/doc4dev/Signed/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 19 Feb 2014 10:23:43 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/mathmaker/doc4dev/Signed/feed" rel="self" type="application/rss+xml"/><item><title>Signed modified by Nicolas Hainaux</title><link>https://sourceforge.net/p/mathmaker/doc4dev/Signed/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -23,4 +23,6 @@
 So for the complete object, an total of 2 minus signs.
 If this Product needs to be reduced, the final sign will hence be '+'.

+[Check Signed's complete doc](http://mathmaker.sourceforge.net/participate/doc/classcore_1_1root__calculus_1_1Signed.html)
+
 [Back](Core Objects)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nicolas Hainaux</dc:creator><pubDate>Wed, 19 Feb 2014 10:23:43 -0000</pubDate><guid>https://sourceforge.net832baa3dd569ed767c5962837b7c45a75c5266b7</guid></item><item><title>Signed modified by Nicolas Hainaux</title><link>https://sourceforge.net/p/mathmaker/doc4dev/Signed/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -22,3 +22,5 @@
 (-a) -&gt; 1
 So for the complete object, an total of 2 minus signs.
 If this Product needs to be reduced, the final sign will hence be '+'.
+
+[Back](Core Objects)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nicolas Hainaux</dc:creator><pubDate>Sun, 16 Feb 2014 13:56:36 -0000</pubDate><guid>https://sourceforge.net0c7ccd9f380dbb81b419969f0d53e135e3648e9f</guid></item><item><title>Signed modified by Nicolas Hainaux</title><link>https://sourceforge.net/p/mathmaker/doc4dev/Signed/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Signed objects are the ones that have a + or - sign.&lt;br /&gt;
This is the case of all Evaluable objects.&lt;/p&gt;
&lt;p&gt;Most of the time, the sign is at the beginning of the object and, for Exponenteds, is not embraced by the exponent. But it is not always the case : Sums and Products for instance, do not have their own sign. The sign that is used is the one of their first element. &lt;em&gt;This might change to simplify the code, if we find a solution that gives satisfying results.&lt;/em&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Fields&lt;/th&gt;
&lt;th&gt;Methods &lt;em&gt;(provided)&lt;/em&gt;&lt;/th&gt;
&lt;th&gt;Methods &lt;em&gt;(must be reimplemented)&lt;/em&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;sign&lt;/td&gt;
&lt;td&gt;get_sign()&lt;/td&gt;
&lt;td&gt;get_minus_signs_nb()&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;set_sign()&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;set_opposite_sign()&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;is_negative()&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;is_positive()&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;set_opposite_sign() will just change the sign of the object to its contrary&lt;br /&gt;
get_minus_signs_nb() is essentially an auxiliary method to help maths_lib.sign_of_product() to determine the sign of a given Product. It was more practical to give a get_minus_signs_nb() to each object to return recursively the number of its minus signs, than counting them in a loop.&lt;/p&gt;
&lt;p&gt;For instance, if the object is : -4x(-8x - 1)×(+3)×(-a) get_minus_signs_nb() should return :&lt;br /&gt;
-4x -&amp;gt; 1&lt;br /&gt;
(-8x - 1) -&amp;gt; 0&lt;br /&gt;
(+3) -&amp;gt; 0&lt;br /&gt;
(-a) -&amp;gt; 1&lt;br /&gt;
So for the complete object, an total of 2 minus signs.&lt;br /&gt;
If this Product needs to be reduced, the final sign will hence be '+'.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nicolas Hainaux</dc:creator><pubDate>Sat, 15 Feb 2014 18:44:39 -0000</pubDate><guid>https://sourceforge.netb1e9857b9e91f99502c628492acbcc714794fdc6</guid></item></channel></rss>