mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-11 09:50:27 +00:00
Add documentation and examples for the trigonometric filter operators (#6131)
* Added missing trigonometrics filter operators This PR adds support to trigonometry operators, allowing to create spider graphs and other geometric shapes with filters. * Adds the missing trigonometric filter operators This PR adds support to the missing trigonometric filter operators (cos, sin, tan, acos, asin, atan, atan2), allowing to create spider graphs, [pie charts, donut charts, polar charts](https://ffoodd.github.io/chaarts/pie-charts.html) and other geometric shapes with filters, which was previously not possible without add-ons. Example : `[[2]cos[]] = -0.4161468365471424` See also this radar chart made in wikitext by @saqimtiaz using the new trigonometric operators : https://saqimtiaz.github.io/sq-tw/temp/radar-chart-demo.html * Add documentation for the Trigonometric Operators Accompanies code changes #6127 * Fix formatting of atan2 Operator.tid Removed two empty lines at the end of the tiddler * Add examples for the trigonometric operators Accompanies code changes Jermolene#6127 * Fix version in the doc for trigonometric operators This PR fix the content of the documentation tiddlers regarding trigonometric operators (#6131). <<.from-version "5.1.20">> was changed to <<.from-version "5.1.21">> * Fix formatting of atan2 Operator.tid Removed two empty lines at the end of the tiddler
This commit is contained in:
parent
6b17e688da
commit
2f133a08aa
15
editions/tw5.com/tiddlers/filters/acos Operator.tid
Normal file
15
editions/tw5.com/tiddlers/filters/acos Operator.tid
Normal file
@ -0,0 +1,15 @@
|
||||
caption: acos
|
||||
created: 20211019211936842
|
||||
modified: 20211021222835888
|
||||
op-input: a [[selection of titles|Title Selection]]
|
||||
op-output: the arccosine (in radians) of the input numbers
|
||||
op-purpose: calculate the arccosine value (in radians) of a list of numbers
|
||||
tags: [[Filter Operators]] [[Mathematics Operators]] [[Trigonometric Operators]] [[Unary Mathematics Operators]]
|
||||
title: acos Operator
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<<.from-version "5.1.21">> See [[Mathematics Operators]] for an overview.
|
||||
|
||||
<<.tip " This is the inverse operation of [[cos|cos Operator]]: cos calculate the cosine of an angle (in radian), but acos calculate the angle (in radian) of a cosine.">>
|
||||
|
||||
<<.operator-examples "acos">>
|
15
editions/tw5.com/tiddlers/filters/asin Operator.tid
Normal file
15
editions/tw5.com/tiddlers/filters/asin Operator.tid
Normal file
@ -0,0 +1,15 @@
|
||||
caption: asin
|
||||
created: 20211019212120548
|
||||
modified: 20211021222841479
|
||||
op-input: a [[selection of titles|Title Selection]]
|
||||
op-output: the arcsine (in radians) of the input numbers
|
||||
op-purpose: calculate the arcsine value (in radians) of a list of numbers
|
||||
tags: [[Filter Operators]] [[Mathematics Operators]] [[Trigonometric Operators]] [[Unary Mathematics Operators]]
|
||||
title: asin Operator
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<<.from-version "5.1.21">> See [[Mathematics Operators]] for an overview.
|
||||
|
||||
<<.tip " This is the inverse operation of [[sin|sin Operator]]: sin calculate the sine of an angle (in radian), but asin calculate the angle (in radian) of a sine.">>
|
||||
|
||||
<<.operator-examples "asin">>
|
13
editions/tw5.com/tiddlers/filters/atan Operator.tid
Normal file
13
editions/tw5.com/tiddlers/filters/atan Operator.tid
Normal file
@ -0,0 +1,13 @@
|
||||
caption: atan
|
||||
created: 20211019211516128
|
||||
modified: 20211021222847610
|
||||
op-input: a [[selection of titles|Title Selection]]
|
||||
op-output: the arctangent (in radians) of the input numbers
|
||||
op-purpose: calculate the arctangent value (in radians) of a list of numbers
|
||||
tags: [[Filter Operators]] [[Mathematics Operators]] [[Trigonometric Operators]] [[Unary Mathematics Operators]]
|
||||
title: atan Operator
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<<.from-version "5.1.21">> See [[Mathematics Operators]] for an overview.
|
||||
|
||||
<<.operator-examples "atan">>
|
15
editions/tw5.com/tiddlers/filters/atan2 Operator.tid
Normal file
15
editions/tw5.com/tiddlers/filters/atan2 Operator.tid
Normal file
@ -0,0 +1,15 @@
|
||||
caption: atan2
|
||||
created: 20211019222810994
|
||||
modified: 20211021222853123
|
||||
op-input: a [[selection of titles|Title Selection]] = coordinate Y (<<.place Y>>)
|
||||
op-output: the angle in radians (in [ - π , π ] ) between the positive x-axis and the ray from (0,0) to the point (x,y)
|
||||
op-parameter: coordinate X
|
||||
op-parameter-name: X
|
||||
op-purpose: returns the angle in the plane (in radians) between the positive x-axis and the ray from (0,0) to the point (x,y), for [<<.place Y>>]atan2[<<.place X>>]
|
||||
tags: [[Filter Operators]] [[Mathematics Operators]] [[Binary Mathematics Operators]] [[Trigonometric Operators]]
|
||||
title: atan2 Operator
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<<.from-version "5.1.21">> See [[Mathematics Operators]] for an overview.
|
||||
|
||||
<<.operator-examples "atan2">>
|
13
editions/tw5.com/tiddlers/filters/cos Operator.tid
Normal file
13
editions/tw5.com/tiddlers/filters/cos Operator.tid
Normal file
@ -0,0 +1,13 @@
|
||||
caption: cos
|
||||
created: 20211019211007324
|
||||
modified: 20211021222900121
|
||||
op-input: a [[selection of titles|Title Selection]]
|
||||
op-output: the cosine of the input angles (numeric value between -1 and 1)
|
||||
op-purpose: calculate the cosine value of a list of angles (given in radians)
|
||||
tags: [[Filter Operators]] [[Mathematics Operators]] [[Trigonometric Operators]] [[Unary Mathematics Operators]]
|
||||
title: cos Operator
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<<.from-version "5.1.21">> See [[Mathematics Operators]] for an overview.
|
||||
|
||||
<<.operator-examples "cos">>
|
@ -0,0 +1,7 @@
|
||||
created: 20211020142658214
|
||||
modified: 20211020142724786
|
||||
tags: [[acos Operator]] [[Operator Examples]]
|
||||
title: acos Operator (Examples)
|
||||
|
||||
<<.operator-example 1 "[[2]acos[]]">>
|
||||
<<.operator-example 2 "=1 =2 =3 =4 +[acos[]]">>
|
@ -0,0 +1,7 @@
|
||||
created: 20211020142731829
|
||||
modified: 20211020142758974
|
||||
tags: [[Operator Examples]] [[asin Operator]]
|
||||
title: asin Operator (Examples)
|
||||
|
||||
<<.operator-example 1 "[[2]asin[]]">>
|
||||
<<.operator-example 2 "=1 =2 =3 =4 +[asin[]]">>
|
@ -0,0 +1,7 @@
|
||||
created: 20211020141113826
|
||||
modified: 20211020141329661
|
||||
tags: [[atan2 Operator]] [[Operator Examples]]
|
||||
title: atan Operator (Examples)
|
||||
|
||||
<<.operator-example 1 "[[2]atan[]]">>
|
||||
<<.operator-example 2 "=1 =2 =3 =4 +[atan[]]">>
|
@ -0,0 +1,7 @@
|
||||
created: 20211020140733724
|
||||
modified: 20211020140827194
|
||||
tags: [[atan2 Operator]] [[Operator Examples]]
|
||||
title: atan2 Operator (Examples)
|
||||
|
||||
<<.operator-example 1 "[[2]atan2[5]]">>
|
||||
<<.operator-example 2 "=1 =2 =3 =4 +[atan2[4]]">>
|
@ -0,0 +1,7 @@
|
||||
created: 20211020142042072
|
||||
modified: 20211020142110929
|
||||
tags: [[Operator Examples]] [[cos Operator]]
|
||||
title: cos Operator (Examples)
|
||||
|
||||
<<.operator-example 1 "[[2]cos[]]">>
|
||||
<<.operator-example 2 "=1 =2 =3 =4 +[cos[]]">>
|
@ -0,0 +1,7 @@
|
||||
created: 20211020142121129
|
||||
modified: 20211020142146276
|
||||
tags: [[Operator Examples]] [[sin Operator]]
|
||||
title: sin Operator (Examples)
|
||||
|
||||
<<.operator-example 1 "[[2]sin[]]">>
|
||||
<<.operator-example 2 "=1 =2 =3 =4 +[sin[]]">>
|
@ -0,0 +1,7 @@
|
||||
created: 20211020142158187
|
||||
modified: 20211020142222782
|
||||
tags: [[Operator Examples]] [[tan Operator]]
|
||||
title: tan Operator (Examples)
|
||||
|
||||
<<.operator-example 1 "[[2]tan[]]">>
|
||||
<<.operator-example 2 "=1 =2 =3 =4 +[tan[]]">>
|
13
editions/tw5.com/tiddlers/filters/sin Operator.tid
Normal file
13
editions/tw5.com/tiddlers/filters/sin Operator.tid
Normal file
@ -0,0 +1,13 @@
|
||||
caption: sin
|
||||
created: 20211019203650938
|
||||
modified: 20211021222816944
|
||||
op-input: a [[selection of titles|Title Selection]]
|
||||
op-output: the sine of the input angles (numeric value between -1 and 1)
|
||||
op-purpose: calculate the sine value of a list of angles (given in radians)
|
||||
tags: [[Filter Operators]] [[Mathematics Operators]] [[Trigonometric Operators]] [[Unary Mathematics Operators]]
|
||||
title: sin Operator
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<<.from-version "5.1.21">> See [[Mathematics Operators]] for an overview.
|
||||
|
||||
<<.operator-examples "sin">>
|
13
editions/tw5.com/tiddlers/filters/tan Operator.tid
Normal file
13
editions/tw5.com/tiddlers/filters/tan Operator.tid
Normal file
@ -0,0 +1,13 @@
|
||||
caption: tan
|
||||
created: 20211019211156303
|
||||
modified: 20211021222828332
|
||||
op-input: a [[selection of titles|Title Selection]]
|
||||
op-output: the tangent of the input angles
|
||||
op-purpose: calculate the tangent value of a list of angles (given in radians)
|
||||
tags: [[Filter Operators]] [[Mathematics Operators]] [[Trigonometric Operators]] [[Unary Mathematics Operators]]
|
||||
title: tan Operator
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<<.from-version "5.1.21">> See [[Mathematics Operators]] for an overview.
|
||||
|
||||
<<.operator-examples "tan">>
|
Loading…
Reference in New Issue
Block a user