diff --git a/src/app/page.tsx b/src/app/page.tsx index 6e45911..3795386 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -51,8 +51,8 @@ function Calculator({ ...props }: any) { inputRef.current.value = '0'}>C - - sqrt(x) + inputRef.current.value = `sqrt(${inputRef.current.value})`}>sqrt + inputRef.current.value = `${inputRef.current.value}^`}>^ inputRef.current.value = math.evaluate(inputRef.current.value)}>=