From 7b06eb45c5fd16e15bcc8153151be4975e00cc34 Mon Sep 17 00:00:00 2001 From: Steven Rieder Date: Wed, 10 Jul 2024 11:23:06 +0200 Subject: [PATCH] Update si.py with new prefixes See https://blog.ansi.org/anab/new-prefixes-si-ronto-quecto-ronna-quetta/ --- src/amuse/units/si.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/amuse/units/si.py b/src/amuse/units/si.py index 730a71ff9e..97ca6ab331 100644 --- a/src/amuse/units/si.py +++ b/src/amuse/units/si.py @@ -58,6 +58,14 @@ def yotta(unit): return named("yotta" + unit.name, "Y" + unit.symbol, 1.0e24 * unit) +def ronna(unit): + return named("ronna" + unit.name, "R" + unit.symbol, 1.0e27 * unit) + + +def quetta(unit): + return named("quetta" + unit.name, "Q" + unit.symbol, 1.0e30 * unit) + + def deci(unit): return named("deci" + unit.name, "d" + unit.symbol, 0.1 * unit) @@ -98,4 +106,12 @@ def yocto(unit): return named("yocto" + unit.name, "y" + unit.symbol, 1.0e-24 * unit) +def ronto(unit): + return named("ronto" + unit.name, "r" + unit.symbol, 1.0e-27 * unit) + + +def quecto(unit): + return named("quecto" + unit.name, "q" + unit.symbol, 1.0e-30 * unit) + + k = kilo