From 37865747b22b71496ef95dabb4a5e74e85d445bb Mon Sep 17 00:00:00 2001 From: Panayot Cankov <79846989+panayot-cankov@users.noreply.github.com> Date: Thu, 29 Jul 2021 16:30:13 +0300 Subject: [PATCH] Add min Add min --- atan.ts | 2 +- min.ts | 3 +++ subtract.ts | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 min.ts diff --git a/atan.ts b/atan.ts index 9269d4f..e797d35 100644 --- a/atan.ts +++ b/atan.ts @@ -1,3 +1,3 @@ export function atan(x: number) { - export Math.atan(x); + return Math.atan(x); } \ No newline at end of file diff --git a/min.ts b/min.ts new file mode 100644 index 0000000..db68515 --- /dev/null +++ b/min.ts @@ -0,0 +1,3 @@ +export function min(x: number, y: number) { + return Math.min(x, y); +} \ No newline at end of file diff --git a/subtract.ts b/subtract.ts index d0f6279..eb8a440 100644 --- a/subtract.ts +++ b/subtract.ts @@ -1,3 +1,3 @@ -export function subtract(x: number, y: nunmber) { +export function subtract(x: number, y: number) { return x - y; } \ No newline at end of file