Преглед на файлове

README.md edited online with Bitbucket

Rafael Arce Nazario преди 8 години
родител
ревизия
bc4a88b4d8
променени са 1 файла, в които са добавени 0 реда и са изтрити 6 реда
  1. 0
    6
      README.md

+ 0
- 6
README.md Целия файл

106
 
106
 
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.
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
         QApplication a(argc, argv);
109
         QApplication a(argc, argv);
111
         XYPlotWindow wLine;
110
         XYPlotWindow wLine;
112
         XYPlotWindow wCircle;
111
         XYPlotWindow wCircle;
130
         wLine.Plot();
129
         wLine.Plot();
131
         wLine.show();
130
         wLine.show();
132
 
131
 
133
-
134
     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.
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
 	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.
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
 
307
 
310
 3. The file `main.cpp` (in Sources) contains the function `main()` where you will be adding code. Open this file and study the code.
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
         QApplication a(argc, argv);
310
         QApplication a(argc, argv);
314
         XYPlotWindow wLine;
311
         XYPlotWindow wLine;
315
         XYPlotWindow wCircle;
312
         XYPlotWindow wCircle;
333
         wLine.Plot();
330
         wLine.Plot();
334
         wLine.show();
331
         wLine.show();
335
 
332
 
336
-
337
     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.
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
 	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.
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
 
391
 
396
 
392
 
397
 
393
 
398
-
399
-
400
 ---
394
 ---
401
 ---
395
 ---
402
 
396