11.07.2015 Views

Advanced Programming Guide

Advanced Programming Guide

Advanced Programming Guide

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.5 Using the Matlab Package • 213Now you can properly evaluate MyFcn with numeric as well as symbolicarguments.> MyFcn(x);x − sin(x)x 3> MyFcn(0.099999999);0.1665833531735> MyFcn(0.1);0.1665833531700Section 2.5 describes how to extend many other Maple commands.5.5 Using the Matlab PackageAnother way to accomplish numerical computations in Maple is to usethe Matlab package, which provides access to several MATLAB R built-infunctions. Note: You must have a copy of MATLAB properly installed onyour computer. The mathematical functions provided are:• chol: Cholesky factorization• defined: test whether variable exists• det: determinant• dimensions: compute dimensions of matrix• eig: eigenvalues and eigenvectors• evalM: evaluate expression• fft: discrete Fourier transforms• getvar: get numeric array or matrix• inv: matrix inverse

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

Saved successfully!

Ooh no, something went wrong!