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.

2.2 Numerical Computations • 11π> sin(Pi);0The exponential function is represented by the Maple function exp.> exp(1);e> ln(exp(5));5Actually, the example with π may look confusing. Remember thatwhen Maple is producing typeset real-math notation, that is, it attemptsto represent mathematical expressions as you might write them yourself.Thus, you enter π as Pi and Maple displays it as π.Maple is case sensitive, so ensure that you use proper capitalizationwhen stating these constants. The names Pi, pi, and PI are distinct. Thenames pi and PI are used to display the lower case and upper case Greekletters π and Π, respectively. For more information on Maple constants,enter ?constants at the Maple prompt.Floating-Point ApproximationsMaple works with exact values, but it can return a floating-point approximationup to about 2 28 digits, depending upon your computer’s resources.Ten or twenty accurate digits in floating-point numbers may seemadequate for almost any purpose, but two problems, in particular, severelylimit the usefulness of such a system.First, when subtracting two floating-point numbers of almost equalmagnitude, the difference’s relative error may be very large. This is knownas catastrophic cancellation. For example, if two numbers are identicalin their first seventeen (of twenty) digits, their difference is a three-digitnumber accurate to only three digits! In this case, you would need to usealmost forty digits to produce twenty accurate digits in the answer.Second, a result’s mathematical form is more concise, compact, andconvenient than its numerical value. For instance, an exponential functionprovides more information about the nature of a phenomenon than a large

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

Saved successfully!

Ooh no, something went wrong!