Skip to content

Commit e06c404

Browse files
authored
Add relevent links to other math functions (#845)
1 parent f6a8d7d commit e06c404

File tree

8 files changed

+73
-3
lines changed

8 files changed

+73
-3
lines changed

Language/Functions/Math/abs.adoc

+9
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,14 @@ a++; // keep other math outside the function
9999
[float]
100100
=== See also
101101

102+
[role="language"]
103+
* #LANGUAGE# link:../constrain[constrain()]
104+
* #LANGUAGE# link:../map[map()]
105+
* #LANGUAGE# link:../max[max()]
106+
* #LANGUAGE# link:../min[min()]
107+
* #LANGUAGE# link:../pow[pow()]
108+
* #LANGUAGE# link:../sq[sq()]
109+
* #LANGUAGE# link:../sqrt[sqrt()]
110+
102111
--
103112
// SEE ALSO SECTION ENDS

Language/Functions/Math/constrain.adoc

+9
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,14 @@ int constrainedInput = constrain(input, minimumValue, maximumValue);
8888
[float]
8989
=== See also
9090

91+
[role="language"]
92+
* #LANGUAGE# link:../abs[abs()]
93+
* #LANGUAGE# link:../map[map()]
94+
* #LANGUAGE# link:../max[max()]
95+
* #LANGUAGE# link:../min[min()]
96+
* #LANGUAGE# link:../pow[pow()]
97+
* #LANGUAGE# link:../sq[sq()]
98+
* #LANGUAGE# link:../sqrt[sqrt()]
99+
91100
--
92101
// SEE ALSO SECTION ENDS

Language/Functions/Math/map.adoc

+9
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,14 @@ As previously mentioned, the map() function uses integer math. So fractions migh
109109
[float]
110110
=== See also
111111

112+
[role="language"]
113+
* #LANGUAGE# link:../abs[abs()]
114+
* #LANGUAGE# link:../constrain[constrain()]
115+
* #LANGUAGE# link:../max[max()]
116+
* #LANGUAGE# link:../min[min()]
117+
* #LANGUAGE# link:../pow[pow()]
118+
* #LANGUAGE# link:../sq[sq()]
119+
* #LANGUAGE# link:../sqrt[sqrt()]
120+
112121
--
113122
// SEE ALSO SECTION ENDS

Language/Functions/Math/max.adoc

+10
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,15 @@ a--; // keep other math outside the function
8383
[float]
8484
=== See also
8585

86+
[role="language"]
87+
* #LANGUAGE# link:../abs[abs()]
88+
* #LANGUAGE# link:../constrain[constrain()]
89+
* #LANGUAGE# link:../map[map()]
90+
* #LANGUAGE# link:../min[min()]
91+
* #LANGUAGE# link:../pow[pow()]
92+
* #LANGUAGE# link:../sq[sq()]
93+
* #LANGUAGE# link:../sqrt[sqrt()]
94+
95+
8696
--
8797
// SEE ALSO SECTION ENDS

Language/Functions/Math/min.adoc

+9
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,14 @@ a++; // use this instead - keep other math outside the function
8282
[float]
8383
=== See also
8484

85+
[role="language"]
86+
* #LANGUAGE# link:../abs[abs()]
87+
* #LANGUAGE# link:../constrain[constrain()]
88+
* #LANGUAGE# link:../map[map()]
89+
* #LANGUAGE# link:../max[max()]
90+
* #LANGUAGE# link:../pow[pow()]
91+
* #LANGUAGE# link:../sq[sq()]
92+
* #LANGUAGE# link:../sqrt[sqrt()]
93+
8594
--
8695
// SEE ALSO SECTION ENDS

Language/Functions/Math/pow.adoc

+9-3
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,15 @@ See the (http://arduino.cc/playground/Main/Fscale[fscale]) sketch for a more com
6666
[float]
6767
=== See also
6868

69-
[role="definition"]
70-
* #DEFINITION# link:../../../variables/data-types/float[float]
71-
* #DEFENITION# link:../../../variables/data-types/double[double]
69+
[role="language"]
70+
* #LANGUAGE# link:../abs[abs()]
71+
* #LANGUAGE# link:../constrain[constrain()]
72+
* #LANGUAGE# link:../map[map()]
73+
* #LANGUAGE# link:../max[max()]
74+
* #LANGUAGE# link:../min[min()]
75+
* #LANGUAGE# link:../sq[sq()]
76+
* #LANGUAGE# link:../sqrt[sqrt()]
77+
7278

7379
--
7480
// SEE ALSO SECTION ENDS

Language/Functions/Math/sq.adoc

+9
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,14 @@ int inputSquared = sq(input);
7272
[float]
7373
=== See also
7474

75+
[role="language"]
76+
* #LANGUAGE# link:../abs[abs()]
77+
* #LANGUAGE# link:../constrain[constrain()]
78+
* #LANGUAGE# link:../map[map()]
79+
* #LANGUAGE# link:../max[max()]
80+
* #LANGUAGE# link:../min[min()]
81+
* #LANGUAGE# link:../pow[pow()]
82+
* #LANGUAGE# link:../sqrt[sqrt()]
83+
7584
--
7685
// SEE ALSO SECTION ENDS

Language/Functions/Math/sqrt.adoc

+9
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,14 @@ The number's square root. Data type: `double`.
4646
[float]
4747
=== See also
4848

49+
[role="language"]
50+
* #LANGUAGE# link:../abs[abs()]
51+
* #LANGUAGE# link:../constrain[constrain()]
52+
* #LANGUAGE# link:../map[map()]
53+
* #LANGUAGE# link:../max[max()]
54+
* #LANGUAGE# link:../min[min()]
55+
* #LANGUAGE# link:../pow[pow()]
56+
* #LANGUAGE# link:../sq[sq()]
57+
4958
--
5059
// SEE ALSO SECTION ENDS

0 commit comments

Comments
 (0)