Use Rule - Maple Help

ScientificErrorAnalysis

 UseRule
 set the default rounding rule

 Calling Sequence UseRule( name )

Parameters

 name - symbol; name of a rounding rule

Description

 • The UseRule( name ) command sets the default rounding rule used by ScientificErrorAnalysis to the rule name for the current session.
 • To set the default rounding rule for all future Maple sessions, add the UseRule command to your Maple initialization file. For more information, see Create Maple Initialization File.
 • The rule name may require an index.
 • If the rule name is specified with an index, UseRule checks the validity of the index. If the index is invalid, the stored procedure for the rule throws an error and the default rule is not changed.
 To check, the rule is applied to Quantity( 0.0, 1.0 ). If no error is triggered, the result is discarded.
 • For more information on predefined rules in ScientificErrorAnalysis, see Predefined Rounding Rules.

Examples

 > $\mathrm{with}\left(\mathrm{ScientificErrorAnalysis}\right):$
 > $\mathrm{e1}≔\mathrm{Quantity}\left(1.2088,0.563\right)$
 ${\mathrm{e1}}{≔}{\mathrm{Quantity}}{}\left({1.2088}{,}{0.563}\right)$ (1)
 > $\mathrm{UseRule}\left(\mathrm{round}\left[2\right]\right)$
 > $\mathrm{ApplyRule}\left(\mathrm{e1}\right)$
 ${\mathrm{Quantity}}{}\left({1.21}{,}{0.56}\right)$ (2)

The index to the rule round must be a positive integer. If another value is used, UseRule returns an error and the default rule is not changed.

 > $\mathrm{UseRule}\left(\mathrm{round}\left[0\right]\right)$
 > $\mathrm{UsingRule}\left(\right)$
 ${{\mathrm{round}}}_{{2}}$ (3)