aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calc.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/calc.erl b/calc.erl
index a24b915..7b7c56f 100644
--- a/calc.erl
+++ b/calc.erl
@@ -14,6 +14,8 @@ factor(Input, Number1) when is_integer(Number1) or is_float(Number1) ->
factor([], Number) ->
{[], Number}.
+factorExtended([$ |Tail], Result) ->
+ factorExtended(Tail, Result);
factorExtended([$^|Tail], Result) ->
factor(Tail, Result);
factorExtended(Tail, Result) ->