First-class functions: Difference between revisions

Content added Content deleted
(→‎{{header|REXX}}: Removed white space from many <math> tags - restoring visibility to Pi, fixing ill-formed HTML)
Line 2,134: Line 2,134:
The reason why &nbsp; '''Asin[sin(n)]''' &nbsp; may not equal &nbsp; '''n''':
The reason why &nbsp; '''Asin[sin(n)]''' &nbsp; may not equal &nbsp; '''n''':


Each of the trigonometric functions is periodic in the real part of its argument, running through all its values twice in each interval of &nbsp; <big>2<big><math> \pi </math></big></big>.
Each of the trigonometric functions is periodic in the real part of its argument, running through all its values twice in each interval of &nbsp; <big>2<big><math>\pi</math></big></big>.


'''Sine''' and '''cosecant''' &nbsp; begin their period at &nbsp; <big>2<big><math> \pi </math></big>k − <big><math> \pi </math></big>/2</big> &nbsp; (where &nbsp; <big>k</big> &nbsp; is an integer), &nbsp; finish it at &nbsp; <big>2<big><math> \pi </math></big>k + <big><math> \pi </math></big>/2</big>, &nbsp; and then reverse themselves over &nbsp; <big>2<big><math> \pi </math></big>k + <big><math> \pi </math></big>/2</big> &nbsp; ───► &nbsp; <big>2<big><math> \pi </math></big>k + 3<big><math> \pi </math></big>/2</big>.
'''Sine''' and '''cosecant''' &nbsp; begin their period at &nbsp; <big>2<big><math>\pi</math></big>k − <big><math>\pi</math></big>/2</big> &nbsp; (where &nbsp; <big>k</big> &nbsp; is an integer), &nbsp; finish it at &nbsp; <big>2<big><math>\pi</math></big>k + <big><math>\pi</math></big>/2</big>, &nbsp; and then reverse themselves over &nbsp; <big>2<big><math>\pi</math></big>k + <big><math>\pi</math></big>/2</big> &nbsp; ───► &nbsp; <big>2<big><math>\pi</math></big>k + 3<big><math>\pi</math></big>/2</big>.


'''Cosine''' &nbsp; and &nbsp; '''secant''' &nbsp; begin their period at &nbsp; <big>2<big><math> \pi </math></big>k</big>, &nbsp; finish it at &nbsp; <big>2<big><math> \pi </math></big>k + <big><math> \pi </math></big></big>, &nbsp; and then reverse themselves over &nbsp; <big>2<big><math> \pi </math></big>k + <big><math> \pi </math></big></big> &nbsp; ───► &nbsp; <big>2<big><math> \pi </math></big>k + 2<big><math> \pi </math></big></big>.
'''Cosine''' &nbsp; and &nbsp; '''secant''' &nbsp; begin their period at &nbsp; <big>2<big><math>\pi</math></big>k</big>, &nbsp; finish it at &nbsp; <big>2<big><math>\pi</math></big>k + <big><math>\pi</math></big></big>, &nbsp; and then reverse themselves over &nbsp; <big>2<big><math>\pi</math></big>k + <big><math>\pi</math></big></big> &nbsp; ───► &nbsp; <big>2<big><math>\pi</math></big>k + 2<big><math> \pi </math></big></big>.


'''Tangent''' &nbsp; begins its period at &nbsp; <big>2<big><math> \pi </math></big>k − <big><math> \pi </math></big>/2</big>, &nbsp; &nbsp; finishes it at &nbsp; <big>2<big><math> \pi </math></big>k + <big><math> \pi </math></big>/2</big>, &nbsp; and then repeats it (forward) over <big>2<big><math> \pi </math></big>k + <big><math> \pi </math></big>/2</big> &nbsp; ───► &nbsp; <big>2<big><math> \pi </math></big>k + 3<big><math> \pi </math></big>/2</big>.
'''Tangent''' &nbsp; begins its period at &nbsp; <big>2<big><math>\pi</math></big>k − <big><math>\pi</math></big>/2</big>, &nbsp; &nbsp; finishes it at &nbsp; <big>2<big><math>\pi</math></big>k + <big><math>\pi</math></big>/2</big>, &nbsp; and then repeats it (forward) over <big>2<big><math>\pi</math></big>k + <big><math>\pi</math></big>/2</big> &nbsp; ───► &nbsp; <big>2<big><math>\pi</math></big>k + 3<big><math>\pi</math></big>/2</big>.


'''Cotangent''' &nbsp; begins its period at &nbsp; <big>2<big><math> \pi </math></big>k</big>, &nbsp; finishes it at &nbsp; <big>2<big><math> \pi </math></big>k + <big><math> \pi </math></big></big>, &nbsp; and then repeats it (forward) over <big>2<big><math> \pi </math></big>k + <big><math> \pi </math></big></big> &nbsp; ───► &nbsp; <big>2<big><math> \pi </math></big>k + 2<big><math> \pi </math></big></big>.
'''Cotangent''' &nbsp; begins its period at &nbsp; <big>2<big><math>\pi</math></big>k</big>, &nbsp; finishes it at &nbsp; <big>2<big><math>\pi</math></big>k + <big><math>\pi</math></big></big>, &nbsp; and then repeats it (forward) over <big>2<big><math>\pi</math></big>k + <big><math>\pi</math></big></big> &nbsp; ───► &nbsp; <big>2<big><math>\pi</math></big>k + 2<big><math>\pi</math></big></big>.


<br>The above text is from the Wikipedia webpage: &nbsp; http://en.wikipedia.org/wiki/Inverse_trigonometric_functions
<br>The above text is from the Wikipedia webpage: &nbsp; http://en.wikipedia.org/wiki/Inverse_trigonometric_functions