diff --git a/src/gambleMath.ts b/src/gambleMath.ts index 0a2f349..af5e459 100644 --- a/src/gambleMath.ts +++ b/src/gambleMath.ts @@ -1,8 +1,8 @@ -const deltaX: number = 12; -const ymax: number = 1; +const deltaX: number = 20; +const ymax: number = 1.8; function f(a: number, x: number): number { - return Math.exp(-1 * Math.pow((x - a), 2) / 30); + return (1.2 + 0.75 * Math.cos(0.8 * (x - a))) * Math.exp(-1 * Math.pow(x - a - 5, 2) / 100); } // helper function diff --git a/src/templates/error.ejs b/src/templates/error.ejs index a72b5a3..41fea38 100644 --- a/src/templates/error.ejs +++ b/src/templates/error.ejs @@ -5,11 +5,23 @@ + + Nestabilní body + +