From b8230bab231b4a50e18865e93a2c53d6ac3f09dc Mon Sep 17 00:00:00 2001 From: fdai7848 Date: Wed, 31 Jan 2024 21:09:44 +0100 Subject: [PATCH] add functionality for decimal Exponents --- src/exponent.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/exponent.c b/src/exponent.c index 03f4607..2227027 100644 --- a/src/exponent.c +++ b/src/exponent.c @@ -23,6 +23,10 @@ double expIN(double e, double num){ else{ return (1.0 / expI((e*-1), num)); } + }else{ + if(e>0){ + return exponential(e*logN(num, 0.000001)); + } } return 0; }