From 8838b1b39ba61d3359909d0586bfe939bf716be0 Mon Sep 17 00:00:00 2001 From: Denis Chevalier Date: Tue, 11 Aug 2026 01:28:08 +0200 Subject: Add header to all typ files --- lib/apply-prefix.typ | 19 +++++++++++++++++++ lib/assert-aeq.typ | 19 +++++++++++++++++++ lib/unify.typ | 19 +++++++++++++++++++ 3 files changed, 57 insertions(+) (limited to 'lib') diff --git a/lib/apply-prefix.typ b/lib/apply-prefix.typ index f6bbfb7..51162ed 100644 --- a/lib/apply-prefix.typ +++ b/lib/apply-prefix.typ @@ -1,3 +1,22 @@ +// SAME Analog Modular Ecosystem +// +// / SPDX-FileCopyrightText: 2026 Denis Chevalier +// / SPDX-License-Identifier: CC-BY-SA-4.0 +// / SPDX-License-Identifier: CERN-OHL-S-2.0+ +// / SPDX-License-Identifier: GPL-3.0-or-later +// +// The prose, explanatory text, rendered figures, tables, and mathematical +// content of this specification are licensed under CC BY-SA 4.0. If a later +// version of CC BY-SA is published, the author grants permission to distribute +// this work under that later version as well. +// +// Hardware designs contained herein (schematics, PCB layouts, mechanical +// drawings, and CAD models) are licensed under CERN-OHL-S-2.0+. +// +// All executable code, helper libraries (`lib/*`), metrology assertions, and +// embedded verification scripts throughout the source documents are licensed +// under the GNU General Public License v3.0 or later (GPL-3.0-or-later). + #let apply-prefix(value, prefix) = { if prefix == "tera" { return value * calc.pow(10, 12) } if prefix == "giga" { return value * calc.pow(10, 9) } diff --git a/lib/assert-aeq.typ b/lib/assert-aeq.typ index 70b9e64..eeb94a8 100644 --- a/lib/assert-aeq.typ +++ b/lib/assert-aeq.typ @@ -1,3 +1,22 @@ +// SAME Analog Modular Ecosystem +// +// / SPDX-FileCopyrightText: 2026 Denis Chevalier +// / SPDX-License-Identifier: CC-BY-SA-4.0 +// / SPDX-License-Identifier: CERN-OHL-S-2.0+ +// / SPDX-License-Identifier: GPL-3.0-or-later +// +// The prose, explanatory text, rendered figures, tables, and mathematical +// content of this specification are licensed under CC BY-SA 4.0. If a later +// version of CC BY-SA is published, the author grants permission to distribute +// this work under that later version as well. +// +// Hardware designs contained herein (schematics, PCB layouts, mechanical +// drawings, and CAD models) are licensed under CERN-OHL-S-2.0+. +// +// All executable code, helper libraries (`lib/*`), metrology assertions, and +// embedded verification scripts throughout the source documents are licensed +// under the GNU General Public License v3.0 or later (GPL-3.0-or-later). + #let assert-aeq(left, right, precision: calc.pow(10, -6)) = { assert(calc.abs(left - right) < precision) } diff --git a/lib/unify.typ b/lib/unify.typ index e13fabd..fb17cb2 100644 --- a/lib/unify.typ +++ b/lib/unify.typ @@ -1,3 +1,22 @@ +// SAME Analog Modular Ecosystem +// +// / SPDX-FileCopyrightText: 2026 Denis Chevalier +// / SPDX-License-Identifier: CC-BY-SA-4.0 +// / SPDX-License-Identifier: CERN-OHL-S-2.0+ +// / SPDX-License-Identifier: GPL-3.0-or-later +// +// The prose, explanatory text, rendered figures, tables, and mathematical +// content of this specification are licensed under CC BY-SA 4.0. If a later +// version of CC BY-SA is published, the author grants permission to distribute +// this work under that later version as well. +// +// Hardware designs contained herein (schematics, PCB layouts, mechanical +// drawings, and CAD models) are licensed under CERN-OHL-S-2.0+. +// +// All executable code, helper libraries (`lib/*`), metrology assertions, and +// embedded verification scripts throughout the source documents are licensed +// under the GNU General Public License v3.0 or later (GPL-3.0-or-later). + #import "@preview/unify:0.8.1": ( add-unit, num, numrange as sys-numrange, qty as sys-qty, qtyrange as sys-qtyrange, unit as sys-unit, ) -- cgit