12.07.2015 Views

Learning Guide Learning Guide

Learning Guide Learning Guide

Learning Guide Learning Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

14 • Chapter 2: Mathematics with Maple: the Basics> convert(17, base, 3);[2, 2, 1]Maple returns an integer base conversion as a list of digits; otherwise,a line of numbers, like 221, may be ambiguous, especially when dealingwith large bases. Note that Maple lists the digits in order from leastsignificant to most significant.Maple also supports arithmetic in finite rings and fields.> 27 mod 4;3Symmetric and positive representations are both available.> mods(27,4);−1> modp(27,4);3The default for the mod command is positive representation, but youcan change this option (for details, refer to ?mod).Maple can also work with Gaussian Integers. The GaussInt packagehas about thirty commands for working with these special numbers. Enter?GaussInt at the Maple prompt for more information about thesecommands.Mathematical FunctionsMaple contains all the standard mathematical functions (see Table 2.2 fora partial list).> sin(Pi/4);1 √22> ln(1);

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!