From 0ab016ee9cb1feff355fce5e49b63af060efb298 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 4 Feb 2024 22:05:17 +0100 Subject: [PATCH] minimum Funktion --- src/c/funktionen.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/c/funktionen.c b/src/c/funktionen.c index c16fd87..6295843 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -91,3 +91,9 @@ float absoluteDifference(float x, float y) { float maximum(float x, float y) { return fmax(x, y); } + +// Function to calculate the minimum of two numbers +float minimum(float x, float y) { + return fmin(x, y); +} +