Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
1.2 Does <strong>MATLAB</strong> Do Symbolic Calculations?<br />
3<br />
and matrix operations. The LuilL-in functions are optimized for vector operations.<br />
Consequently, vcctorized1 commands or codes run much faster in <strong>MATLAB</strong>.<br />
1.2 Does <strong>MATLAB</strong> Do Symbolic Calculations?<br />
(<strong>MATLAB</strong> vs. Mathematica or Maple)<br />
If you are new to <strong>MATLAB</strong>, you are likely to ask this question. The first thing to<br />
realize is that <strong>MATLAB</strong> is primarily a numerical cumputatiou package, although<br />
with the Symbolic Math Toolbox (standard with the Student Edition of <strong>MATLAB</strong>,<br />
see Chapter 8 for an introduction) it can do symbolic algebra. 2 Mathematica and<br />
Maple are primarily symbolic algebra packages. Of course, they do numerical computations<br />
too. In fact, if you know any of these packages really well, you can do<br />
almost every calculation that <strong>MATLAB</strong> does using that software. So why learn<br />
<strong>MATLAB</strong>? Well, <strong>MATLAB</strong>'s ease of use is its best feature. Also, it has a shallow<br />
learning curve (more learning with less effort) whereas the computer algebra systems<br />
have a steep learning curve. Because <strong>MATLAB</strong> was primarily designed to do<br />
numerical calculations and computer algebra systems were not, <strong>MATLAB</strong> is often<br />
much faster at these calculations--often as fast as C or Fortran. There are other<br />
packages, such as Xmath, that are also closer in aim and scope but seem to be<br />
popular with people in some specialized application areas. The bottom line is, in<br />
numerical computations, especially those that us vectors and matries, <strong>MATLAB</strong><br />
beats everything hand clown in terms of ease of use, availability of built-in functions,<br />
ease of programming, and speed. The proof is in the phenomenal growth of<br />
<strong>MATLAB</strong> users around the world in the la.'lt two decades. There arc more than 2000<br />
universities and thousands of companies listed as registered users. <strong>MATLAB</strong>'s popularity<br />
today has forced such powerful packages as Mathematica and many others<br />
to provide extensions for files in <strong>MATLAB</strong>'s format!<br />
1.3 Will <strong>MATLAB</strong> Run on My Computer?<br />
The most likely answer is "yes , " because <strong>MATLAB</strong> supports almost every computational<br />
platform. In addition to Windows, <strong>MATLAB</strong> is available for UNIX, Sun<br />
Solaris, Linux, and Mac OS X operating systems. Older versions of <strong>MATLAB</strong> are<br />
available for additional platforms such as Mac OS and Open VMS. To find out<br />
more about product availability for your particular computer, see the MathWorks<br />
website listed in Section 1.4.<br />
1 Vectorization referB to a manner of computation in which an operation is performed simultamJuusly<br />
on a list of numbers (a vcector) r11.thr than AtXjUCntially on each member of hi! liL Fur<br />
example, let (} be a list of 100 numbers. Then y =sin( B) i "· vRctorized statement as opposed to<br />
Yl = sin(lh),y2 = sin(B2), etc.<br />
2Symbolic a.lgcbra meanG that computation is done in terms of symbols ur variaules ralhPr than<br />
numbers. For example, if you type (x+y)-2 on your curnpuLPr and Lite cuml-'uler responds <strong>by</strong><br />
saying that the expression is equal to x2 + 2xy + y 2 , Ll1en your computer does symbolic algebra.<br />
Software package that du tiymbulic algebra are also known as computer algebra systems.