gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitbf5167dabf5167dajukebox: index keys without commas (mpackdb loses them after a reopen), comma fixture and gate checksmrebf5167da/plugins/math/server.js

844 B

  1. // hl:math — Math utilities for Hybriel
  2. // JS transpiler target: wraps built-in Math object
  3. export const PI = Math.PI;
  4. export const E = Math.E;
  5. export const INF = Infinity;
  6. export function abs(x) { return Math.abs(x); }
  7. export function floor(x) { return Math.floor(x); }
  8. export function ceil(x) { return Math.ceil(x); }
  9. export function round(x) { return Math.round(x); }
  10. export function sqrt(x) { return Math.sqrt(x); }
  11. export function pow(base, exp) { return Math.pow(base, exp); }
  12. export function min(...args) { return Math.min(...args); }
  13. export function max(...args) { return Math.max(...args); }
  14. export function random() { return Math.random(); }
  15. export function log(x) { return Math.log(x); }
  16. export function sin(x) { return Math.sin(x); }
  17. export function cos(x) { return Math.cos(x); }
  18. export function tan(x) { return Math.tan(x); }

Branches

Latest commits

  • bf5167dajukebox: index keys without commas (mpackdb loses them after a reopen), comma fixture and gate checksmre
  • 28a82fa2jukebox: README, STATUS, LOG, DECISIONSmre
  • d13987dfjukebox: library scanner, ID3 reader, mpackdb database and JSON API, with fixtures and a gatemre