11.07.2015 Views

Advanced Programming Guide

Advanced Programming Guide

Advanced Programming 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.

74 • Chapter 3: <strong>Programming</strong> with Modulesmax(|x − 1| + |x − 3| , |x − 2| + |x − 4|)calls the procedure Norm in the subpackage LA_Main of the LinearAlgebrapackage. You can use indexed notation for this.> LinearAlgebra[LA_Main][Norm](m, 1, conjugate = false );max(|x − 1| + |x − 3| , |x − 2| + |x − 4|)Using Packages Interactively For interactive use, it is inconvenient totype fully qualified references to all the exports of a package. To easethis burden, the Maple procedure with is provided for the interactivemanagement of package namespaces. Using with, you can globally imposethe exported names of a package. This allows you to access the packageexports, without typing the package prefix, by making the names of theexports visible at the top-level of your Maple session. For example, to usethe numtheory package, you can issue the command> with( numtheory );Warning, the protected name order has been redefinedand unprotected[GIgcd , bigomega, cfrac, cfracpol , cyclotomic, divisors,factorEQ, factorset, fermat, imagunit, index,integral _basis, invcfrac, invphi , issqrfree, jacobi ,kronecker, λ, legendre, mcombine, mersenne, migcdex,minkowski , mipolys, mlog, mobius, mroot, msqrt,nearestp, nthconver, nthdenom, nthnumer, nthpow,order, pdexpand , φ, π, pprimroot, primroot, quadres,rootsunity, safeprime, σ, sq2factor, sum2sqr, τ, thue]The effect of this command is to make the names exported by thenumtheory package (a list of which is returned by the call to with) availabletemporarily as top-level Maple commands.> cfrac( ( 1 + x )^k, x, 5, ’subdiagonal’, ’simregular’ );

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

Saved successfully!

Ooh no, something went wrong!