From 7fcdc83bae1a06195036fd67876ffcf070d95572 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 11 Jun 2019 17:18:51 +0100 Subject: [PATCH] First batch of docs for the maths operators --- .../tiddlers/filters/Mathematics Operators.tid | 9 ++++++--- editions/tw5.com/tiddlers/filters/add.tid | 16 ++++++++-------- .../tiddlers/filters/divide Operator.tid | 15 +++++++++++++++ .../examples/add Operator (Examples).tid | 8 ++++++++ .../examples/divide Operator (Examples).tid | 8 ++++++++ .../exponential Operator (Examples).tid | 9 +++++++++ .../examples/fixed Operator (Examples).tid | 8 ++++++++ .../examples/max Operator (Examples).tid | 8 ++++++++ .../examples/maxall Operator (Examples).tid | 8 ++++++++ .../examples/min Operator (Examples).tid | 8 ++++++++ .../examples/minall Operator (Examples).tid | 8 ++++++++ .../examples/multiply Operator (Examples).tid | 8 ++++++++ .../examples/precision Operator (Examples).tid | 9 +++++++++ .../examples/product Operator (Examples).tid | 8 ++++++++ .../examples/remainder Operator (Examples).tid | 8 ++++++++ .../examples/subtract Operator (Examples).tid | 8 ++++++++ .../examples/sum Operator (Examples).tid | 8 ++++++++ .../tiddlers/filters/exponential Operator.tid | 17 +++++++++++++++++ .../tw5.com/tiddlers/filters/fixed Operator.tid | 17 +++++++++++++++++ .../tw5.com/tiddlers/filters/max Operator.tid | 17 +++++++++++++++++ .../tiddlers/filters/maxall Operator.tid | 15 +++++++++++++++ .../tw5.com/tiddlers/filters/min Operator.tid | 17 +++++++++++++++++ .../tiddlers/filters/minall Operator.tid | 15 +++++++++++++++ .../tiddlers/filters/multiply Operator.tid | 15 +++++++++++++++ .../tiddlers/filters/precision Operator.tid | 17 +++++++++++++++++ .../tiddlers/filters/product Operator.tid | 13 +++++++++++++ .../tiddlers/filters/remainder Operator.tid | 15 +++++++++++++++ .../tiddlers/filters/subtract Operator.tid | 15 +++++++++++++++ .../tw5.com/tiddlers/filters/sum Operator.tid | 13 +++++++++++++ 29 files changed, 329 insertions(+), 11 deletions(-) create mode 100644 editions/tw5.com/tiddlers/filters/divide Operator.tid create mode 100644 editions/tw5.com/tiddlers/filters/examples/add Operator (Examples).tid create mode 100644 editions/tw5.com/tiddlers/filters/examples/divide Operator (Examples).tid create mode 100644 editions/tw5.com/tiddlers/filters/examples/exponential Operator (Examples).tid create mode 100644 editions/tw5.com/tiddlers/filters/examples/fixed Operator (Examples).tid create mode 100644 editions/tw5.com/tiddlers/filters/examples/max Operator (Examples).tid create mode 100644 editions/tw5.com/tiddlers/filters/examples/maxall Operator (Examples).tid create mode 100644 editions/tw5.com/tiddlers/filters/examples/min Operator (Examples).tid create mode 100644 editions/tw5.com/tiddlers/filters/examples/minall Operator (Examples).tid create mode 100644 editions/tw5.com/tiddlers/filters/examples/multiply Operator (Examples).tid create mode 100644 editions/tw5.com/tiddlers/filters/examples/precision Operator (Examples).tid create mode 100644 editions/tw5.com/tiddlers/filters/examples/product Operator (Examples).tid create mode 100644 editions/tw5.com/tiddlers/filters/examples/remainder Operator (Examples).tid create mode 100644 editions/tw5.com/tiddlers/filters/examples/subtract Operator (Examples).tid create mode 100644 editions/tw5.com/tiddlers/filters/examples/sum Operator (Examples).tid create mode 100644 editions/tw5.com/tiddlers/filters/exponential Operator.tid create mode 100644 editions/tw5.com/tiddlers/filters/fixed Operator.tid create mode 100644 editions/tw5.com/tiddlers/filters/max Operator.tid create mode 100644 editions/tw5.com/tiddlers/filters/maxall Operator.tid create mode 100644 editions/tw5.com/tiddlers/filters/min Operator.tid create mode 100644 editions/tw5.com/tiddlers/filters/minall Operator.tid create mode 100644 editions/tw5.com/tiddlers/filters/multiply Operator.tid create mode 100644 editions/tw5.com/tiddlers/filters/precision Operator.tid create mode 100644 editions/tw5.com/tiddlers/filters/product Operator.tid create mode 100644 editions/tw5.com/tiddlers/filters/remainder Operator.tid create mode 100644 editions/tw5.com/tiddlers/filters/subtract Operator.tid create mode 100644 editions/tw5.com/tiddlers/filters/sum Operator.tid diff --git a/editions/tw5.com/tiddlers/filters/Mathematics Operators.tid b/editions/tw5.com/tiddlers/filters/Mathematics Operators.tid index 6a4b3c5c7..8fb021dbe 100644 --- a/editions/tw5.com/tiddlers/filters/Mathematics Operators.tid +++ b/editions/tw5.com/tiddlers/filters/Mathematics Operators.tid @@ -1,7 +1,8 @@ created: 20190206140446821 -modified: 20190206140446821 -title: Mathematics Operators +modified: 20190611155838557 tags: Filters +title: Mathematics Operators +type: text/vnd.tiddlywiki <<.from-version "5.1.20">>The mathematics filter operators allow numerical calculations to be performed within filters. @@ -11,6 +12,8 @@ The mathematics operators interpret their arguments as numbers according to the * If the argument cannot be interpreted as a number, the value 0 is used (e.g. `foo` is interpreted as the number 0) * The special values `Infinity` and `-Infinity` can be used to represent positive and negative infinity respectively +<$macrocall $name=".warning" _="Some filter operators remove duplicate items which can cause unexpected results when using the mathematics operators. See [[Dominant Append]] for details."/> + The mathematics operators take three different forms: * ''Unary operators'' apply an operation to each number in the input list (e.g. negate, truncate, sign) @@ -20,7 +23,7 @@ The mathematics operators take three different forms: * ''Binary operators'' apply an operation and operand to each number in the input list (e.g. add, multiply, remainder) ** <<.inline-operator-example "1 2 3 4 +[add[3]]">> ** <<.inline-operator-example "1 2 3 4 +[multiply[8]]">> -* ''Array operators'' apply an operation to all of the numbers in the input list, returning a single result (e.g. sum, product) +* ''Reducing operators'' apply an operation to all of the numbers in the input list, returning a single result (e.g. sum, product) ** <<.inline-operator-example "1 2 3 4 +[sum[]]">> ** <<.inline-operator-example "1 2 3 4 +[product[]]">> diff --git a/editions/tw5.com/tiddlers/filters/add.tid b/editions/tw5.com/tiddlers/filters/add.tid index 187e0483b..3bed37537 100644 --- a/editions/tw5.com/tiddlers/filters/add.tid +++ b/editions/tw5.com/tiddlers/filters/add.tid @@ -1,15 +1,15 @@ +caption: add created: 20190206140446821 -modified: 20190206140446821 +modified: 20190611125053329 +op-input: a [[selection of titles|Title Selection]] +op-output: the input as numbers, but with <<.place N>> added to each one +op-parameter: a number +op-parameter-name: N +op-purpose: treating each input title as a number, add to each the numeric value of the operand tags: [[Filter Operators]] [[Mathematics Operators]] [[Binary Mathematics Operators]] title: add Operator type: text/vnd.tiddlywiki -caption: add -op-purpose: treating each input title as a number, add to each the numeric value of the operand -op-input: a [[selection of titles|Title Selection]] -op-parameter: a number -op-parameter-name: N -op-output: the input as numbers, but with <<.place N>> added to each one -<<.from-version "5.1.20">> +<<.from-version "5.1.20">> See [[Mathematics Operators]] for an overview. <<.operator-examples "add">> diff --git a/editions/tw5.com/tiddlers/filters/divide Operator.tid b/editions/tw5.com/tiddlers/filters/divide Operator.tid new file mode 100644 index 000000000..9218c9a99 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/divide Operator.tid @@ -0,0 +1,15 @@ +caption: divide +created: 20190611125839100 +modified: 20190611125922960 +op-input: a [[selection of titles|Title Selection]] +op-output: the input as numbers, but with each one divided by <<.place N>> +op-parameter: a number +op-parameter-name: N +op-purpose: treating each input title as a number, divide them by the numeric value of the operand +tags: [[Filter Operators]] [[Mathematics Operators]] [[Binary Mathematics Operators]] +title: divide Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> See [[Mathematics Operators]] for an overview. + +<<.operator-examples "divide">> diff --git a/editions/tw5.com/tiddlers/filters/examples/add Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/add Operator (Examples).tid new file mode 100644 index 000000000..480c3d67f --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/add Operator (Examples).tid @@ -0,0 +1,8 @@ +created: 20190611125225770 +modified: 20190611125525466 +tags: [[after Operator]] [[Operator Examples]] +title: add Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "[[23]add[19]]">> +<<.operator-example 2 "=1 =2 =3 =4 +[add[4]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/divide Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/divide Operator (Examples).tid new file mode 100644 index 000000000..4204c8eec --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/divide Operator (Examples).tid @@ -0,0 +1,8 @@ +created: 20190611125929173 +modified: 20190611130146154 +tags: [[after Operator]] [[Operator Examples]] +title: divide Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "[[355]divide[113]]">> +<<.operator-example 2 "=1 =2 =3 =4 +[divide[2]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/exponential Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/exponential Operator (Examples).tid new file mode 100644 index 000000000..20a936167 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/exponential Operator (Examples).tid @@ -0,0 +1,9 @@ +created: 20190611154509136 +modified: 20190611154545304 +tags: [[after Operator]] [[Operator Examples]] +title: exponential Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "123456789 +[exponential[4]]">> +<<.operator-example 2 "123456789 +[exponential[13]]">> +<<.operator-example 3 "1.23E23 +[exponential[90]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/fixed Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/fixed Operator (Examples).tid new file mode 100644 index 000000000..e662e4c28 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/fixed Operator (Examples).tid @@ -0,0 +1,8 @@ +created: 20190611150610846 +modified: 20190611150743047 +tags: [[after Operator]] [[Operator Examples]] +title: fixed Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "10.123456789 +[fixed[5]]">> +<<.operator-example 2 "[[355]divide[113]fixed[7]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/max Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/max Operator (Examples).tid new file mode 100644 index 000000000..0a4524c12 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/max Operator (Examples).tid @@ -0,0 +1,8 @@ +created: 20190611130905752 +modified: 20190611130938471 +tags: [[after Operator]] [[Operator Examples]] +title: max Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "[[23]max[32]]">> +<<.operator-example 2 "=1 =2 =3 =4 +[max[3]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/maxall Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/maxall Operator (Examples).tid new file mode 100644 index 000000000..6f87c182f --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/maxall Operator (Examples).tid @@ -0,0 +1,8 @@ +created: 20190611160949615 +modified: 20190611161010568 +tags: [[after Operator]] [[Operator Examples]] +title: maxall Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "=1 =2 =3 =4 =5 +[maxall[]]">> +<<.operator-example 2 "[tag[HelloThere]get[text]length[]maxall[]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/min Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/min Operator (Examples).tid new file mode 100644 index 000000000..5d3638846 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/min Operator (Examples).tid @@ -0,0 +1,8 @@ +created: 20190611131138259 +modified: 20190611131149542 +tags: [[after Operator]] [[Operator Examples]] +title: min Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "[[23]min[32]]">> +<<.operator-example 2 "=1 =2 =3 =4 +[min[3]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/minall Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/minall Operator (Examples).tid new file mode 100644 index 000000000..c1d594cce --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/minall Operator (Examples).tid @@ -0,0 +1,8 @@ +created: 20190611161051108 +modified: 20190611161107239 +tags: [[after Operator]] [[Operator Examples]] +title: minall Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "=1 =2 =3 =4 =5 +[minall[]]">> +<<.operator-example 2 "[tag[HelloThere]get[text]length[]minall[]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/multiply Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/multiply Operator (Examples).tid new file mode 100644 index 000000000..9638b47e0 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/multiply Operator (Examples).tid @@ -0,0 +1,8 @@ +created: 20190611125743568 +modified: 20190611125757767 +tags: [[after Operator]] [[Operator Examples]] +title: multiply Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "[[23]multiply[19]]">> +<<.operator-example 2 "=1 =2 =3 =4 +[multiply[4]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/precision Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/precision Operator (Examples).tid new file mode 100644 index 000000000..96a17356f --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/precision Operator (Examples).tid @@ -0,0 +1,9 @@ +created: 20190611151444751 +modified: 20190611154248537 +tags: [[after Operator]] [[Operator Examples]] +title: precision Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "123456789 +[precision[3]]">> +<<.operator-example 2 "123456789 +[precision[13]]">> +<<.operator-example 3 "1.23E23 +[precision[90]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/product Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/product Operator (Examples).tid new file mode 100644 index 000000000..5f8bbd42a --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/product Operator (Examples).tid @@ -0,0 +1,8 @@ +created: 20190611160221390 +modified: 20190611160243829 +tags: [[after Operator]] [[Operator Examples]] +title: product Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "=1 =2 =3 =4 =5 +[product[]]">> +<<.operator-example 2 "[tag[HelloThere]get[text]length[]product[]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/remainder Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/remainder Operator (Examples).tid new file mode 100644 index 000000000..b88cecc4f --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/remainder Operator (Examples).tid @@ -0,0 +1,8 @@ +created: 20190611130110805 +modified: 20190611130121033 +tags: [[after Operator]] [[Operator Examples]] +title: remainder Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "[[23]remainder[3]]">> +<<.operator-example 2 "=1 =2 =3 =4 +[remainder[2]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/subtract Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/subtract Operator (Examples).tid new file mode 100644 index 000000000..3ed88db33 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/subtract Operator (Examples).tid @@ -0,0 +1,8 @@ +created: 20190611125619962 +modified: 20190611125638512 +tags: [[after Operator]] [[Operator Examples]] +title: subtract Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "[[23]subtract[19]]">> +<<.operator-example 2 "=1 =2 =3 =4 +[subtract[4]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/sum Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/sum Operator (Examples).tid new file mode 100644 index 000000000..2f97564d7 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/sum Operator (Examples).tid @@ -0,0 +1,8 @@ +created: 20190611160000682 +modified: 20190611160139594 +tags: [[after Operator]] [[Operator Examples]] +title: sum Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "=1 =2 =3 =4 =5 +[sum[]]">> +<<.operator-example 2 "[tag[HelloThere]get[text]length[]sum[]]">> diff --git a/editions/tw5.com/tiddlers/filters/exponential Operator.tid b/editions/tw5.com/tiddlers/filters/exponential Operator.tid new file mode 100644 index 000000000..ab1342b3b --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/exponential Operator.tid @@ -0,0 +1,17 @@ +caption: exponential +created: 20190611154259136 +modified: 20190611154505880 +op-input: a [[selection of titles|Title Selection]] +op-output: the input as numbers converted to exponential notation with <<.place N>> digits +op-parameter: a number +op-parameter-name: N +op-purpose: convert each number to exponential notation with <<.place N>> digits +tags: [[Filter Operators]] [[Mathematics Operators]] [[Binary Mathematics Operators]] +title: exponential Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> See [[Mathematics Operators]] for an overview. + +The ''exponential'' operator returns a string representation of the input number in exponential notation with the specified number of digits. If a number has more digits than requested, the number is rounded to the nearest number represented by the specified number of digits + +<<.operator-examples "exponential">> diff --git a/editions/tw5.com/tiddlers/filters/fixed Operator.tid b/editions/tw5.com/tiddlers/filters/fixed Operator.tid new file mode 100644 index 000000000..240ae61db --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/fixed Operator.tid @@ -0,0 +1,17 @@ +caption: fixed +created: 20190611150505495 +modified: 20190611150931872 +op-input: a [[selection of titles|Title Selection]] +op-output: the input as numbers converted to fixed point notation with <<.place N>> digits after the decimal point +op-parameter: a number +op-parameter-name: N +op-purpose: convert each number to fixed point notation with <<.place N>> digits after the decimal point +tags: [[Filter Operators]] [[Mathematics Operators]] [[Binary Mathematics Operators]] +title: fixed Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> See [[Mathematics Operators]] for an overview. + +The ''fixed'' operator returns a string representation of the input number that does not use exponential notation and has exactly the specified number of digits after the decimal place. The number is rounded if necessary, and the fractional part is padded with zeros if necessary so that it has the specified length. + +<<.operator-examples "fixed">> diff --git a/editions/tw5.com/tiddlers/filters/max Operator.tid b/editions/tw5.com/tiddlers/filters/max Operator.tid new file mode 100644 index 000000000..837c456ce --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/max Operator.tid @@ -0,0 +1,17 @@ +caption: max +created: 20190611130631390 +modified: 20190611131047026 +op-input: a [[selection of titles|Title Selection]] +op-output: the input as numbers, with any that are less than <<.place N>> being replaced by <<.place N>> +op-parameter: a number +op-parameter-name: N +op-purpose: treating each input title as a number, take the maximum of its value and the numeric value of the operand +tags: [[Filter Operators]] [[Mathematics Operators]] [[Binary Mathematics Operators]] +title: max Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> See [[Mathematics Operators]] for an overview. + +See also the [[min Operator]], and compare with the [[maxall Operator]] and the [[minall Operator]]. + +<<.operator-examples "max">> diff --git a/editions/tw5.com/tiddlers/filters/maxall Operator.tid b/editions/tw5.com/tiddlers/filters/maxall Operator.tid new file mode 100644 index 000000000..d14c6982d --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/maxall Operator.tid @@ -0,0 +1,15 @@ +caption: maxall +created: 20190611160656499 +modified: 20190611160942704 +op-input: a [[selection of titles|Title Selection]] +op-output: the largest of the input numbers +op-purpose: find the largest of a list of numbers +tags: [[Reducing Mathematics Operators]] [[Filter Operators]] [[Mathematics Operators]] +title: maxall Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> See [[Mathematics Operators]] for an overview. + +See also the [[minall Operator]], and compare with the [[max Operator]] and the [[min Operator]]. + +<<.operator-examples "maxall">> diff --git a/editions/tw5.com/tiddlers/filters/min Operator.tid b/editions/tw5.com/tiddlers/filters/min Operator.tid new file mode 100644 index 000000000..2966eea39 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/min Operator.tid @@ -0,0 +1,17 @@ +caption: min +created: 20190611131102707 +modified: 20190611131135931 +op-input: a [[selection of titles|Title Selection]] +op-output: the input as numbers, with any that are greater than <<.place N>> being replaced by <<.place N>> +op-parameter: a number +op-parameter-name: N +op-purpose: treating each input title as a number, take the minimum of its value and the numeric value of the operand +tags: [[Filter Operators]] [[Mathematics Operators]] [[Binary Mathematics Operators]] +title: min Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> See [[Mathematics Operators]] for an overview. + +See also the [[min Operator]], and compare with the [[maxall Operator]] and the [[minall Operator]]. + +<<.operator-examples "min">> diff --git a/editions/tw5.com/tiddlers/filters/minall Operator.tid b/editions/tw5.com/tiddlers/filters/minall Operator.tid new file mode 100644 index 000000000..83f6ab495 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/minall Operator.tid @@ -0,0 +1,15 @@ +caption: minall +created: 20190611161015153 +modified: 20190611161043817 +op-input: a [[selection of titles|Title Selection]] +op-output: the smallest of the input numbers +op-purpose: find the smallest of a list of numbers +tags: [[Reducing Mathematics Operators]] [[Filter Operators]] [[Mathematics Operators]] +title: minall Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> See [[Mathematics Operators]] for an overview. + +See also the [[maxall Operator]], and compare with the [[max Operator]] and the [[min Operator]]. + +<<.operator-examples "minall">> diff --git a/editions/tw5.com/tiddlers/filters/multiply Operator.tid b/editions/tw5.com/tiddlers/filters/multiply Operator.tid new file mode 100644 index 000000000..c555b0a60 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/multiply Operator.tid @@ -0,0 +1,15 @@ +caption: multiply +created: 20190611125657820 +modified: 20190611125816555 +op-input: a [[selection of titles|Title Selection]] +op-output: the input as numbers, but with each one multiplied by <<.place N>> +op-parameter: a number +op-parameter-name: N +op-purpose: treating each input title as a number, multiply it by the numeric value of the operand +tags: [[Filter Operators]] [[Mathematics Operators]] [[Binary Mathematics Operators]] +title: multiply Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> See [[Mathematics Operators]] for an overview. + +<<.operator-examples "multiply">> diff --git a/editions/tw5.com/tiddlers/filters/precision Operator.tid b/editions/tw5.com/tiddlers/filters/precision Operator.tid new file mode 100644 index 000000000..168fe8ef8 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/precision Operator.tid @@ -0,0 +1,17 @@ +caption: precision +created: 20190611150935800 +modified: 20190611151434569 +op-input: a [[selection of titles|Title Selection]] +op-output: the input as numbers with <<.place N>> significant digits +op-parameter: a number +op-parameter-name: N +op-purpose: convert each number to a string with <<.place N>> significant digits +tags: [[Filter Operators]] [[Mathematics Operators]] [[Binary Mathematics Operators]] +title: precision Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> See [[Mathematics Operators]] for an overview. + +The ''precision'' operator returns a string representation of the input number that has exactly the specified number of significant digits, using whichever is shorter of [[exponential|exponential Operator]] or [[fixed|fixed Operator]] notation. + +<<.operator-examples "precision">> diff --git a/editions/tw5.com/tiddlers/filters/product Operator.tid b/editions/tw5.com/tiddlers/filters/product Operator.tid new file mode 100644 index 000000000..175a8718d --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/product Operator.tid @@ -0,0 +1,13 @@ +caption: product +created: 20190611160145434 +modified: 20190611160215653 +op-input: a [[selection of titles|Title Selection]] +op-output: the result of multiplying together the input as numbers +op-purpose: produce the product of the input numbers +tags: [[Reducing Mathematics Operators]] [[Filter Operators]] [[Mathematics Operators]] +title: product Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> See [[Mathematics Operators]] for an overview. + +<<.operator-examples "product">> diff --git a/editions/tw5.com/tiddlers/filters/remainder Operator.tid b/editions/tw5.com/tiddlers/filters/remainder Operator.tid new file mode 100644 index 000000000..ede8b314c --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/remainder Operator.tid @@ -0,0 +1,15 @@ +caption: remainder +created: 20190611130006275 +modified: 20190611130107195 +op-input: a [[selection of titles|Title Selection]] +op-output: the input as numbers, but with each replaced by the remainder when dividing it by <<.place N>> +op-parameter: a number +op-parameter-name: N +op-purpose: treating each input title as a number, return the remainder when divided by the numeric value of the operand +tags: [[Filter Operators]] [[Mathematics Operators]] [[Binary Mathematics Operators]] +title: remainder Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> See [[Mathematics Operators]] for an overview. + +<<.operator-examples "remainder">> diff --git a/editions/tw5.com/tiddlers/filters/subtract Operator.tid b/editions/tw5.com/tiddlers/filters/subtract Operator.tid new file mode 100644 index 000000000..c386b90ff --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/subtract Operator.tid @@ -0,0 +1,15 @@ +caption: subtract +created: 20190611125542096 +modified: 20190611125616692 +op-input: a [[selection of titles|Title Selection]] +op-output: the input as numbers, but with <<.place N>> subtracted from each one +op-parameter: a number +op-parameter-name: N +op-purpose: treating each input title as a number, subtract from each the numeric value of the operand +tags: [[Filter Operators]] [[Mathematics Operators]] [[Binary Mathematics Operators]] +title: subtract Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> See [[Mathematics Operators]] for an overview. + +<<.operator-examples "subtract">> diff --git a/editions/tw5.com/tiddlers/filters/sum Operator.tid b/editions/tw5.com/tiddlers/filters/sum Operator.tid new file mode 100644 index 000000000..fe5d09788 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/sum Operator.tid @@ -0,0 +1,13 @@ +caption: sum +created: 20190611155400623 +modified: 20190611155953322 +op-input: a [[selection of titles|Title Selection]] +op-output: the result of adding together the input as numbers +op-purpose: produce the sum of the input numbers +tags: [[Reducing Mathematics Operators]] [[Filter Operators]] [[Mathematics Operators]] +title: sum Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> See [[Mathematics Operators]] for an overview. + +<<.operator-examples "sum">>