From 82a1f2a11b68f233d1741c98fb1331933c513cc2 Mon Sep 17 00:00:00 2001 From: Ulriche Nguefack Date: Wed, 7 Feb 2024 14:27:00 +0100 Subject: [PATCH] refactoring: case(for logarithm and pow) --- src/main/c/Calculator/calculator.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index 84165cf..9b78f13 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -84,6 +84,10 @@ double combination(int n, int r); return pow(num1, num2); case 6: return fmod(num1, num2); + case 7: + return log(num1); + case 8: + return pow(num1, num2);