• Nebyly nalezeny žádné výsledky

Maple - Seminar 1 EXAMPLE 1:

N/A
N/A
Protected

Academic year: 2022

Podíl "Maple - Seminar 1 EXAMPLE 1:"

Copied!
5
0
0

Načítání.... (zobrazit plný text nyní)

Fulltext

(1)

Maple - Seminar 1

EXAMPLE 1: Find all real solutions to the equation x

x

= ⎛

⎝ ⎜⎜ ⎞

⎠ ⎟⎟

3 4

⎜⎜

⎟⎟

3 4

.

> restart;

> eq:=x^x=(3/4)^(3/4);

:=

eq xx = 3(3 4/ )4(1 4/ ) 4

Symbolical solution.

> solve(eq,x);

3 4

−2ln 2( ) + ln 3( )

⎝⎜⎜ ⎞

⎠⎟⎟

LambertW −3 + 2ln 2( ) 3

4ln 3( )

> evalf(%);

0.7499999995

Numerical solution. We use the plot command to assess the number of all real solutions.

> fsolve(eq,x);

0.7500000000

> plot({lhs(eq),rhs(eq)},x=0..1.5);

> fsolve(eq,x=0..0.2); fsolve(eq,x=0.2..1);

0.08932454111 0.7500000000

(2)

EXAMPLE 2: Display the graphic representation of the function g ( ) x = x

⎜⎜

⎟⎟

1 3

and of its first derivative in the same drawing.

> restart;

> g:=x->surd(x,3);

:=

g x → surd ,(x 3)

> convert(g(x),power);

x(1 3/ )

> D(g);

x 1

3

( )

surd x,3 x

> convert(D(g)(x),power);

1 3x(2 3/ )

> plot({g(x),D(g)(x)},x,view=[-5..5,-3..3]);

> limit(D(g)(x),x=0);

(3)

EXAMPLE 3: Solve the equation x[x]-5x+7=0 in real unknown x where [x]

denote the greatest integer less than or equal to a number x, the so called floor function of x.

> restart;

> eq:=x*floor(x)-5*x+7=0;

:=

eq xfloor( )x − + 5x 7 = 0

Symbolical solution.

> solve(eq,x);

( )

RootOf floor(_Z _Z) − 5_Z + 7

> allvalues(%);

( )

RootOf floor(_Z _Z) − 5_Z + 7 1.750000000,

Numerical solution.

> fsolve(eq,x);

1.750000000

> eq1:=x*floor(x)=5*x-7;

:=

eq1 xfloor( )x = 5x − 7

> plot({lhs(eq1),rhs(eq1)},x=-

6..6,style=point,symbol=point,numpoints=10000);

> fsolve(eq,x=0..2); fsolve(eq,x=2..3); fsolve(eq,x=3..4);

1.750000000 2.333333333 3.500000000

(4)

EXAMPLE 4: Solve the inequality a

2

− 1 ≤ 0 ( a

2

− 1 < 0 ) in the real unknown a.

> restart;

> InS1:=solve(a^2-1<=0,a);

InS1:= RealRange(-1 1, )

> InS2:=solve(a^2-1<0,a);

:=

InS2 RealRange(Open -1( ),Open 1( ))

> about(InS1);

RealRange(-1,1):

a real range, i

>

n mathematical notation: [-1,1]

about(InS2);

RealRange(Open(-1),Open(1)):

a real range, in mathematical notation: (-1,1)

> InS1plot:=plot(a^2-1,a=-1..1,filled=true):

> Function:=plot(a^2-1,a=-2..2):

> plots[display]({InS1plot,Function});

(5)

EXAMPLE 5: Solve the system of linear inequalities 1 < x + y , x − 2 y < 2 in real unknowns x, y.

> restart;

> in1:=x+y>1; in2:=x-2*y<2;

:=

in1 1 < x + y :=

in2 x − 2y < 2

> solve({in1,in2},{x,y});

{-1 < , , }

3 y 1 < x + y x − 2y < 2

> with(SolveTools[Inequality]);

[LinearMultivariateSystem LinearUnivariate LinearUnivariateSystem, , ]

}

> LinearMultivariateSystem({in1,in2},[x,y]);

{⎡ ,

⎣⎢⎢ ⎤

⎦⎥⎥

, {4 < }

3 x {− + 1 x < }

2 y

⎣⎢⎢ ⎤

⎦⎥⎥

, {x ≤ 4}

3 {1 − x < y}

> with(plots):

Warning, the name changecoords has been redefined

> inequal({in1,in2},x=-3..3,y=- 3..3,optionsexcluded=(color=pink));

Odkazy

Související dokumenty

The Words-to-Numbers function, W : N → Z + , is the very simple process of taking a nonnegative integer n and mapping it to the positive integer representing the number of

completion of the third activity the opp has less than 3 activities performed A3_type type of the third activity the opp has less than 3 activities performed seq_3 sequence of

1: Contents of the natural radioactive elements (K, U, Th ) in rocks of the Desná Group, the Úsov Formation and so-called Libina granites, calculated mass activity (a m ); n =

PROBLEM 1: If 0 &lt; a &lt; 1, then the equation a x = x has a unique solution, since the function on the left is strictly decreasing while the function on the right is

As in Flory-Huggins theory of polymers it has been found that for large arguments the scaling function g(x) is linear in 1/x, we plot the simulated surface tension against 1/ x N

For example, presentation of the organization on the NGO Market, collaboration on the international seminar for family politics, writing medallions of female politicians or

The efficient design solutions data for this catamaran design problem is adapted from the example of [1], which uses a utility function to capture the preference structure, and

The aims of the analyses of the presented study − that (1) boys experience more positive and less negative emotions in Physics instruction than girls and that (2) a