<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.labrps.com/index.php?action=history&amp;feed=atom&amp;title=Expressions</id>
	<title>Expressions - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.labrps.com/index.php?action=history&amp;feed=atom&amp;title=Expressions"/>
	<link rel="alternate" type="text/html" href="https://wiki.labrps.com/index.php?title=Expressions&amp;action=history"/>
	<updated>2026-05-19T07:07:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>https://wiki.labrps.com/index.php?title=Expressions&amp;diff=2500&amp;oldid=prev</id>
		<title>LabRPS at 11:20, 28 December 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.labrps.com/index.php?title=Expressions&amp;diff=2500&amp;oldid=prev"/>
		<updated>2024-12-28T11:20:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:20, 28 December 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l937&quot;&gt;Line 937:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 937:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Cross-document linking ==  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Cross-document linking ==  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is possible (with limitations) to define a Property of an object in your current document (&amp;quot;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;RPSstd&lt;/del&gt;&amp;quot; file) by using an Expression to reference a Property of an object contained in a different document (&amp;quot;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;RPSstd&lt;/del&gt;&amp;quot; file). For example, a cell in a spreadsheet etc. in one document can be defined by an Expression that references the X Placement value or another Property of an object contained in a different document.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is possible (with limitations) to define a Property of an object in your current document (&amp;quot;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;rps&lt;/ins&gt;&amp;quot; file) by using an Expression to reference a Property of an object contained in a different document (&amp;quot;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;rps&lt;/ins&gt;&amp;quot; file). For example, a cell in a spreadsheet etc. in one document can be defined by an Expression that references the X Placement value or another Property of an object contained in a different document.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A document&amp;#039;s name is used to reference it from other documents. When saving a document the first time, you choose a file name; this is usually different from the initial default &amp;quot;Unnamed1&amp;quot; (or its translated equivalent). To prevent links being lost when the master document is renamed upon saving, it is recommended that you first create the master document, create a spreadsheet inside it, and save it. Subsequently, you can still make changes to the file and its spreadsheet but you should not rename it.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A document&amp;#039;s name is used to reference it from other documents. When saving a document the first time, you choose a file name; this is usually different from the initial default &amp;quot;Unnamed1&amp;quot; (or its translated equivalent). To prevent links being lost when the master document is renamed upon saving, it is recommended that you first create the master document, create a spreadsheet inside it, and save it. Subsequently, you can still make changes to the file and its spreadsheet but you should not rename it.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>LabRPS</name></author>
	</entry>
	<entry>
		<id>https://wiki.labrps.com/index.php?title=Expressions&amp;diff=2060&amp;oldid=prev</id>
		<title>LabRPS: Created page with &quot;{{TOCright}}  ==Overview==   It is possible to define properties using mathematical expressions. In the GUI, spin boxes or input fields that are bound to properties show a blue icon 16px when activated. Clicking on the icon or typing the equal sign {{KEY|&amp;#61;}} opens the expression editor for that particular property. If the input field shows a {{Button|...}} button instead of an icon, the expression editor can be opened by right-clicking...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.labrps.com/index.php?title=Expressions&amp;diff=2060&amp;oldid=prev"/>
		<updated>2024-10-28T17:48:00Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{TOCright}}  ==Overview==   It is possible to define properties using mathematical expressions. In the GUI, spin boxes or input fields that are bound to properties show a blue icon &lt;a href=&quot;/File:Bound-expression.svg&quot; title=&quot;File:Bound-expression.svg&quot;&gt;16px&lt;/a&gt; when activated. Clicking on the icon or typing the equal sign {{KEY|=}} opens the expression editor for that particular property. If the input field shows a {{Button|...}} button instead of an icon, the expression editor can be opened by right-clicking...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{TOCright}}&lt;br /&gt;
