Skip to content

Commit

Permalink
make the new math functions exportable
Browse files Browse the repository at this point in the history
  • Loading branch information
s-kybound committed Apr 13, 2024
1 parent 9c5f57f commit 906141b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/stdlib/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,25 @@ export const lcm: Function = (...vals: core.SchemeInteger[]) => {
};

export const square: Function = (n: core.SchemeNumber) => $42$(n, n);
export const expt: Function = core.expt;
export const exp: Function = core.exp;
export const log: Function = core.log;
export const sqrt: Function = core.sqrt;
export const sin: Function = core.sin;
export const cos: Function = core.cos;
export const tan: Function = core.tan;
export const asin: Function = core.asin;
export const acos: Function = core.acos;
export const atan: Function = core.atan;

export const PI = core.PI;
export const E = core.E;
export const SQRT2 = core.SQRT2;
export const SQRT1$47$2 = core.SQRT1_2;
export const LN2 = core.LN2;
export const LN10 = core.LN10;
export const LOG2E = core.LOG2E;
export const LOG10E = core.LOG10E;

// pair operations

Expand Down

0 comments on commit 906141b

Please sign in to comment.