Skip to content

Instantly share code, notes, and snippets.

@onetdev
Last active September 23, 2021 19:01
Show Gist options
  • Select an option

  • Save onetdev/0a67a022ebfa3cb7054de60b3a6d6801 to your computer and use it in GitHub Desktop.

Select an option

Save onetdev/0a67a022ebfa3cb7054de60b3a6d6801 to your computer and use it in GitHub Desktop.

Revisions

  1. onetdev revised this gist Sep 23, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions curves.ts
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    // https://onetdev.medium.com/
    const frequencyCurve = (x: number): number => {
    return Math.sqrt(2 * Math.PI * Math.exp(-1 * (x*x) /2 ));
    }
  2. onetdev created this gist Sep 23, 2021.
    15 changes: 15 additions & 0 deletions curves.ts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    const frequencyCurve = (x: number): number => {
    return Math.sqrt(2 * Math.PI * Math.exp(-1 * (x*x) /2 ));
    }

    const halfCircle = (x: number): number => {
    return Math.sin(Math.acos(x));
    }

    const parabola = (x: number): number => {
    return x * x;
    }

    const hyperbola = (x: number): number => {
    return 1 / x;
    }