Skip to content
Tcl Source Code Changes To branch/c11-functions
Login

Changes To branch/c11-functions

Changes to "branch/c11-functions" between 2026-01-01 15:37:52 and 2026-01-03 15:59:19

1
2
3

4
5
6
7
8
9
10
11
12
13
14

15
16
17
18
19
20
21
1
2

3
4
5
6
7
8
9
10
11
12
13

14
15
16
17
18
19
20
21


-
+










-
+







# C11 Feature: More Mathematical Functions

This branch adds more mathematical functions from the set listed [here](https://en.cppreference.com/w/c/numeric/math.html). (To be TIPped some time.)
This is [TIP #745](tip:745.md). This branch adds more mathematical functions from the set listed [here](https://en.cppreference.com/w/c/numeric/math.html).

# The full list
After removing the type-dupes, as Tcl doesn't do those.

## Basic operations
|: Name         |: Description                                                |: Tcl notes
------------------------------------------------------------------------------------------
| **fabs**      | computes absolute value of a floating-point value (\|x\|)   | Existing: `abs()` function
| **fmod**      | computes remainder of the floating-point division operation | Existing: `fmod()` function
| **remainder** | computes signed remainder of the floating-point division operation | _This branch_
| **remquo**    | computes signed remainder as well as the three last bits of the division operation
| **remquo**    | computes signed remainder as well as the three last bits of the division operation | _This branch_
| **fma**       | computes fused multiply-add operation; (x*y)+z              | _This branch_
| **fmax**      | determines larger of two floating-point values              | Existing: `max()` function
| **fmin**      | determines smaller of two floating-point values             | Existing: `min()` function
| **fdim**      | determines positive difference of two floating-point values (max(0, x-y)) | _This branch_
| **nan**       | returns a NaN (not-a-number)                                | Existing: direct understanding (usually as an error)

## Exponential functions
︙