Retrieve - Maple Help

# Online Help

###### All Products    Maple    MapleSim

DocumentTools

 Retrieve
 retrieve expression from document or worksheet file

 Calling Sequence Retrieve(filename, label)

Parameters

 filename - string ; filename for document to open label - string ; label of expression to retrieve from document

Description

 • The Retrieve command scans a document file for the given label and returns the corresponding expression.
 • If filename is not an absolute filename, the setting of currentdir determines what directory to search.
 • label is an internal label for the expression in the document and does not correspond to equation numbers.
 • In order to create a such a reference, use Insert>Reference in the Standard Worksheet Interface. This will allow you to look up an expression based on its equation number and automatically generate the internal label.

Examples

 > $\mathrm{with}\left(\mathrm{DocumentTools}\right):$
 > $\mathrm{src}≔\mathrm{FileTools}:-\mathrm{JoinPath}\left(\left["example/BesselsEquation.mw"\right],\mathrm{base}=\mathrm{datadir}\right)$
 ${\mathrm{src}}{≔}{"/maple/cbat/active/169462/data/example/BesselsEquation.mw"}$ (1)
 > $\mathrm{Retrieve}\left(\mathrm{src},"L6"\right)$
 ${{x}}^{{2}}{}\left(\frac{{{ⅆ}}^{{2}}}{{ⅆ}{{x}}^{{2}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{y}{}\left({x}\right)\right){+}{x}{}\left(\frac{{ⅆ}}{{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{y}{}\left({x}\right)\right){+}\left({-}{{\mathrm{\nu }}}^{{2}}{+}{{x}}^{{2}}\right){}{y}{}\left({x}\right){=}{0}$ (2)

 See Also