&lt;br /&gt;
==Overview== &lt;br /&gt;
&lt;br /&gt;
It is possible to define properties using mathematical expressions. In the GUI, spin boxes or input fields that are bound to properties show a blue icon [[Image:Bound-expression.svg|16px]] when activated. Clicking on the icon or typing the equal sign {{KEY|&amp;amp;#61;}} opens the expression editor for that particular property. If the input field shows a {{Button|...}} button instead of an icon, the expression editor can be opened by right-clicking the property and selecting {{MenuCommand|Expression...}} from the context menu.&lt;br /&gt;
&lt;br /&gt;
A LabRPS expression is a mathematical expression using the standard mathematical [[#Supported_operators|operators]], [[#Supported_functions|functions]] and [[#Supported_constants|predefined constants]] as described below. In addition, the expression may reference object properties, and also use [[#Conditional_expressions|conditionals]]. Numbers in an expression may have an optional [[#Units|unit]] attached to them.&lt;br /&gt;
&lt;br /&gt;
Numbers may use either a comma {{incode|,}} or a decimal point {{incode|.}} to separate whole digits from decimals. When the decimal marker is used, it &amp;#039;&amp;#039;must&amp;#039;&amp;#039; be followed by at least one digit. Thus, the expressions {{incode|1. + 2.}} and {{incode|1, + 2,}} are invalid, but {{incode|1.0 + 2.0}} and {{incode|1,0 + 2,0}} are valid.&lt;br /&gt;
&lt;br /&gt;
Operators and functions are unit-aware, and require valid combinations of units, if supplied. For example, {{incode|2mm + 4mm}} is a valid expression, while {{incode|2mm + 4}} is not. This also applies to references to object properties that have units, such as Length properties. Thus {{incode|Pad001.Length + 1}} is invalid since it adds a pure number to a property with length units, it requires {{incode|Pad001.Length + 1mm}}.&lt;br /&gt;
&lt;br /&gt;
Some unit related errors can seem unintuitive, with expressions either being rejected or producing results that do not match the units of the property being set. Here are some examples:&lt;br /&gt;
&lt;br /&gt;
{{incode|1/2mm}} is not interpreted as half a millimeter but as {{incode|1/(2mm)}}, resulting in: {{incode|0.5 mm^-1}}.&lt;br /&gt;
&lt;br /&gt;
{{incode|sqrt(2)mm}} is not valid because the function call is not a number. This has to be entered as {{incode|sqrt(2) * 1mm}}.&lt;br /&gt;
&lt;br /&gt;
===Function arguments=== &lt;br /&gt;
&lt;br /&gt;
Multiple arguments to a function may be separated by either a semicolon {{incode|;}} or a comma &amp;lt;em&amp;gt;followed by a space&amp;lt;/em&amp;gt; {{incode|, }}. In the latter case, the comma is converted to a semicolon after entry. When a semicolon is used, no trailing space is necessary.&lt;br /&gt;
&lt;br /&gt;
Arguments may include references to cells in a spreadsheet. A cell reference consists of the cell&amp;#039;s uppercase row letter followed by its column number, for example {{incode|A1}}. A cell may also be referenced by using the cell&amp;#039;s alias instead, for example {{incode|Spreadsheet.NumberOfSample}}.&lt;br /&gt;
&lt;br /&gt;
===Referencing objects=== &lt;br /&gt;
&lt;br /&gt;
As already shown above, you can reference an object by its {{PropertyData|Name}}. But you can also use its {{PropertyData|Label}}. In the case of a {{PropertyData|Label}}, it must be enclosed in double {{incode|&amp;lt;&amp;lt;}} and {{incode|&amp;gt;&amp;gt;}} symbols, such as {{incode|&amp;lt;&amp;lt;Label&amp;gt;&amp;gt;}}.&lt;br /&gt;
&lt;br /&gt;
You can reference any property of an object. For example, to reference a Cylinder&amp;#039;s height, you may use {{incode|Cylinder.Height}} or {{incode|&amp;lt;&amp;lt;Label_of_cylinder&amp;gt;&amp;gt;.Height}}.&lt;br /&gt;
&lt;br /&gt;
For more information about referencing objects.&lt;br /&gt;
&lt;br /&gt;
{{Top}}&lt;br /&gt;
&lt;br /&gt;
== Supported constants == &lt;br /&gt;
&lt;br /&gt;
The following constants are supported:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Constant&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;e&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| [https://en.wikipedia.org/wiki/E_(mathematical_constant) Euler&amp;#039;s number]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;pi&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Pi Pi]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Top}}&lt;br /&gt;
&lt;br /&gt;
== Supported operators == &lt;br /&gt;
&lt;br /&gt;
The following operators are supported:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Operator&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot; |&amp;#039;&amp;#039;&amp;#039;+&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Addition Addition]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot; |&amp;#039;&amp;#039;&amp;#039;-&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Subtraction Subtraction]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;*&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Multiplication Multiplication]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;/&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Floating point [https://en.wikipedia.org/wiki/Division_(mathematics) Division]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;%&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Remainder Remainder]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;^&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Exponentiation Exponentiation]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Top}}&lt;br /&gt;
&lt;br /&gt;
== Supported functions == &lt;br /&gt;
&lt;br /&gt;
=== General mathematical functions === &lt;br /&gt;
&lt;br /&gt;
The following mathematical functions are supported:&lt;br /&gt;
&lt;br /&gt;
==== Trigonometric functions ==== &lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Trigonometric_functions Trigonometric functions] use degree as their default unit. For radians add {{incode|rad}} following the &amp;lt;em&amp;gt;first&amp;lt;/em&amp;gt; value in an expression. So e.g. {{incode|cos(45)}} is the same as {{incode|cos(pi rad / 4)}}. Expressions in degrees can use either {{incode|deg}} or {{incode|°}}, e.g. {{incode|360deg - atan2(3; 4)}} or {{incode|360&amp;amp;deg; - atan2(3; 4)}}. If an expression is without units and needs to be converted to degrees or radians for compatibility, multiply by {{incode|1deg}}, {{incode|1°}} or {{incode|1rad}} as appropriate, e.g. {{incode|(360 - X) * 1deg}}; {{incode|(360 - X) * 1°}}; {{incode|(0.5 + pi / 2) * 1rad}}.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 15%;&amp;quot;|Function&lt;br /&gt;
!style=&amp;quot;width: 55%;&amp;quot;|Description&lt;br /&gt;
!style=&amp;quot;width: 30%;&amp;quot;|Input range&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|acos(x)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Inverse_trigonometric_functions#Basic_properties Arc cosine]&lt;br /&gt;
| -1 &amp;lt;= x &amp;lt;= 1 &lt;br /&gt;
|-&lt;br /&gt;
| {{incode|asin(x)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Inverse_trigonometric_functions#Basic_properties Arc sine]&lt;br /&gt;
| -1 &amp;lt;= x &amp;lt;= 1 &lt;br /&gt;
|-&lt;br /&gt;
| {{incode|atan(x)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Inverse_trigonometric_functions#Basic_properties Arc tangent], return value in the range -90° &amp;lt; value &amp;lt; 90°&lt;br /&gt;
| all&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|atan2(y; x)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Inverse_trigonometric_functions#Basic_properties Arc tangent] of &amp;#039;&amp;#039;y/x&amp;#039;&amp;#039; accounting for quadrant, return value in the range -180° &amp;lt; value &amp;lt;= 180°&lt;br /&gt;
| all, the invalid input x = y = 0 returns 0&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|cos(x)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Trigonometric_functions#Right-angled_triangle_definitions Cosine]&lt;br /&gt;
| all&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|cosh(x)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Hyperbolic_function#Trigonometric_definitions Hyperbolic cosine]&lt;br /&gt;
| all&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|sin(x)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Trigonometric_functions#Right-angled_triangle_definitions Sine]&lt;br /&gt;
| all&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|sinh(x)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Hyperbolic_function#Trigonometric_definitions Hyperbolic sine]&lt;br /&gt;
| all&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|tan(x)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Trigonometric_functions#Right-angled_triangle_definitions Tangent]&lt;br /&gt;
| all, except x = n*90 with n = odd integer&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|tanh(x)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Hyperbolic_function#Trigonometric_definitions Hyperbolic tangent]&lt;br /&gt;
| all&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|hypot(x; y)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Pythagorean_addition Pythagorean addition] (&amp;#039;&amp;#039;&amp;#039;hypot&amp;#039;&amp;#039;&amp;#039;enuse), e.g. hypot(4; 3) = 5&lt;br /&gt;
| x and y &amp;gt;= 0&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|cath(x; y)}}&lt;br /&gt;
| Given hypotenuse, and one side, returns other side of triangle, e.g. cath(5; 3) = 4&lt;br /&gt;
| x &amp;gt;= y &amp;gt;= 0&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Exponential and logarithmic functions ==== &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Function&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Description&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Input range&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|exp(x)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Exponential_function#Formal_definition Exponential function]&lt;br /&gt;
| all&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|log(x)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Natural_logarithm Natural logarithm]&lt;br /&gt;
| x &amp;gt; 0 &lt;br /&gt;
|-&lt;br /&gt;
| {{incode|log10(x)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Common_logarithm Common logarithm]&lt;br /&gt;
| x &amp;gt; 0 &lt;br /&gt;
|-&lt;br /&gt;
| {{incode|pow(x; y)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Exponentiation Exponentiation]&lt;br /&gt;
| all&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|sqrt(x)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Square_root Square root]&lt;br /&gt;
| x &amp;gt;= 0&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Rounding, truncation and remainder functions ==== &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 20%;&amp;quot;|Function&lt;br /&gt;
!style=&amp;quot;width: 55%;&amp;quot;|Description&lt;br /&gt;
!style=&amp;quot;width: 25%;&amp;quot;|Input range&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|abs(x)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Absolute_value Absolute value]&lt;br /&gt;
| all&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|ceil(x)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Floor_and_ceiling_functions Ceiling function], smallest integer value greater than or equal to x&lt;br /&gt;
| all &lt;br /&gt;
|-&lt;br /&gt;
| {{incode|floor(x)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Floor_and_ceiling_functions Floor function], largest integer value less than or equal to x&lt;br /&gt;
| all &lt;br /&gt;
|-&lt;br /&gt;
| {{incode|mod(x; y)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Remainder Remainder] after dividing &amp;#039;&amp;#039;x&amp;#039;&amp;#039; by &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, sign of result is that of the dividend.&lt;br /&gt;
| all, except y = 0&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|round(x)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Rounding Rounding] to the nearest integer&lt;br /&gt;
| all&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|trunc(x)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Truncation Truncation] to the nearest integer in the direction of zero&lt;br /&gt;
| all&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Top}}&lt;br /&gt;
&lt;br /&gt;
=== Statistical / aggregate functions === &lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Aggregate_function Aggregate functions] take one or more arguments.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Individual arguments to aggregate functions may consist of ranges of cells. A range of cells is expressed as two cell references separated by a colon {{Incode|:}}, for example {{Incode|average(B1:B8)}} or {{Incode|sum(A1:A4; B1:B4)}}.&lt;br /&gt;
The cell references may also use cell aliases, for example {{Incode|average(StartTemp:EndTemp)}}.&lt;br /&gt;
&lt;br /&gt;
The following aggregate functions are supported:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 20%;&amp;quot;|Function&lt;br /&gt;
!style=&amp;quot;width: 55%;&amp;quot;|Description&lt;br /&gt;
!style=&amp;quot;width: 25%;&amp;quot;|Input range&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|average(a; b; c; ...)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Arithmetic_mean Average] value of the arguments, same as sum(a; b; c; ...) / count(a; b; c; ...)&lt;br /&gt;
| all&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|count(a; b; c; ...)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Counting Count] of the arguments, typically used for cell ranges&lt;br /&gt;
| all &lt;br /&gt;
|-&lt;br /&gt;
| {{incode|max(a; b; c; ...)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Maxima_and_minima Maximum] value of the arguments&lt;br /&gt;
| all &lt;br /&gt;
|-&lt;br /&gt;
| {{incode|min(a; b; c; ...)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Maxima_and_minima Minimum] value of the arguments&lt;br /&gt;
| all&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|stddev(a; b; c; ...)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/standard_deviation Standard deviation] of the values of the arguments&lt;br /&gt;
| all&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|sum(a; b; c; ...)}}&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Summation Sum] of the values of the arguments, typically used for cell ranges&lt;br /&gt;
| all&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Top}}&lt;br /&gt;
&lt;br /&gt;
=== String manipulation === &lt;br /&gt;
&lt;br /&gt;
==== String identification ==== &lt;br /&gt;
&lt;br /&gt;
Strings are identified in expressions by surrounding them with opening/closing double chevrons (as are labels).&lt;br /&gt;
&lt;br /&gt;
In following example, &amp;quot;TEXT&amp;quot; is recognized as a string : {{incode|&amp;lt;&amp;lt;TEXT&amp;gt;&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
==== String concatenation ==== &lt;br /&gt;
&lt;br /&gt;
Strings can be concatenated using the &amp;#039;+&amp;#039; sign.&lt;br /&gt;
&lt;br /&gt;
Following example {{incode|&amp;lt;&amp;lt;MY&amp;gt;&amp;gt; + &amp;lt;&amp;lt;TEXT&amp;gt;&amp;gt;}} will be concatenated to &amp;quot;MYTEXT&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== String conversion ==== &lt;br /&gt;
&lt;br /&gt;
Numerical values can be converted to strings with the {{incode|str}} function:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{incode|str(SimulationPoint.Z.Value)}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== String formatting ==== &lt;br /&gt;
&lt;br /&gt;
String formatting is supported using the (old) %-style Python way.&lt;br /&gt;
&lt;br /&gt;
All %-specifiers as defined in [https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting Python documentation].&lt;br /&gt;
&lt;br /&gt;
{{Top}}&lt;br /&gt;
&lt;br /&gt;
== Conditional expressions == &lt;br /&gt;
&lt;br /&gt;
Conditional expressions are of the form {{incode|condition ? resultTrue : resultFalse}}. The condition is defined as an expression that evaluates to either {{incode|0}} (false) or non-zero (true).&lt;br /&gt;
&lt;br /&gt;
Note that to use a boolean property as the condition this syntax must be used: {{incode|VarSet.MyBool &amp;amp;#61;&amp;amp;#61; 1 ? 10 mm : 15 mm}}.&lt;br /&gt;
&lt;br /&gt;
The following [https://en.wikipedia.org/wiki/Relational_operator#Standard_relational_operators relational operators] are defined:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;==&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| equal to&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;!=&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| not equal to&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| greater than &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;lt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| less than&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;gt;=&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| greater than or equal to&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;lt;=&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| less than or equal to&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Top}}&lt;br /&gt;
&lt;br /&gt;
== Units == &lt;br /&gt;
&lt;br /&gt;
Units can be used directly in expressions. The parser connects them to the previous value. So {{incode|2mm}} or {{incode|2 mm}} is valid while {{incode|mm}} is invalid because there is no preceding value.&lt;br /&gt;
&lt;br /&gt;
All values must have a unit. Therefore you must in general use a unit for values in spreadsheets.&amp;lt;br/&amp;gt;&lt;br /&gt;
In some cases it works even without a unit, for example if you have e.g. in spreadsheet cell B1 just the number {{incode|1.5}} and refer to it for a pad height. This only works because the pad height predefines the unit {{incode|mm}} that is used if no unit is given. It will nevertheless fail if you use for the pad height e.g. {{incode|Sketch1.Constraints.Width - Spreadsheet.B1}} because {{incode|Sketch1.Constraints.Width}} has a unit and {{incode|Spreadsheet.B1}} has not.&lt;br /&gt;
&lt;br /&gt;
Units with exponents can directly be entered. So e.g. {{incode|mm^3}} will be recognized as mm³ and {{incode|m^3}} will be recognized as m³.&lt;br /&gt;
&lt;br /&gt;
If you have a variable whose name is that of a unit you must put the variable between {{incode|&amp;lt;&amp;lt; &amp;gt;&amp;gt;}} to prevent it from being recognized as a unit. For example if you have the dimension {{incode|Sketch.Constraints.A}} it would be recognized as the unit ampere. Therefore you must write it in the expression as {{incode|Sketch.Constraints.&amp;lt;&amp;lt;A&amp;gt;&amp;gt;}}.&lt;br /&gt;
&lt;br /&gt;
The following units are recognized by the expression parser:&lt;br /&gt;
&lt;br /&gt;
=== Amount of substance === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| mmol&lt;br /&gt;
| Milli[https://en.wikipedia.org/wiki/Mole_(unit) mole]&lt;br /&gt;
|-&lt;br /&gt;
| mol&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Mole_(unit) Mole]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Angle === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| °&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Degree_(angle) Degree]; alternative to the unit deg&lt;br /&gt;
|-&lt;br /&gt;
| deg&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Degree_(angle) Degree]; alternative to the unit °&lt;br /&gt;
|-&lt;br /&gt;
| rad&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Radian Radian]&lt;br /&gt;
|-&lt;br /&gt;
| gon&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Gon_(unit) Gradian]&lt;br /&gt;
|-&lt;br /&gt;
| S&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Minute_and_second_of_arc Second of arc]; alternative to the unit ″&lt;br /&gt;
|-&lt;br /&gt;
| ″&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Minute_and_second_of_arc Second of arc]; alternative to the unit S&lt;br /&gt;
|-&lt;br /&gt;
| M&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Minute_and_second_of_arc Minute of arc]; alternative to the unit ′&lt;br /&gt;
|-&lt;br /&gt;
| ′&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Minute_and_second_of_arc Minute of arc]; alternative to the unit M&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Current === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| mA&lt;br /&gt;
| Milli[https://en.wikipedia.org/wiki/Ampere ampere]&lt;br /&gt;
|-&lt;br /&gt;
| A&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Ampere Ampere]&lt;br /&gt;
|-&lt;br /&gt;
| kA&lt;br /&gt;
| Kilo[https://en.wikipedia.org/wiki/Ampere ampere]&lt;br /&gt;
|-&lt;br /&gt;
| MA&lt;br /&gt;
| Mega[https://en.wikipedia.org/wiki/Ampere ampere]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Electric capacitance === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| pF&lt;br /&gt;
| Pico[https://en.wikipedia.org/wiki/Farad farad]&lt;br /&gt;
|-&lt;br /&gt;
| nF&lt;br /&gt;
| Nano[https://en.wikipedia.org/wiki/Farad farad]&lt;br /&gt;
|-&lt;br /&gt;
| uF&lt;br /&gt;
| Micro[https://en.wikipedia.org/wiki/Farad farad]; alternative to the unit µF&lt;br /&gt;
|-&lt;br /&gt;
| µF&lt;br /&gt;
| Micro[https://en.wikipedia.org/wiki/Farad farad]; alternative to the unit uF&lt;br /&gt;
|-&lt;br /&gt;
| mF&lt;br /&gt;
| Milli[https://en.wikipedia.org/wiki/Farad farad]&lt;br /&gt;
|-&lt;br /&gt;
| F&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Farad Farad]; 1 F = 1 s^4·A^2/m^2/kg&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Electric charge === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| C&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Coulomb Coulomb]; 1 C = 1 A*s&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Electric conductivity === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| uS&lt;br /&gt;
| Micro[https://en.wikipedia.org/wiki/Siemens_(unit) siemens]; alternative to the unit µS&lt;br /&gt;
|-&lt;br /&gt;
| µS&lt;br /&gt;
| Micro[https://en.wikipedia.org/wiki/Siemens_(unit) siemens]; alternative to the unit uS&lt;br /&gt;
|-&lt;br /&gt;
| mS&lt;br /&gt;
| Milli[https://en.wikipedia.org/wiki/Siemens_(unit) siemens]&lt;br /&gt;
|-&lt;br /&gt;
| S&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Siemens_(unit) Siemens]; 1 S = 1 s^3·A^2/kg/m^2&lt;br /&gt;
|-&lt;br /&gt;
| kS&lt;br /&gt;
| Kilo[https://en.wikipedia.org/wiki/Siemens_(unit) Siemens]&lt;br /&gt;
|-&lt;br /&gt;
| MS&lt;br /&gt;
| Mega[https://en.wikipedia.org/wiki/Siemens_(unit) Siemens]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Electric inductance === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| nH&lt;br /&gt;
| Nano[https://en.wikipedia.org/wiki/Henry_(unit) henry]&lt;br /&gt;
|-&lt;br /&gt;
| uH&lt;br /&gt;
| Micro[https://en.wikipedia.org/wiki/Henry_(unit) henry]; alternative to the unit µH&lt;br /&gt;
|-&lt;br /&gt;
| µH&lt;br /&gt;
| Micro[https://en.wikipedia.org/wiki/Henry_(unit) henry]; alternative to the unit uH&lt;br /&gt;
|-&lt;br /&gt;
| mH&lt;br /&gt;
| Milli[https://en.wikipedia.org/wiki/Henry_(unit) henry]&lt;br /&gt;
|-&lt;br /&gt;
| H&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Henry_(unit) Henry]; 1 H = 1 kg·m^2/s^2/A^2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Electric potential === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| mV&lt;br /&gt;
| Milli[https://en.wikipedia.org/wiki/Volt volt]&lt;br /&gt;
|-&lt;br /&gt;
| V&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Volt Volt]&lt;br /&gt;
|-&lt;br /&gt;
| kV&lt;br /&gt;
| Kilo[https://en.wikipedia.org/wiki/Volt volt]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Electric resistance === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| Ohm&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Ohm Ohm]; 1 Ohm = 1 kg·m^2/s^3/A^2&lt;br /&gt;
|-&lt;br /&gt;
| kOhm&lt;br /&gt;
| Kilo[https://en.wikipedia.org/wiki/Ohm ohm]&lt;br /&gt;
|-&lt;br /&gt;
| MOhm&lt;br /&gt;
| Mega[https://en.wikipedia.org/wiki/Ohm ohm]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Energy/work === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable float-right mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| mJ&lt;br /&gt;
| Milli[https://en.wikipedia.org/wiki/Joule joule]&lt;br /&gt;
|-&lt;br /&gt;
| J&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Joule Joule]&lt;br /&gt;
|-&lt;br /&gt;
| kJ&lt;br /&gt;
| Kilo[https://en.wikipedia.org/wiki/Joule joule]&lt;br /&gt;
|-&lt;br /&gt;
| eV&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Electronvolt Electronvolt]; 1 eV = 1.602176634e-19 J&lt;br /&gt;
|-&lt;br /&gt;
| keV&lt;br /&gt;
| Kilo[https://en.wikipedia.org/wiki/Electronvolt electronvolt]&lt;br /&gt;
|-&lt;br /&gt;
| MeV&lt;br /&gt;
| Mega[https://en.wikipedia.org/wiki/Electronvolt electronvolt]&lt;br /&gt;
|-&lt;br /&gt;
| kWh&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Kilowatt_hour Kilowatt hour]; 1 kWh = 3.6e6 J&lt;br /&gt;
|-&lt;br /&gt;
| Ws&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Joule#Watt_second Watt second]; alternative to the unit Joule&lt;br /&gt;
|-&lt;br /&gt;
| VAs&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Joule Volt-ampere-second]; alternative to the unit Joule&lt;br /&gt;
|-&lt;br /&gt;
| CV&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Joule Coulomb-volt]; alternative to the unit Joule&lt;br /&gt;
|-&lt;br /&gt;
| cal&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Calorie Calorie]; 1 cal = 4.184 J&lt;br /&gt;
|-&lt;br /&gt;
| kcal&lt;br /&gt;
| Kilo[https://en.wikipedia.org/wiki/Calorie calorie]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Force === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| mN&lt;br /&gt;
| Milli[https://en.wikipedia.org/wiki/Newton_(unit) newton]&lt;br /&gt;
|-&lt;br /&gt;
| N&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Newton_(unit) Newton]&lt;br /&gt;
|-&lt;br /&gt;
| kN&lt;br /&gt;
| Kilo[https://en.wikipedia.org/wiki/Newton_(unit) newton]&lt;br /&gt;
|-&lt;br /&gt;
| MN&lt;br /&gt;
| Mega[https://en.wikipedia.org/wiki/Newton_(unit) newton]&lt;br /&gt;
|-&lt;br /&gt;
| lbf&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Pound_(force) Pound of force]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Length === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| nm&lt;br /&gt;
| Nano[https://en.wikipedia.org/wiki/Metre meter]&lt;br /&gt;
|-&lt;br /&gt;
| um&lt;br /&gt;
| Micro[https://en.wikipedia.org/wiki/Metre meter]; alternative to the unit µm&lt;br /&gt;
|-&lt;br /&gt;
| µm&lt;br /&gt;
| Micro[https://en.wikipedia.org/wiki/Metre meter]; alternative to the unit um&lt;br /&gt;
|-&lt;br /&gt;
| mm&lt;br /&gt;
| Milli[https://en.wikipedia.org/wiki/Metre meter]&lt;br /&gt;
|-&lt;br /&gt;
| cm&lt;br /&gt;
| Centi[https://en.wikipedia.org/wiki/Metre meter]&lt;br /&gt;
|-&lt;br /&gt;
| dm&lt;br /&gt;
| Deci[https://en.wikipedia.org/wiki/Metre meter]&lt;br /&gt;
|-&lt;br /&gt;
| m&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Metre Meter]&lt;br /&gt;
|-&lt;br /&gt;
| km&lt;br /&gt;
| Kilo[https://en.wikipedia.org/wiki/Metre meter]&lt;br /&gt;
|-&lt;br /&gt;
| mil&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Thousandth_of_an_inch Thousandth of an inch]; alternative to the unit thou&lt;br /&gt;
|-&lt;br /&gt;
| thou&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Thousandth_of_an_inch Thousandth of an inch]; alternative to the unit mil&lt;br /&gt;
|-&lt;br /&gt;
| in&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Inch Inch]; alternative to the unit &amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;quot;&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Inch Inch]; alternative to the unit in&lt;br /&gt;
|-&lt;br /&gt;
| ft&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Foot_(unit) Foot]; alternative to the unit &amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Foot_(unit) Foot]; alternative to the unit ft&lt;br /&gt;
|-&lt;br /&gt;
| yd&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Yard Yard]&lt;br /&gt;
|-&lt;br /&gt;
| mi&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Mile Mile]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Luminous intensity === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| cd&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Candela Candela]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Magnetic flux === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| Wb&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Weber_(unit) Weber]; 1 Wb = 1 kg*m^2/s^2/A&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Magnetic flux density === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| G&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Gauss_(unit) Gauss]; 1 G = 1 e-4 T&lt;br /&gt;
|-&lt;br /&gt;
| T&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Tesla_(unit) Tesla]; 1 T = 1 kg/s^2/A&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Mass === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| ug&lt;br /&gt;
| Micro[https://en.wikipedia.org/wiki/Gram gram]; alternative to the unit µg&lt;br /&gt;
|-&lt;br /&gt;
| µg&lt;br /&gt;
| Micro[https://en.wikipedia.org/wiki/Gram gram]; alternative to the unit ug&lt;br /&gt;
|-&lt;br /&gt;
| mg&lt;br /&gt;
| Milli[https://en.wikipedia.org/wiki/Gram gram]&lt;br /&gt;
|-&lt;br /&gt;
| g&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Gram Gram]&lt;br /&gt;
|-&lt;br /&gt;
| kg&lt;br /&gt;
| Kilo[https://en.wikipedia.org/wiki/Gram gram]&lt;br /&gt;
|-&lt;br /&gt;
| t&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Tonne Tonne]&lt;br /&gt;
|-&lt;br /&gt;
| oz&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Ounce Ounce]&lt;br /&gt;
|-&lt;br /&gt;
| lb&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Pound_(mass) Pound]; alternative to the unit lbm&lt;br /&gt;
|-&lt;br /&gt;
| lbm&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Pound_(mass) Pound]; alternative to the unit lb&lt;br /&gt;
|-&lt;br /&gt;
| st&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Stone_(weight) Stone]&lt;br /&gt;
|-&lt;br /&gt;
| cwt&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Hundredweight Hundredweight]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Power === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| W&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Watt Watt]&lt;br /&gt;
|-&lt;br /&gt;
| kW&lt;br /&gt;
| Kilo[https://en.wikipedia.org/wiki/Watt watt]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Pressure === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| Pa&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Pascal_(unit) Pascal]&lt;br /&gt;
|-&lt;br /&gt;
| kPa&lt;br /&gt;
| Kilo[https://en.wikipedia.org/wiki/Pascal_(unit) pascal]&lt;br /&gt;
|-&lt;br /&gt;
| MPa&lt;br /&gt;
| Mega[https://en.wikipedia.org/wiki/Pascal_(unit) pascal]&lt;br /&gt;
|-&lt;br /&gt;
| GPa&lt;br /&gt;
| Giga[https://en.wikipedia.org/wiki/Pascal_(unit) pascal]&lt;br /&gt;
|-&lt;br /&gt;
| uTorr&lt;br /&gt;
| Micro[https://en.wikipedia.org/wiki/Torr torr]; alternative to the unit µTorr&lt;br /&gt;
|-&lt;br /&gt;
| µTorr&lt;br /&gt;
| Micro[https://en.wikipedia.org/wiki/Torr torr]; alternative to the unit uTorr&lt;br /&gt;
|-&lt;br /&gt;
| mTorr&lt;br /&gt;
| Milli[https://en.wikipedia.org/wiki/Torr torr]&lt;br /&gt;
|-&lt;br /&gt;
| Torr&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Torr Torr]; 1 Torr = 133.32 Pa&lt;br /&gt;
|-&lt;br /&gt;
| psi&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Pounds_per_square_inch Pound-force per square inch]; 1 psi = 6.895 kPa&lt;br /&gt;
|-&lt;br /&gt;
| ksi&lt;br /&gt;
| Kilo[https://en.wikipedia.org/wiki/Pounds_per_square_inch pound-force per square inch]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Temperature === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| uK&lt;br /&gt;
| Micro[https://en.wikipedia.org/wiki/Kelvin kelvin]; alternative to the unit µK&lt;br /&gt;
|-&lt;br /&gt;
| µK&lt;br /&gt;
| Micro[https://en.wikipedia.org/wiki/Kelvin kelvin]; alternative to the unit uK&lt;br /&gt;
|-&lt;br /&gt;
| mK&lt;br /&gt;
| Milli[https://en.wikipedia.org/wiki/Kelvin kelvin]&lt;br /&gt;
|-&lt;br /&gt;
| K&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Kelvin Kelvin]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Time === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| s&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Second Second]&lt;br /&gt;
|-&lt;br /&gt;
| min&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Minute Minute]&lt;br /&gt;
|-&lt;br /&gt;
| h&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Hour Hour]&lt;br /&gt;
|-&lt;br /&gt;
| Hz (1/s)&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Hertz Hertz]&lt;br /&gt;
|-&lt;br /&gt;
| kHz&lt;br /&gt;
| Kilo[https://en.wikipedia.org/wiki/Hertz hertz],&lt;br /&gt;
|-&lt;br /&gt;
| MHz&lt;br /&gt;
| Mega[https://en.wikipedia.org/wiki/Hertz hertz]&lt;br /&gt;
|-&lt;br /&gt;
| GHz&lt;br /&gt;
| Giga[https://en.wikipedia.org/wiki/Hertz hertz]&lt;br /&gt;
|-&lt;br /&gt;
| THz&lt;br /&gt;
| Tera[https://en.wikipedia.org/wiki/Hertz hertz]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Volume === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| ml&lt;br /&gt;
| Milli[https://en.wikipedia.org/wiki/Litre liter]&lt;br /&gt;
|-&lt;br /&gt;
| l&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Litre Liter]&lt;br /&gt;
|-&lt;br /&gt;
| cft&lt;br /&gt;
| Cubic[https://en.wikipedia.org/wiki/Foot_(unit) foot]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Special imperial units === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| mph&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Miles_per_hour Miles per hour]&lt;br /&gt;
|-&lt;br /&gt;
| sqft&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Square_foot Square foot]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Unsupported units === &lt;br /&gt;
&lt;br /&gt;
The following commonly used units are not yet supported, for some an alternative is provided:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 25%;&amp;quot;|Unit&lt;br /&gt;
!style=&amp;quot;width: 50%;&amp;quot;|Description&lt;br /&gt;
!style=&amp;quot;width: 25%;&amp;quot;|Alternative&lt;br /&gt;
|-&lt;br /&gt;
| °C&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Celsius Celsius ]&lt;br /&gt;
| [°C] + 273.15 K&lt;br /&gt;
|-&lt;br /&gt;
| °F&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Fahrenheit Fahrenheit];&lt;br /&gt;
| ([°F] + 459.67) × ​5/9&lt;br /&gt;
|-&lt;br /&gt;
| u&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Unified_atomic_mass_unit Atomic mass unit]; alternative to the unit Da&lt;br /&gt;
| 1.66053906660e-27 kg&lt;br /&gt;
|-&lt;br /&gt;
| Da&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Unified_atomic_mass_unit Dalton]; alternative to the unit u&lt;br /&gt;
| 1.66053906660e-27 kg&lt;br /&gt;
|-&lt;br /&gt;
| sr&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Steradian Steradian]&lt;br /&gt;
| not directly&lt;br /&gt;
|-&lt;br /&gt;
| lm&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Lumen_(unit) Lumen]&lt;br /&gt;
| not directly&lt;br /&gt;
|-&lt;br /&gt;
| lx&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Lux Lux]&lt;br /&gt;
| not directly&lt;br /&gt;
|-&lt;br /&gt;
| px&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Pixel Pixel]&lt;br /&gt;
| not directly&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Top}}&lt;br /&gt;
&lt;br /&gt;
==Invalid characters and names== &lt;br /&gt;
&lt;br /&gt;
The expression feature is very powerful but to achieve this power it has some limitations concerning some characters. To overcome this, LabRPS offers to use labels and reference them instead of the object names. In labels you can use almost all special characters.&lt;br /&gt;
&lt;br /&gt;
In cases where you cannot use a label, such as the name of a sketch&amp;#039;s constraints, you must be aware what characters are not allowed.&lt;br /&gt;
&lt;br /&gt;
===Labels=== &lt;br /&gt;
For [[Object_name#Label|labels]] there are no invalid characters, however some characters need to be escaped:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Characters&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| {{incode|&amp;#039;}}, {{incode|\}}, {{incode|&amp;quot;}}&lt;br /&gt;
| Need to be escaped by adding {{incode|\}} in front of them.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
For example, the label {{incode|Sketch\002}} must be referenced as {{incode|&amp;lt;&amp;lt;Sketch\\002&amp;gt;&amp;gt;}}.&lt;br /&gt;
&lt;br /&gt;
===Names=== &lt;br /&gt;
&lt;br /&gt;
[[Object_name#Name|Names]] of objects like dimensions, sketches, etc. may not have the characters or character sequences listed below, otherwise the name is invalid:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 33%;&amp;quot;|Characters / Character sequences&lt;br /&gt;
!style=&amp;quot;width: 66%;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;+&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;-&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;*&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;/&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;^&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;_&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;&amp;lt;&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;&amp;gt;&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;)&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;{&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;}&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;[&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;]&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;.&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;,&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;=&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Characters that are math operators or part of mathematical constructs&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;kA&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;mA&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;MA&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;J&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;K&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039; &amp;#039; &amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039; ft &amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;°&amp;#039;&amp;#039;&amp;#039;, and many more!&lt;br /&gt;
| Characters and character sequences that are units (see the [[#Units|Units]] paragraph)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;#&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;!&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;?&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;§&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;$&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;%&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;&amp;amp;&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;:&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;;&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;\&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;~&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;∆&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;¿&amp;#039;&amp;#039;&amp;#039;, and many more!&lt;br /&gt;
| Characters used as placeholder or to trigger special operations&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;pi&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;e&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Mathematical constants&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;´&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;`&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039; &amp;#039; &amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;&amp;quot;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Characters used for accents&lt;br /&gt;
|-&lt;br /&gt;
| space&lt;br /&gt;
| A space defines the end of a name and can therefore not be used&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
For example, the following name is valid: {{incode|&amp;lt;&amp;lt;Sketch&amp;gt;&amp;gt;.Constraints.T2üßµ@}}. While these are invalid names: {{incode|&amp;lt;&amp;lt;Sketch&amp;gt;&amp;gt;.Constraints.test\result_2}} (\r means &amp;quot;carriage return&amp;quot;) or {{incode|&amp;lt;&amp;lt;Sketch&amp;gt;&amp;gt;.Constraints.mol}} (mol is a unit).&lt;br /&gt;
&lt;br /&gt;
Since shorter names (especially if they have only one or two characters) can easily result in invalid names, consider using longer names and/or establishing a suitable naming convention.&lt;br /&gt;
&lt;br /&gt;
===Cell aliases=== &lt;br /&gt;
&lt;br /&gt;
{{Top}}&lt;br /&gt;
&lt;br /&gt;
=== Cyclic dependencies === &lt;br /&gt;
&lt;br /&gt;
LabRPS checks dependencies based on the relationship between document objects, not properties. This means that you cannot provide data to an object and query that same object for results. For example, even though there are no cyclic dependencies when the properties themselves are considered, you may not have an object which gets its dimensions from a spreadsheet and then display the volume of that object in the same spreadsheet. You have to use two spreadsheets, one to drive your model and the other for reporting.&lt;br /&gt;
&lt;br /&gt;
As a workaround it is possible to display a cell range from the second spreadsheet in the first (or vice versa) by creating a [[Spreadsheet_Workbench#Cell_binding|cell binding]] with the {{MenuCommand|Hide dependency of binding}} option.&lt;br /&gt;
&lt;br /&gt;
Another way to workaround cyclic dependencies is to hide the reference by using the {{incode|href}} or {{incode|hiddenref}} function for individual expressions, for example: {{incode|href(Sim.ModulationFunction)}}.&lt;br /&gt;
&lt;br /&gt;
Please note that both mentioned workarounds should be used with caution, and that they do not work if the properties that are reported depend on dimensions that are driven from the same spreadsheet.&lt;br /&gt;
&lt;br /&gt;
{{Top}}&lt;br /&gt;
&lt;br /&gt;
== Document-wide global variables == &lt;br /&gt;
&lt;br /&gt;
There is no concept of global variables in LabRPS at the moment. Instead, arbitrary variables can be defined as cells in a spreadsheet using the [[Spreadsheet Workbench|Spreadsheet workbench]], and then be given a name using the alias property for the cell (right-click on cell). Then they can be accessed from any expression just as any other object property.&lt;br /&gt;
&lt;br /&gt;
{{Top}}&lt;br /&gt;
&lt;br /&gt;
== Cross-document linking == &lt;br /&gt;
&lt;br /&gt;
It is possible (with limitations) to define a Property of an object in your current document (&amp;quot;.RPSstd&amp;quot; file) by using an Expression to reference a Property of an object contained in a different document (&amp;quot;.RPSstd&amp;quot; file). For example, a cell in a spreadsheet etc. in one document can be defined by an Expression that references the X Placement value or another Property of an object contained in a different document.&lt;br /&gt;
&lt;br /&gt;
A document&amp;#039;s name is used to reference it from other documents. When saving a document the first time, you choose a file name; this is usually different from the initial default &amp;quot;Unnamed1&amp;quot; (or its translated equivalent). To prevent links being lost when the master document is renamed upon saving, it is recommended that you first create the master document, create a spreadsheet inside it, and save it. Subsequently, you can still make changes to the file and its spreadsheet but you should not rename it.&lt;br /&gt;
&lt;br /&gt;
Once the master document with the spreadsheet is created and saved (named), it is safe to create dependent documents. For example, assuming you name the master document {{incode|master}}, the spreadsheet {{incode|modelConstants}}, and give a cell an alias-name {{incode|Length}}, you can then access the value as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{incode|master#modelConstants.Length}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that the master document must be loaded for the values in the master to be available to the dependent document.&lt;br /&gt;
&lt;br /&gt;
Of course, it&amp;#039;s up to you to load the corresponding documents later when you want to change anything.&lt;br /&gt;
&lt;br /&gt;
{{Top}}&lt;br /&gt;
&lt;br /&gt;
== Scripting == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Code|code=&lt;br /&gt;
import LabRPS as App&lt;br /&gt;
&lt;br /&gt;
doc = App.ActiveDocument&lt;br /&gt;
point1 = doc.addObject(&amp;quot;WindLabAPI::WindLabFeatureSimulationLocation&amp;quot;, &amp;quot;Point1&amp;quot;)&lt;br /&gt;
point2 = doc.addObject(&amp;quot;WindLabAPI::WindLabFeatureSimulationLocation&amp;quot;, &amp;quot;Point2&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
point1.setExpression(&amp;quot;Height&amp;quot;, f&amp;quot;{point2}.Z / 2&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
doc.recompute()&lt;br /&gt;
&lt;br /&gt;
# Expressions are stored in the ExpressionEngine property:&lt;br /&gt;
for prop, exp in point1.ExpressionEngine:&lt;br /&gt;
    val = getattr(point1, prop)&lt;br /&gt;
    print(f&amp;quot;Property: &amp;#039;{prop}&amp;#039; -- Expression: &amp;#039;{exp}&amp;#039; -- Current value: {val}&amp;quot;)&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Top}}&lt;br /&gt;
&lt;br /&gt;
{{Powerdocnavi}}&lt;br /&gt;
[[Category:Spreadsheet]]&lt;/div&gt;</summary>
		<author><name>LabRPS</name></author>
	</entry>
</feed>