|
@@ -106,7 +106,6 @@ En este ejercicio graficarás algunas ecuaciones paramétricas que generan curva
|
106
|
106
|
|
107
|
107
|
3. El archivo `main.cpp` (en Sources) contiene la función `main()` donde estarás añadiendo código. Abre ese archivo y estudia el código.
|
108
|
108
|
|
109
|
|
-
|
110
|
109
|
QApplication a(argc, argv);
|
111
|
110
|
XYPlotWindow wLine;
|
112
|
111
|
XYPlotWindow wCircle;
|
|
@@ -130,7 +129,6 @@ En este ejercicio graficarás algunas ecuaciones paramétricas que generan curva
|
130
|
129
|
wLine.Plot();
|
131
|
130
|
wLine.show();
|
132
|
131
|
|
133
|
|
-
|
134
|
132
|
La línea `XYPlotWindow wLine;` crea el objeto `wLine` que será la ventana en donde se dibujará una gráfica, en este caso la gráfica de un segmento. Observa el ciclo `for`. En este ciclo se genera una serie de valores para $t$ y se computa un valor de $x$ y $y$ para cada valor de $t$. Cada par ordenado $(x,y)$ es añadido a la gráfica del segmento por el método `AddPointToGraph(x,y)`. Luego del ciclo se invoca el método `Plot()`, que "dibuja" los puntos, y el método `show()`, que muestra la gráfica. Los *métodos* son funciones que nos permiten trabajar con los datos de los objetos. Nota que cada uno de los métodos se escribe luego de `wLine`, seguido de un punto. En una experiencia de laboratorio posterior aprenderás más sobre objetos y practicarás cómo crearlos e invocar sus métodos.
|
135
|
133
|
|
136
|
134
|
Las expresiones que tiene tu programa para $x$ y $y$ son ecuaciones paramétricas para la línea que pasa por el origen y tiene el mismo valor para las coordenadas en $x$ y $y$. Explica por qué la línea solo va desde 0 hasta aproximadamente 6.
|
|
@@ -309,7 +307,6 @@ You can also download the folder `Expressions-PrettyPlots` from `http://bitbuck
|
309
|
307
|
|
310
|
308
|
3. The file `main.cpp` (in Sources) contains the function `main()` where you will be adding code. Open this file and study the code.
|
311
|
309
|
|
312
|
|
-
|
313
|
310
|
QApplication a(argc, argv);
|
314
|
311
|
XYPlotWindow wLine;
|
315
|
312
|
XYPlotWindow wCircle;
|
|
@@ -333,7 +330,6 @@ You can also download the folder `Expressions-PrettyPlots` from `http://bitbuck
|
333
|
330
|
wLine.Plot();
|
334
|
331
|
wLine.show();
|
335
|
332
|
|
336
|
|
-
|
337
|
333
|
The line `XYPlotWindow wLine;` creates the object `wLine`, that is the window that will show the plot of a graph, in this case the graph of a segment. Look at the `for` cycle. In this cycle several values for $t$ are generated and a value for $x$ and $y$ is computed for each $t$. Each ordered pair $(x,y)$ is added to the graph of the segment by the method `AddPointToGraph(x,y)`. After the cycle, there is a call to the method `Plot()`, to "draw" the points in the graph, and to the method `show()`, to show the plot. The *methods* are functions that allow us to work with the data of an object. Note that each of the methods is written after `wLine`, and followed by a period. In a future laboratory experience you will learn more about objects and practice how to create them and invoke their methods.
|
338
|
334
|
|
339
|
335
|
The expressions for $x$ and $y$ are parametric equations for the line that passes through the origin and has the same value for $x$ and $y$. Explain why this line only goes from 0 to approximately 6.
|
|
@@ -395,8 +391,6 @@ Suppose that all courses in Cheo's University are 3 credits each and have the fo
|
395
|
391
|
|
396
|
392
|
|
397
|
393
|
|
398
|
|
-
|
399
|
|
-
|
400
|
394
|
---
|
401
|
395
|
---
|
402
|
396
|
|