Глава 4. Построение графиков

Содержание

Линейные графики
Parametric Plots
Slopefield Plots
Vectorfield Plots
Графики поверхностей

Построение графиков поддерживается только в версии с графическим интерфейсом для GNOME. Все варианты графиков, имеющиеся в графическом интерфейсе, доступны из окна Создать график. Чтобы открыть это окно, нажмите кнопку График на панели инструментов или выберите Нарисовать график из меню Калькулятор. Можно также использовать команды построения графиков языка GEL. Смотрите Глава 5, Основы GEL, чтобы узнать, как вводить выражения, которые понимает Genius.

Линейные графики

To graph real valued functions of one variable open the Create Plot window. You can also use the LinePlot function on the command line (see its documentation).

После нажатия кнопки График откроется окно с несколькими вкладками. Вам нужна вкладка Линейный график функции, внутри которой следует выбрать вкладку Функции / Выражения. Смотрите Рисунок 4.1, «Create Plot Window».

Рисунок 4.1. Create Plot Window

Shows the line plotting window.

Type expressions with x as the independent variable into the textboxes. Alternatively you can give names of functions such as cos rather then having to type cos(x). You can graph up to ten functions. If you make a mistake and Genius cannot parse the input it will signify this with a warning icon on the right of the text input box where the error occurred, as well as giving you an error dialog. You can change the ranges of the dependent and independent variables in the bottom part of the dialog. The y (dependent) range can be set automatically by turning on the Fit dependent axis checkbox. The names of the variables can also be changed. Pressing the Plot button produces the graph shown in Рисунок 4.2, «Plot Window».

The variables can be renamed by clicking the Change variable names... button, which is useful if you wish to print or save the figure and don't want to use the standard names. Finally you can also avoid printing the legend and the axis labels completely, which is also useful if printing or saving, when the legend might simply be clutter.

Рисунок 4.2. Plot Window

The graph produced.

From here you can print out the plot, create encapsulated postscript or a PNG version of the plot or change the zoom. If the dependent axis was not set correctly you can have Genius fit it by finding out the extrema of the graphed functions.

For plotting using the command line see the documentation of the LinePlot function.