From 93673e0e4f64c03dd9a9ec37f6b6f31f1718f83d Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 4 Feb 2024 22:01:34 +0100 Subject: [PATCH] maximum Funktion --- src/c/funktionen.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/c/funktionen.c b/src/c/funktionen.c index 1674f5f..c16fd87 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -86,3 +86,8 @@ return ceil(x); float absoluteDifference(float x, float y) { return fabs(x - y); } + +// Function to calculate the maximum of two numbers +float maximum(float x, float y) { + return fmax(x, y); +}