Robert M. Corless
Department of Applied Mathematics
University of Western Ontario
London, Canada

Copyright 2001 by Robert M. Corless
All rights reserved

Basics

Основы

Evaluation rules

Правила оценивания

Working with complex numbers and expressions Работа с комплексными числами и выражениями

> restart;

> (1+2*I)/(3+4*I);

11/25+2/25*I

> arcsin( 2. );

1.570796327-1.316957897*I

> ln( -1 );

I*Pi

> x := a + b*I;

x := a+I*b

> y := c + d*I;

y := c+I*d

> pr := x*y;

pr := (a+I*b)*(c+I*d)

> evalc( pr );

a*c-b*d+I*(a*d+b*c)

> evalc( Re(pr) );

a*c-b*d

> evalc( Im(pr) );

a*d+b*c

> evalc( Re(1/x) );

a/(a^2+b^2)

> interface( imaginaryunit=j );
> with( LinearAlgebra ):
> I := Matrix( 2, 2, shape=identity );

I := _rtable[14270188]

> 3*I;

_rtable[14272396]

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

 
Hosted by uCoz