diff --git a/src/Main.elm b/src/Main.elm index fc92745..85189c8 100644 --- a/src/Main.elm +++ b/src/Main.elm @@ -66,13 +66,13 @@ view computer memory = <| List.append (makeCircles computer fx bounds memory []) - ([ P.words black "Welcome to my math project! Use arrow keys to adjust the width of each rectangle." + ([ P.words black "Welcome to my math project! Left and right arrows adjust dx, up and down change the visualization." |> at ( (bounds.xmax - bounds.xmin) / 2, bounds.ymax - 0.5) , P.words black ("The current dx is " ++ (String.fromFloat memory.dx)) |> at ( (bounds.xmax - bounds.xmin) / 2, bounds.ymax - 1) - , P.words black ("The current approximation is " ++ (String.fromFloat <| (\n->n/32/32) <| getArea computer corner fx bounds memory)) + , P.words black ("The left approximation is " ++ (String.fromFloat <| (\n->n/32/32) <| getArea computer TopLeft fx bounds memory)) |> at ( (bounds.xmax - bounds.xmin) / 2, bounds.ymax - 1.5) - , P.words black ("The real area under the curve is thus about " ++ (String.fromFloat 898)) + , P.words black ("The right approximation is about " ++ (String.fromFloat <| (\n->n/32/32) <| getArea computer TopRight fx bounds memory)) |> at ( (bounds.xmax - bounds.xmin) / 2, bounds.ymax - 2) ]) diff --git a/src/index.html b/src/index.html index 8c7fbfa..466d17e 100644 --- a/src/index.html +++ b/src/index.html @@ -2,10 +2,12 @@ +