1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// SPDX-License-Identifier: AGPL-3.0-or-later
// Copyright (C) 2026 Vallés Puig, Ramon
//! Scalar trait for Chebyshev operations.
//!
//! [`ChebyScalar`] abstracts over numeric types that can participate in
//! Chebyshev evaluation and fitting. Implemented for `f64` and for all
//! `qtty::Quantity<U>` types.
use ;
/// A scalar type usable as a Chebyshev coefficient or value.
///
/// This trait requires the arithmetic needed by the Clenshaw recurrence
/// and the DCT coefficient computation:
///
/// - Addition and subtraction of two values of the same type.
/// - Multiplication and division by a dimensionless `f64`.
/// - A zero element.
// ── f64 implementation ──────────────────────────────────────────────────
// ── qtty::Quantity blanket implementation ────────────────────────────────