diff options
Diffstat (limited to 'helpcontent2/source/text/smath/01/03090100.xhp')
-rw-r--r-- | helpcontent2/source/text/smath/01/03090100.xhp | 322 |
1 files changed, 322 insertions, 0 deletions
diff --git a/helpcontent2/source/text/smath/01/03090100.xhp b/helpcontent2/source/text/smath/01/03090100.xhp new file mode 100644 index 000000000..f9c37a7f6 --- /dev/null +++ b/helpcontent2/source/text/smath/01/03090100.xhp @@ -0,0 +1,322 @@ +<?xml version="1.0" encoding="UTF-8"?> + + +<!-- + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + --> + + + +<helpdocument version="1.0"> +<meta> +<topic id="textsmath0103090100xml" indexer="include" status="PUBLISH"> +<title id="tit" xml-lang="en-US">Unary/Binary Operators</title> +<filename>/text/smath/01/03090100.xhp</filename> +</topic> +<history> +<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created> +</history> +</meta> +<body> +<section id="unary_binary"> +<bookmark xml-lang="en-US" branch="index" id="bm_id3150342"><bookmark_value>unary operators</bookmark_value> +<bookmark_value>binary operators</bookmark_value> +<bookmark_value>operators; unary and binary</bookmark_value> +<bookmark_value>plus signs</bookmark_value> +<bookmark_value>plus/minus signs</bookmark_value> +<bookmark_value>minus/plus signs</bookmark_value> +<bookmark_value>multiplication signs</bookmark_value> +<bookmark_value>NOT operator</bookmark_value> +<bookmark_value>AND operator</bookmark_value> +<bookmark_value>logical operators</bookmark_value> +<bookmark_value>Boolean operators</bookmark_value> +<bookmark_value>OR operator</bookmark_value> +<bookmark_value>concatenating math symbols</bookmark_value> +<bookmark_value>addition signs</bookmark_value> +<bookmark_value>subtraction signs</bookmark_value> +<bookmark_value>minus signs</bookmark_value> +<bookmark_value>slash division sign</bookmark_value> +<bookmark_value>backslash division sign</bookmark_value> +<bookmark_value>indexes; adding to formulas</bookmark_value> +<bookmark_value>powers</bookmark_value> +<bookmark_value>division signs</bookmark_value> +<bookmark_value>user-defined operators;unary and binary</bookmark_value> +</bookmark> +<bookmark xml-lang="en-US" branch="hid/STARMATH_HID_SMA_UNBINOPS_TBX" id="bm_id3150200" localize="false"/> +<paragraph role="heading" id="hd_id3150342" xml-lang="en-US" level="1"><link href="text/smath/01/03090100.xhp" name="Unary/Binary Operators">Unary/Binary Operators</link></paragraph> +<paragraph role="paragraph" id="par_id3151241" xml-lang="en-US">You can choose various unary and binary operators to build your $[officename] Math formula. Unary refers to operators that affect one placeholder. Binary refers to operators that connect two placeholders. The lower area of the Elements pane displays the individual operators. The <link href="text/shared/00/00000001.xhp#contextmenu" name="context menu">context menu</link> of the <emph>Commands</emph> window also contains a list of these operators, as well as additional operators. If you need an operator that is not contained in the Elements pane, use the context menu or type it directly in the <emph>Commands</emph> window.</paragraph> +</section> +<section id="howtoget"> + <embed href="text/smath/00/00000004.xhp#unary_binary"/> +</section> +<paragraph role="paragraph" id="par_id3146963" xml-lang="en-US">The following is a complete list of the unary and binary operators. The symbol next to the operator indicates that it can be accessed through the Elements pane (choose <emph>View - Elements</emph>) or through the context menu of the Commands window.</paragraph> +<paragraph role="heading" id="hd_id3147405" xml-lang="en-US" level="2">Unary and Binary Operators</paragraph> +<table id="tbl_id3150392" > +<tablerow> +<tablecell> +<paragraph role="paragraph" id="par_idN10085" xml-lang="en-US"> + <image id="img_id3156399" src="media/helpimg/starmath/un21201.svg" width="1cm" height="1cm"><alt id="alt_id3156399" xml-lang="en-US">Plus Icon</alt> + </image></paragraph> +<bookmark xml-lang="en-US" branch="hid/STARMATH_HID_SMA_PLUSX" id="bm_id3157872" localize="false"/> +</tablecell> +<tablecell> +<paragraph role="tablehead" id="par_id3154555" xml-lang="en-US">Plus</paragraph> +<paragraph role="paragraph" id="par_id3153003" xml-lang="en-US"><ahelp hid="HID_SMA_PLUSX">Inserts a <emph>plus</emph> with one placeholder.</ahelp> You can also type <emph>+ <?></emph> in the <emph>Commands</emph> window.</paragraph> +</tablecell> +</tablerow> +</table> + +<table id="tbl_id3145244" > +<tablerow> +<tablecell> +<paragraph role="paragraph" id="par_idN100C1" xml-lang="en-US"> +<image id="img_id3148776" src="media/helpimg/starmath/un21202.svg" width="1cm" height="1cm"><alt id="alt_id3148776" xml-lang="en-US">Minus Icon</alt> + </image></paragraph> +<bookmark xml-lang="en-US" branch="hid/STARMATH_HID_SMA_MINUSX" id="bm_id3155374" localize="false"/> +</tablecell> +<tablecell> +<paragraph role="tablehead" id="par_id3155991" xml-lang="en-US">Minus</paragraph> +<paragraph role="paragraph" id="par_id3153717" xml-lang="en-US"><ahelp hid="HID_SMA_MINUSX">Inserts a <emph>minus</emph> with one placeholder.</ahelp> You can also type <emph>-<?></emph> in the <emph>Commands</emph> window.</paragraph> +</tablecell> +</tablerow> +</table> + +<table id="tbl_id3151264" > +<tablerow> +<tablecell> +<paragraph role="paragraph" id="par_idN100FD" xml-lang="en-US"> +<image id="img_id3150757" src="media/helpimg/starmath/un21203.svg" width="1cm" height="1cm"><alt id="alt_id3150757" xml-lang="en-US">Plus/Minus Icon</alt> + </image></paragraph> +<bookmark xml-lang="en-US" branch="hid/STARMATH_HID_SMA_PLUSMINUSX" id="bm_id3153623" localize="false"/> +</tablecell> +<tablecell> +<paragraph role="tablehead" id="par_id3153150" xml-lang="en-US">Plus/Minus</paragraph> +<paragraph role="paragraph" id="par_id3150260" xml-lang="en-US"><ahelp hid="HID_SMA_PLUSMINUSX">Inserts a <emph>plus/minus</emph> with one placeholder.</ahelp> You can also type <emph>+-<?></emph> in the <emph>Commands</emph> window.</paragraph> +</tablecell> +</tablerow> +</table> + +<table id="tbl_id3151171" > +<tablerow> +<tablecell> +<paragraph role="paragraph" id="par_idN10139" xml-lang="en-US"> +<image id="img_id3145410" src="media/helpimg/starmath/un21204.svg" width="1cm" height="1cm"><alt id="alt_id3145410" xml-lang="en-US">Minus/Plus Icon</alt> + </image></paragraph> +<bookmark xml-lang="en-US" branch="hid/STARMATH_HID_SMA_MINUSPLUSX" id="bm_id3153573" localize="false"/> +</tablecell> +<tablecell> +<paragraph role="tablehead" id="par_id3153582" xml-lang="en-US">Minus/Plus</paragraph> +<paragraph role="paragraph" id="par_id3154281" xml-lang="en-US"><ahelp hid="HID_SMA_MINUSPLUSX">Inserts a <emph>minus/plus</emph> with one placeholder.</ahelp> You can also type <emph>-+<?></emph> in the <emph>Commands</emph> window.</paragraph> +</tablecell> +</tablerow> +</table> + +<table id="tbl_id3154609" > +<tablerow> +<tablecell> +<paragraph role="paragraph" id="par_idN10175" xml-lang="en-US"> + <image id="img_id3151098" src="media/helpimg/starmath/un21205.svg" width="1cm" height="1cm"><alt id="alt_id3151098" xml-lang="en-US">Addition (plus) Icon</alt> + </image></paragraph> +<bookmark xml-lang="en-US" branch="hid/STARMATH_HID_SMA_XPLUSY" id="bm_id3154571" localize="false"/> +</tablecell> +<tablecell> +<paragraph role="tablehead" id="par_id3153669" xml-lang="en-US">Addition (plus)</paragraph> +<paragraph role="paragraph" id="par_id3150351" xml-lang="en-US"><ahelp hid="HID_SMA_XPLUSY">Inserts a <emph>plus</emph> with two placeholders.</ahelp> You can also type <emph><?>+<?></emph> in the Commands window.</paragraph> +</tablecell> +</tablerow> +</table> + +<table id="tbl_id3151308" > +<tablerow> +<tablecell> +<paragraph role="paragraph" id="par_idN101B0" xml-lang="en-US"> + <image id="img_id3155898" src="media/helpimg/starmath/un21206.svg" width="1cm" height="1cm"><alt id="alt_id3155898" xml-lang="en-US">Multiplication (dot) Icon</alt> + </image></paragraph> +<bookmark xml-lang="en-US" branch="hid/STARMATH_HID_SMA_XCDOTY" id="bm_id3149334" localize="false"/> +</tablecell> +<tablecell> +<paragraph role="tablehead" id="par_id3149343" xml-lang="en-US">Multiplication (dot)</paragraph> +<paragraph role="paragraph" id="par_id3154196" xml-lang="en-US"><ahelp hid="HID_SMA_XCDOTY">Inserts a dot operator with two placeholders.</ahelp> You can also type <emph><?>cdot<?></emph> in the <emph>Commands</emph> window.</paragraph> +</tablecell> +</tablerow> +</table> + +<table id="tbl_id3151332" > +<tablerow> +<tablecell> +<paragraph role="paragraph" id="par_idN101E9" xml-lang="en-US"> + <image id="img_id3149308" src="media/helpimg/starmath/un21207.svg" width="1cm" height="1cm"><alt id="alt_id3149308" xml-lang="en-US">Multiplication (x) Icon</alt> + </image></paragraph> +<bookmark xml-lang="en-US" branch="hid/STARMATH_HID_SMA_XTIMESY" id="bm_id3151248" localize="false"/> +</tablecell> +<tablecell> +<paragraph role="tablehead" id="par_id3151257" xml-lang="en-US">Multiplication (x)</paragraph> +<paragraph role="paragraph" id="par_id3149821" xml-lang="en-US"><ahelp hid="HID_SMA_XTIMESY">Inserts an 'x' <emph>multiplication</emph> with two placeholders.</ahelp> You can also type <emph><?>times<?></emph> in the <emph>Commands</emph> window.</paragraph> +</tablecell> +</tablerow> +</table> + +<table id="tbl_id3149797" > +<tablerow> +<tablecell> +<paragraph role="paragraph" id="par_idN10226" xml-lang="en-US"> + <image id="img_id3148982" src="media/helpimg/starmath/un21208.svg" width="1cm" height="1cm"><alt id="alt_id3148982" xml-lang="en-US">Multiplication (*) Icon</alt> + </image></paragraph> +<bookmark xml-lang="en-US" branch="hid/STARMATH_HID_SMA_XSYMTIMESY" id="bm_id3159477" localize="false"/> +</tablecell> +<tablecell> +<paragraph role="tablehead" id="par_id3159486" xml-lang="en-US">Multiplication (*)</paragraph> +<paragraph role="paragraph" id="par_id3149040" xml-lang="en-US"><ahelp hid="HID_SMA_XSYMTIMESY">Inserts an asterisk multiplication sign with two placeholders. </ahelp> You can also type <emph><?>*<?></emph> in the <emph>Commands</emph> window.</paragraph> +</tablecell> +</tablerow> +</table> + +<table id="tbl_id3152771" > +<tablerow> +<tablecell> +<paragraph role="paragraph" id="par_idN1025F" xml-lang="en-US"> + <image id="img_id3155140" src="media/helpimg/starmath/un21209.svg" width="1cm" height="1cm"><alt id="alt_id3155140" xml-lang="en-US">Subtraction Icon</alt> + </image></paragraph> +<bookmark xml-lang="en-US" branch="hid/STARMATH_HID_SMA_XMINUSY" id="bm_id3147078" localize="false"/> +</tablecell> +<tablecell> +<paragraph role="tablehead" id="par_id3147124" xml-lang="en-US">Subtraction</paragraph> +<paragraph role="paragraph" id="par_id3147136" xml-lang="en-US"><ahelp hid="HID_SMA_XMINUSY">Inserts a subtraction sign with two placeholders.</ahelp> You can also type <emph><?>-<?></emph> in the <emph>Commands</emph> window.</paragraph> +</tablecell> +</tablerow> +</table> + +<table id="tbl_id3150580" > +<tablerow> +<tablecell> +<paragraph role="paragraph" id="par_idN10298" xml-lang="en-US"> + <image id="img_id3149168" src="media/helpimg/starmath/un21210.svg" width="1cm" height="1cm"><alt id="alt_id3149168" xml-lang="en-US">Division (Fraction) Icon</alt> + </image></paragraph> +<bookmark xml-lang="en-US" branch="hid/STARMATH_HID_SMA_XOVERY" id="bm_id3154916" localize="false"/> +</tablecell> +<tablecell> +<paragraph role="tablehead" id="par_id3154926" xml-lang="en-US">Division (Fraction)</paragraph> +<paragraph role="paragraph" id="par_id3155125" xml-lang="en-US"><ahelp hid="HID_SMA_XOVERY">Inserts a fraction with two placeholders.</ahelp> You can also type <emph><?>over<?></emph> in the <emph>Commands</emph> window.</paragraph> +</tablecell> +</tablerow> +</table> + +<table id="tbl_id3147304" > +<tablerow> +<tablecell> +<paragraph role="paragraph" id="par_idN102D1" xml-lang="en-US"> + <image id="img_id3148765" src="media/helpimg/starmath/un21211.svg" width="1cm" height="1cm"><alt id="alt_id3148765" xml-lang="en-US">Division Icon</alt> + </image></paragraph> +<bookmark xml-lang="en-US" branch="hid/STARMATH_HID_SMA_XDIVY" id="bm_id3155910" localize="false"/> +</tablecell> +<tablecell> +<paragraph role="tablehead" id="par_id3151377" xml-lang="en-US">Division</paragraph> +<paragraph role="paragraph" id="par_id3149536" xml-lang="en-US"><ahelp hid="HID_SMA_XDIVY">Inserts a division sign with two placeholders.</ahelp> You can also type <emph><?>div<?></emph> in the <emph>Commands</emph> window.</paragraph> +</tablecell> +</tablerow> +</table> + +<table id="tbl_id3150120" > +<tablerow> +<tablecell> +<paragraph role="paragraph" id="par_idN1030A" xml-lang="en-US"> + <image id="img_id3147418" src="media/helpimg/starmath/un21212.svg" width="1cm" height="1cm"><alt id="alt_id3147418" xml-lang="en-US">Division (Slash) Icon</alt> + </image></paragraph> +<bookmark xml-lang="en-US" branch="hid/STARMATH_HID_SMA_XSYMDIVIDEY" id="bm_id3147619" localize="false"/> +</tablecell> +<tablecell> +<paragraph role="tablehead" id="par_id3147487" xml-lang="en-US">Division (Slash)</paragraph> +<paragraph role="paragraph" id="par_id3147500" xml-lang="en-US"><ahelp hid="HID_SMA_XSYMDIVIDEY">Inserts a slash '/' with two placeholders. </ahelp> You can also type <emph><?>/<?></emph> in the <emph>Commands</emph> window.</paragraph> +</tablecell> +</tablerow> +</table> + +<table id="tbl_id3145257" > +<tablerow> +<tablecell> +<paragraph role="paragraph" id="par_idN10343" xml-lang="en-US"> + <image id="img_id3149566" src="media/helpimg/starmath/un21213.svg" width="1cm" height="1cm"><alt id="alt_id3149566" xml-lang="en-US">Boolean NOT Icon</alt> + </image></paragraph> +<bookmark xml-lang="en-US" branch="hid/STARMATH_HID_SMA_NEGX" id="bm_id3150557" localize="false"/> +</tablecell> +<tablecell> +<paragraph role="tablehead" id="par_id3153493" xml-lang="en-US">Boolean NOT</paragraph> +<paragraph role="paragraph" id="par_id3153505" xml-lang="en-US"><ahelp hid="HID_SMA_NEGX">Inserts a <emph>Boolean NOT</emph> with one placeholder.</ahelp> You can also type <emph>neg<?></emph> in the <emph>Commands</emph> window.</paragraph> +</tablecell> +</tablerow> +</table> + +<table id="tbl_id3146327" > +<tablerow> +<tablecell> +<paragraph role="paragraph" id="par_idN10383" xml-lang="en-US"> + <image id="img_id3147116" src="media/helpimg/starmath/un21214.svg" width="1cm" height="1cm"><alt id="alt_id3147116" xml-lang="en-US">Boolean AND Icon</alt> + </image></paragraph> +<bookmark xml-lang="en-US" branch="hid/STARMATH_HID_SMA_XANDY" id="bm_id3149837" localize="false"/> +</tablecell> +<tablecell> +<paragraph role="tablehead" id="par_id3149847" xml-lang="en-US">Boolean AND</paragraph> +<paragraph role="paragraph" id="par_id3147599" xml-lang="en-US"><ahelp hid="HID_SMA_XANDY">Inserts a <emph>Boolean AND</emph> with two placeholders.</ahelp> You can also type <emph><?>and<?></emph> in the <emph>Commands</emph> window.</paragraph> +</tablecell> +</tablerow> +</table> + +<table id="tbl_id3155572" > +<tablerow> + <tablecell> +<paragraph role="paragraph" id="par_idN103C3" xml-lang="en-US"> + <image id="img_id3148440" src="media/helpimg/starmath/un21215.svg" width="1cm" height="1cm"><alt id="alt_id3148440" xml-lang="en-US">Boolean OR Icon</alt> + </image></paragraph> +<bookmark xml-lang="en-US" branch="hid/STARMATH_HID_SMA_XORY" id="bm_id3151077" localize="false"/> +</tablecell> +<tablecell> +<paragraph role="tablehead" id="par_id3151086" xml-lang="en-US">Boolean OR</paragraph> +<paragraph role="paragraph" id="par_id3154076" xml-lang="en-US"><ahelp hid="HID_SMA_XORY">Inserts a <emph>Boolean OR</emph> with two placeholders.</ahelp> You can also type <emph><?>or<?></emph> in the <emph>Commands</emph> window.</paragraph> +</tablecell> +</tablerow> +</table> + +<table id="tbl_id3154582" > +<tablerow> + <tablecell> +<paragraph role="paragraph" id="par_idN10403" xml-lang="en-US"> + <image id="img_id3150173" src="media/helpimg/starmath/un21221.svg" width="1cm" height="1cm"><alt id="alt_id3150173" xml-lang="en-US">Concatenate Icon</alt> + </image></paragraph> +<bookmark xml-lang="en-US" branch="hid/STARMATH_HID_SMA_XCIRCY" id="bm_id3151120" localize="false"/> +</tablecell> +<tablecell> +<paragraph role="tablehead" id="par_id3151129" xml-lang="en-US">Concatenate</paragraph> +<paragraph role="paragraph" id="par_id3156102" xml-lang="en-US"><ahelp hid="HID_SMA_XCIRCY">Inserts a <emph>concatenation sign</emph> with two placeholders. </ahelp> You can also type <emph>circ</emph> in the <emph>Commands</emph> window.</paragraph> +</tablecell> +</tablerow> +</table> + +<paragraph role="paragraph" id="par_id3150464" xml-lang="en-US">You can also insert user-defined unary operators by typing <emph>uoper</emph> in the <emph>Commands</emph> window, followed by the syntax for the character. This function is useful for incorporating special characters into a formula. For example, the command <emph>uoper %theta x</emph> produces a small Greek letter theta (a component of the <emph>$[officename] Math</emph> character set). You can also insert characters not in the $[officename] character set by choosing <emph>Tools - Symbols - Edit</emph>.</paragraph> +<paragraph role="paragraph" id="par_id3154725" xml-lang="en-US"> You can also insert user-defined binary commands by typing <emph>boper</emph> into the <emph>Commands</emph> window. For example, the command <emph>y boper %theta x</emph> produces the small Greek letter theta preceded by a <emph>y</emph> and followed by an <emph>x</emph>. You can also insert characters not in the $[officename] character set by choosing <emph>Tools - Symbols - Edit</emph>.</paragraph> +<paragraph role="paragraph" id="par_id3150906" xml-lang="en-US">By typing <emph><?>oplus<?></emph> in the <emph>Commands</emph> window, you insert a <emph>circled plus operator</emph> in your document.</paragraph> +<paragraph role="paragraph" id="par_id3151197" xml-lang="en-US">Type <emph><?>ominus<?></emph> in the <emph>Commands</emph> window to insert a <emph>circled minus operator</emph>.</paragraph> +<paragraph role="paragraph" id="par_id3155082" xml-lang="en-US">Type <emph><?>odot<?></emph> in the <emph>Commands</emph> window to insert a <emph>circled dot operator</emph> in the formula.</paragraph> +<paragraph role="paragraph" id="par_id3154331" xml-lang="en-US">Type <emph><?>odivide<?></emph> in the <emph>Commands</emph> window to insert a <emph>circled division operator</emph> in the formula.</paragraph> +<bookmark xml-lang="en-US" branch="hid/STARMATH_HID_SMA_XWIDESLASHY" id="bm_id3150101" localize="false"/> +<paragraph role="paragraph" id="par_id3150089" xml-lang="en-US"><ahelp hid="HID_SMA_XWIDESLASHY">Type <emph>a wideslash b</emph> in the <emph>Commands</emph> window to produce two characters with a slash (from lower left to upper right) between them.</ahelp> The characters are set such that everything to the left of the slash is up, and everything to the right is down. This command is also available in the context menu of the <emph>Commands</emph> window.</paragraph> +<bookmark xml-lang="en-US" branch="hid/STARMATH_HID_SMA_XWIDEBSLASHY" id="bm_id3150035" localize="false"/> +<paragraph role="paragraph" id="par_id3150024" xml-lang="en-US"><ahelp hid="HID_SMA_XWIDEBSLASHY">Type <emph>a widebslash b</emph> in the <emph>Commands</emph> window to produce two characters with a slash (from upper left to lower right) between them.</ahelp> The characters are set such that everything to the left of the slash is down, and everything to the right is up. This command is also available in the context menu of the <emph>Commands</emph> window.</paragraph> +<paragraph role="paragraph" id="par_id3149376" xml-lang="en-US">Type <emph>sub</emph> or <emph>sup</emph> in the Commands window to add indexes and powers to the characters in your formula; for example, a sub 2.</paragraph> +<paragraph role="tip" id="par_id3155383" xml-lang="en-US">If you want to use a colon ':' as division sign, choose <emph>Tools - Symbols</emph> or click the <emph>Symbols</emph> icon on the Tools bar. Click the <emph>Edit</emph> button in the dialog that appears, then select the <emph>Special</emph> symbol set. Enter a meaningful name next to <emph>Symbol</emph>, for example, "divide" and then click the colon in the set of symbols. Click <emph>Add</emph> and then <emph>OK</emph>. Click <emph>OK</emph> to close the <emph>Symbols</emph> dialog,too. Now you can use the new symbol, in this case the colon, by entering its name in the Commands window, for example, <emph>a %divide b = c</emph>.</paragraph> +<paragraph role="warning" id="par_id3147398" xml-lang="en-US">When entering information manually in the Commands window, please note that a number of operators require spaces between the elements for the correct structure. This is especially true if you are using values instead of placeholders in your operators, for example, to construct a division 4 div 3 or a div b.</paragraph> +</body> +</helpdocument> |