sábado, 10 de septiembre de 2016

Dibujar una Función y la integral con Rectángulos de tamaño 1 en Geogebra


http://webspace.ship.edu/msrenault/tutorial/Tutorial%207%20-%20Incorporating%20JavaScript.html

In this tutorial we'll discuss augmenting an applet by adding some JavaScript control.  This will be very basic, but it helps if you have some familiarity with editing html documents and doing a little JavaScript programming.

Open the GeoGebra file Tutorial-7.ggb.
Our goal is to make the online applet here.

This is a simple demonstration of a right-endpoint Riemann sum.  The following commands were entered in the Input Bar:
  • f(x) = sin(2 x) - (1/10) x² + 3
  • a = 1
  • b = 7
  • n = 12
  • dx = (b - a)/n
  • rightpoints = Sequence[ f(a + i dx), i, 1, n ]
  • rightsum = BarChart[ a, b, rightpoints ]
Next, I hid the algebra view and exported the worksheet to an applet.
Browse to Tutorial_7.html and view the page source (this is a right-click option in most browsers).  You'll see three main sections: applet, form, and script.

No hay comentarios:

Publicar un comentario