define_zero - Maple Help

# Online Help

###### All Products    Maple    MapleSim

simplex

 define_zero
 define the zero tolerance for floats

 Calling Sequence define_zero(err)

Parameters

 err - (optional) positive number defining the smallest nonzero number

Description

 • The function call define_zero(err) sets the absolute size of the minimum nonzero quantity. The function call define_zero() simply reports the current absolute size of the minimum nonzero quantity.
 • Its initial magnitude depends on the setting of Digits. It can be independently specified as a new error tolerance as the argument to define_zero.
 • The command with(simplex,define_zero) allows the use of the abbreviated form of this command.

Examples

 > $\mathrm{with}\left(\mathrm{simplex}\right):$
 > $\mathrm{define_zero}\left(\right)$
 ${1.000000000}{×}{{10}}^{{-8}}$ (1)
 > $\mathrm{Digits}≔50$
 ${\mathrm{Digits}}{≔}{50}$ (2)
 > $\mathrm{define_zero}\left(\right)$
 ${1.0000000000000000000000000000000000000000000000000}{×}{{10}}^{{-48}}$ (3)
 > $\mathrm{Digits}≔4$
 ${\mathrm{Digits}}{≔}{4}$ (4)
 > $\mathrm{define_zero}\left(\right)$
 ${0.01000}$ (5)
 > $\mathrm{define_zero}\left({10}^{-8}\right)$
 ${1.000}{×}{{10}}^{{-8}}$ (6)
 > $\mathrm{define_zero}\left(\right)$
 ${1.000}{×}{{10}}^{{-8}}$ (7)

 See Also