06.02.  Implicit Plots

06.02. "Неявные" графики

Maple can plot curves that are implicitly defined by an equation in the variables x and y.

Maple может строить графики функций, заданных неявно ( в виде уравнения относительно х и у ) .

To plot the graph of the hyperbola given by the equation: x^2/4-y^2/9 = 1 use the implicitplot( ) command. To use this command we must first load the "plots" library using the "with" command.

Для построения гиперболы, заданной уравнением x^2/4-y^2/9 = 1, не разрешенным относительно у , следует воспользоваться командой implicitplot . В отличие от команды plot , на сей раз обязательно подключение библиотеки plots :

> with(plots):
Warning, the name changecoords has been redefined

Note the syntax for this command on the next line.

На данном примере попробуйте запомнить основные компоненты команды:

 
  > implicitplot(x^2/4-y^2/4=1,x=-5..5,y=-5..5);  

[Maple Plot]

 

Graph the equation

Найдите графический образ уравненияостроить эллипс   

  x^2/25+y^2/9 = 1

x^2/25+y^2/9 = 1

  using the implicitplot( ) command. Recall that this is the equation of an ellipse with the lengths of major and minor axes equal to 5 and 3 respectively.

с помощью команды implicitplot. Напомним, что из этого канонического уравнения следует, что большая полуось эллипса равна 5, а малая - 3.

Our first attempt at getting the expected graph comes up short !

Попробуем по аналогии:

 
  >implicitplot(x^2/25+y^2/9=1,x=-5..5,y=-5..5);  

[Maple Plot]

 

Why did we get a circle instead of an ellipse ?

The problem here is that the x and y scales are not equal. To force equal scaling add "scaling=constrained" .

 

Как ни странно, попытка может показаться неудачной! Вместо эллипса, не исключено, появится изображение окружности. Напомним, что Maple, по умолчанию, самостоятельно подбирает масштабы осей координат. Чтобы рисунок был качественно верным, в команду implicitplot следует вставить (через запятую) опцию scalling=constrained , задающую равенство масштабов по х и у :

 
  > implicitplot(x^2/25+y^2/9=1,x=-5..5,y=-5..5, scaling=constrained);  

[Maple Plot]

 

С официального разрешения                    © 2002 Waterloo Maple, Inc

 

Hosted by uCoz