<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.robopad.co.uk/index.php?action=history&amp;feed=atom&amp;title=Math_Node</id>
	<title>Math Node - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.robopad.co.uk/index.php?action=history&amp;feed=atom&amp;title=Math_Node"/>
	<link rel="alternate" type="text/html" href="https://wiki.robopad.co.uk/index.php?title=Math_Node&amp;action=history"/>
	<updated>2026-06-09T21:32:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.0</generator>
	<entry>
		<id>https://wiki.robopad.co.uk/index.php?title=Math_Node&amp;diff=235&amp;oldid=prev</id>
		<title>Blayze: Adds Math Node page.</title>
		<link rel="alternate" type="text/html" href="https://wiki.robopad.co.uk/index.php?title=Math_Node&amp;diff=235&amp;oldid=prev"/>
		<updated>2023-03-08T03:36:10Z</updated>

		<summary type="html">&lt;p&gt;Adds Math Node page.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Return to nodes}}&lt;br /&gt;
{{Node Data&lt;br /&gt;
|title=Math Node&lt;br /&gt;
|gallery=&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Math-node.png&lt;br /&gt;
File:Math-settings.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
|input-list=&amp;lt;li&amp;gt;a&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;b&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;[...N]&amp;lt;/li&amp;gt;&lt;br /&gt;
|output-list=&amp;lt;li&amp;gt;result&amp;lt;/li&amp;gt;&lt;br /&gt;
|version=2.3-b1&lt;br /&gt;
}}&lt;br /&gt;
The Math Node is a simple node that performs basic mathematical computation on signals passed into it&amp;#039;s input ports. It can have two or more input ports. It is important to note that &amp;#039;&amp;#039;&amp;#039;the Math Node will only emit a &amp;#039;&amp;#039;result&amp;#039;&amp;#039; when all inputs have been populated (a.k.a. all input ports are connected to other nodes)&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Math Nodes were introduced in [[Firmware Releases|firmware version]] 2.3-b1.&lt;br /&gt;
&lt;br /&gt;
==Settings==&lt;br /&gt;
The Math Node only has two settings:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Function&amp;#039;&amp;#039;&amp;#039;: Specifies the mathematical operator this node will use on it&amp;#039;s input signals. See &amp;quot;Operators List&amp;quot; below for more information on the behaviour of each operator.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Input Count&amp;#039;&amp;#039;&amp;#039;: Specifies how many inputs this operator will act over. Note that &amp;#039;&amp;#039;&amp;#039;all&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;inputs must be connected to other nodes&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Operators List ==&lt;br /&gt;
The Math Node has a number of operators that can be selected. Binary operators operate on two or more input signals - they iteratively combine each input, for instance, using an addition (&amp;quot;add&amp;quot;) operator with 3 inputs, &amp;#039;&amp;#039;a, b &amp;amp; c&amp;#039;&amp;#039;, will produce a result of &amp;#039;&amp;#039;a+b+c&amp;#039;&amp;#039;. Similarly, a division operator (&amp;quot;divide&amp;quot;) will result in &amp;#039;&amp;#039;(a/b)/c&amp;#039;&amp;#039;, iteratively operating the output of the output of the operator on the first two with the next, and then the next until the end of the input list. If you provide just a single input to a binary operator no operation will occur and the value will simply be forwarded to the &amp;#039;&amp;#039;result&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Unary operators only act on the first input value, however just like when using a binary operator &amp;#039;&amp;#039;&amp;#039;those values must still be connected to other nodes for the Math Node to output a value&amp;#039;&amp;#039;&amp;#039;, so it is best to reduce &amp;#039;&amp;#039;Input Count&amp;#039;&amp;#039; to &amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039; when using a unary operator.&lt;br /&gt;
&lt;br /&gt;
=== Binary Operators ===&lt;br /&gt;
&lt;br /&gt;
* add                                                                                                                                           &lt;br /&gt;
* subtract&lt;br /&gt;
* multiply&lt;br /&gt;
* divide&lt;br /&gt;
* min&lt;br /&gt;
* max&lt;br /&gt;
* mod&lt;br /&gt;
* pow&lt;br /&gt;
* atan2&lt;br /&gt;
&lt;br /&gt;
=== Unary Operators ===&lt;br /&gt;
&lt;br /&gt;
* sqrt&lt;br /&gt;
* abs&lt;br /&gt;
* sin&lt;br /&gt;
* cos&lt;br /&gt;
* tan&lt;br /&gt;
* asin&lt;br /&gt;
* acos&lt;br /&gt;
* atan&lt;br /&gt;
* log&lt;br /&gt;
* exp&lt;br /&gt;
* floor&lt;br /&gt;
* ceil&lt;br /&gt;
* round&lt;br /&gt;
* sign&lt;/div&gt;</summary>
		<author><name>Blayze</name></author>
	</entry>
</feed>