You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -45,18 +44,18 @@ By default, if *x* is less than -1 or greater than 1, **acos** returns an indefi
45
44
46
45
## Remarks
47
46
48
-
Because C++ allows overloading, you can call overloads of **acos** that take and return **`float`** and **`long double`** types. In a C program, unless you're using the \<tgmath.h> macro to call this function, **acos** always takes and returns a **`double`**.
47
+
Because C++ allows overloading, you can call overloads of **`acos`** that take and return **`float`** and **`long double`** types. In a C program, unless you're using the `<tgmath.h>` macro to call this function, **acos** always takes and returns a **`double`**.
49
48
50
-
If you use the \<tgmath.h> `acos()` macro, the type of the argument determines which version of the function is selected. See [Type-generic math](../../c-runtime-library/tgmath.md) for details.
49
+
If you use the `<tgmath.h>` `acos()` macro, the type of the argument determines which version of the function is selected. See [Type-generic math](../../c-runtime-library/tgmath.md) for details.
51
50
52
51
By default, this function's global state is scoped to the application. To change this, see [Global state in the CRT](../global-state.md).
Because C++ allows overloading, you can call overloads of **asin** with **`float`** and **`long double`** values. In a C program, unless you're using the \<tgmath.h> macro to call this function, **asin** always takes and returns a **`double`**.
47
+
Because C++ allows overloading, you can call overloads of **`asin`** with **`float`** and **`long double`** values. In a C program, unless you're using the `<tgmath.h>` macro to call this function, **`asin`** always takes and returns a **`double`**.
49
48
50
-
If you use the \<tgmath.h> `asin()` macro, the type of the argument determines which version of the function is selected. See [Type-generic math](../../c-runtime-library/tgmath.md) for details.
49
+
If you use the `<tgmath.h>` `asin()` macro, the type of the argument determines which version of the function is selected. See [Type-generic math](../../c-runtime-library/tgmath.md) for details.
51
50
52
51
By default, this function's global state is scoped to the application. To change this, see [Global state in the CRT](../global-state.md).
Calculates the arctangent of **x** (**atan**, **atanf**, and **atanl**) or the arctangent of **y**/**x** (**atan2**, **atan2f**, and **atan2l**).
14
+
Calculates the arctangent of **`x`** (**`atan`**, **`atanf`**, and **`atanl`**) or the arctangent of **`y`**/**`x`** (**`atan2`**, **`atan2f`**, and **`atan2l`**).
16
15
17
16
## Syntax
18
17
@@ -36,37 +35,37 @@ long double atan2( long double y, long double x ); // C++ only
36
35
37
36
### Parameters
38
37
39
-
*x*, *y*\
38
+
*`x`*, *`y`*\
40
39
Any numbers.
41
40
42
41
## Return Value
43
42
44
-
**atan** returns the arctangent of *x* in the range -π/2 to π/2 radians. **atan2** returns the arctangent of *y*/*x* in the range -π to π radians. If *x* is 0, **atan** returns 0. If both parameters of **atan2** are 0, the function returns 0. All results are in radians.
43
+
**`atan`** returns the arctangent of *`x`* in the range -π/2 to π/2 radians. **`atan2`** returns the arctangent of *`y`*/*`x`* in the range -π to π radians. If *`x`* is 0, **`atan`** returns 0. If both parameters of **`atan2`** are 0, the function returns 0. All results are in radians.
45
44
46
-
**atan2** uses the signs of both parameters to determine the quadrant of the return value.
45
+
**`atan2`** uses the signs of both parameters to determine the quadrant of the return value.
The **atan** function calculates the arctangent (the inverse tangent function) of *x*. **atan2** calculates the arctangent of *y*/*x* (if *x* equals 0, **atan2** returns π/2 if *y* is positive, -π/2 if *y* is negative, or 0 if *y* is 0.)
53
+
The **`atan`** function calculates the arctangent (the inverse tangent function) of *`x`*. **`atan2`** calculates the arctangent of *`y`*/*`x`* (if *`x`* equals 0, **`atan2`** returns π/2 if *`y`* is positive, -π/2 if *`y`* is negative, or 0 if *`y`* is 0.)
55
54
56
-
If you use the \<tgmath.h> `atan()` or `atan2()` macro, the type of the argument determines which version of the function is selected. See [Type-generic math](../../c-runtime-library/tgmath.md) for details.
55
+
If you use the `<tgmath.h>` `atan()` or `atan2()` macro, the type of the argument determines which version of the function is selected. See [Type-generic math](../../c-runtime-library/tgmath.md) for details.
57
56
58
-
**atan** has an implementation that uses Streaming SIMD Extensions 2 (SSE2). For information and restrictions about using the SSE2 implementation, see [_set_SSE2_enable](set-sse2-enable.md).
57
+
**`atan`** has an implementation that uses Streaming SIMD Extensions 2 (SSE2). For information and restrictions about using the SSE2 implementation, see [`_set_SSE2_enable`](set-sse2-enable.md).
59
58
60
-
Because C++ allows overloading, you can call overloads of **atan** and **atan2** that take **`float`** or **`long double`** arguments. In a C program, unless you're using the \<tgmath.h> macro to call this function, **atan** and **atan2** always take **`double`** arguments and return a **`double`**.
59
+
Because C++ allows overloading, you can call overloads of **`atan`** and **`atan2`** that take **`float`** or **`long double`** arguments. In a C program, unless you're using the `<tgmath.h>` macro to call this function, **`atan`** and **`atan2`** always take **`double`** arguments and return a **`double`**.
61
60
62
61
By default, this function's global state is scoped to the application. To change this, see [Global state in the CRT](../global-state.md).
@@ -27,47 +27,47 @@ long double cosh( long double x ); // C++ only
27
27
28
28
### Parameters
29
29
30
-
*x*\
30
+
*`x`*\
31
31
Angle in radians.
32
32
33
33
## Return Value
34
34
35
-
The hyperbolic cosine of *x*.
35
+
The hyperbolic cosine of *`x`*.
36
36
37
-
By default, if the result is too large in a **cosh**, **coshf**, or **coshl** call, the function returns **HUGE_VAL** and sets **errno** to **ERANGE**.
37
+
By default, if the result is too large in a **`cosh`**, **`coshf`**, or **`coshl`** call, the function returns **`HUGE_VAL`** and sets **`errno`** to **`ERANGE`**.
Because C++ allows overloading, you can call overloads of **cosh** that take and return **`float`** or **`long double`** values. In a C program, unless you're using the \<tgmath.h> macro to call this function, **cosh** always takes and returns a **`double`**.
46
+
Because C++ allows overloading, you can call overloads of **`cosh`** that take and return **`float`** or **`long double`** values. In a C program, unless you're using the `<tgmath.h>` macro to call this function, **`cosh`** always takes and returns a **`double`**.
47
47
48
-
If you use the \<tgmath.h> `cosh()` macro, the type of the argument determines which version of the function is selected. See [Type-generic math](../../c-runtime-library/tgmath.md) for details.
48
+
If you use the `<tgmath.h>` `cosh()` macro, the type of the argument determines which version of the function is selected. See [Type-generic math](../../c-runtime-library/tgmath.md) for details.
49
49
50
50
By default, this function's global state is scoped to the application. To change this, see [Global state in the CRT](../global-state.md).
0 commit comments