Update model database schema

This commit is contained in:
lorenz.stechauner committed 2023-04-16 15:08:15 +02:00
1 parent 0333e8a5c5
commit 6e0b59da4b
14 files changed
+232 -72

No files matched your search

+8
View File
@@ -86,5 +86,13 @@ namespace Elwig.Helpers {
UseShellExecute = true,
});
}
public static double KmwToOe(double kmw) {
return Math.Round(kmw * (4.54 + 0.022 * kmw), 0);
}
public static double OeToKmw(double oe) {
return Math.Round((-4.54 + Math.Sqrt(4.54 * 4.54 - 4 * 0.022 * -oe)) / 2 * 0.022, 1);
}
}
}