gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit13e5e74813e5e748Records: mission 004 startedmre13e5e748/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

  • 13e5e748Records: mission 004 startedmre
  • a8098271Mission 004: jukebox#21mre
  • df8f5205Records: jukebox#19-21, #11 closedmre
  • b7a4e692Records: hybriel#298mre
  • 9bcbb017Records: day38b waits for day39 fixmre
  • f80504e1Records: day38b repro sentmre
  • 8048258bRecords: day38b jb3 regression, L1 Chromes stoppedmre
  • 68aace7fRecords: mission 003 day38bmre
  • d105d8a9Records: mpackdb integrity check cleanmre
  • 6e980c53Records: mpackdb rule refinementmre
  • 6d335ac4Records: storage copy rulingmre
  • 7eb2898dRecords: mpackdb second-opener rule until day38mre
  • b011f98eRecords: style form live on day35mre
  • 60d90cb2Records: L1 woken for the restartmre
  • 75ae544fRecords: restart waits for the connection to closemre
  • e0b75951Records: L1 merged and pushed, restart waits for an open connectionmre
  • f2b5db98styles: format styles with nested rules and bare queriesmre
  • f036bab4search: format styles with nested rules and bare queriesmre
  • ef9a9d4asongs: format styles with nested rules and bare queriesmre
  • f22f9aacmain: format styles with nested rules and bare queriesmre