Section 4:

Раздел 04

 Solving Equations

Решение Уравнений

In this section you will learn how to apply Maple's solve( ) command to find the exact solutions of equations (when this is possible). You may recall from Precalculus that we are not able in many cases to find exact solutions to equations and so we rely on numerical solvers to find approximate solutions. Later in this section you will use Maple's fsolve( ) command to find decimal approximations for solutions. The solution to linear systems of equations will also be discussed.

В этом разделе Вы научитесь применять команду solve для нахождения точных корней уравнений (если это возможно). Из своего опыта Вы знаете, что далеко не каждый тип уравнений имеет точные корни. В таких случаях интересуются приближенным численным решением. И у Maple для этого имеется соответствующая команда - fsolve . Кроме того, в этом разделе мы получим опыт решения систем линейных уравнений.

> restart; with(plots):

04.01. Entering and Manipulating Equations: 

04.01. Преобразование уравнений. 

The lhs( ) and rhs( ) commands

Команды lhs и rhs  

Recall that we can give a name to an entire equation just as we have done for expressions.

Напомним, что уравнению, точно так же как и выражению, можно присвоить имя. 

On the next line we enter the equation  

В следующей командной строке мы введём уравнение 

x^3-5*x^2+23 = 2*x^2+4*x-8

x^3-5*x^2+23 = 2*x^2+4*x-8  

and give it the name "eqn1" .

и присвоим ему имя " eq1 " :

 

 

 
 

 

> eq1:=x^3-5*x^2+23=2*x^2+4*x-8;

eq1 := x^3-5*x^2+23 = 2*x^2+4*x-8

 

We can isolate the left-hand and right-hand sides of the equation by using the lhs( ) and rhs( ) commands.

Мы можем вывести на экран левую и правую части уравнения по-отдельности при помощи команд lhs и rhs :

 

 

 
 

 

> lhs(eq1);

x^3-5*x^2+23

> rhs(eq1);

2*x^2+4*x-8

 

Use the lhs( ) and rhs( ) commands to find an equation that is equivalent to the original equation eqn1 but has zero on the right-hand side. Label the new equation eqn2.

Воспользуемся командами lhs и rhs для того, чтобы привести уравнение к стандартному виду, в котором все члены собраны слева, а справа остался только 0:

 

 

 
 

 

> eq2:=lhs(eq1)-rhs(eq1)=0;

eq2 := x^3-7*x^2+31-4*x = 0

 

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

 

Hosted by uCoz