CurrentLoop: use a better justified measurement algorithm

'course the best way to justify it is with tests: hopefully those will
come shortly.
This commit is contained in:
2022-08-01 06:12:16 -07:00
parent 527814e38a
commit 06379ffd30
2 changed files with 42 additions and 22 deletions

View File

@@ -107,6 +107,10 @@ pub trait Real:
self == Self::zero()
}
fn inv(self) -> Self {
Self::one() / self
}
fn zero() -> Self;
fn one() -> Self;
fn two() -> Self;