Page 809 - Advanced_Engineering_Mathematics o'neil
P. 809

APPENDIX A




                                        A MAPLE Primer























                                        This section is intended to assist students in using MAPLE. In some cases, examples are given
                                        which can be easily adapted to general use. Additional examples and details can be found in
                                        MAPLE’s HELP function. The student should experiment with the code given here and expand
                                        and adapt it to personal needs and preferences. In many instances, it is also possible to write
                                        different instructions to carry out computations.



                            A.1         Beginning Computations


                                        Numerical computations are carried out as one might expect, with an asterisk * denoting a
                                        product and a wedge ∧ a power. If we type
                                                                          2∧ 14;
                                        we obtain the fourteenth power of 2, which is 16,380. Note the semicolon ending this MAPLE
                                        command. In some versions of MAPLE, semicolons are used to end commands. In later releases,
                                        the semicolon is not needed. However, if the semicolon is included, the command will still
                                        execute.
                                                      14
                                           To multiply 2 by 19, type
                                                                            ∗
                                                                         19 2∧14;
                                           π is stored in MAPLE as Pi (upper case P—MAPLE is case sensitive). The exponential
                                        function is denoted exp, and the number e is obtained as exp(1). If we enter
                                                                              ∗
                                                                     (Pi ∧ 2) exp(1);
                                        this will return the symbolic product
                                                                              2
                                                                            (π )e
                                        To obtain the (approximate) decimal value of this product, use the evalf command:
                                                                                 ∗
                                                                evalf((Pi ∧ 2) exp(1));
                                                                                                                  789

                      Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
                      Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

                                   October 14, 2010  15:43  THM/NEIL   Page-789        27410_24_appA_p789-800
   804   805   806   807   808   809   810   811   812   813   814