negzero - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

type/poszero

check for an object of type positive zero

type/negzero

check for an object of type negative zero

 Calling Sequence type(x, poszero) type(x, negzero)

Parameters

 x - any expression

Description

 • The type(x, poszero) function returns true iff x is either 0 or +0.0. Otherwise, false is returned.
 • The type(x, negzero) function returns true iff x is -0.0. Otherwise, false is returned.

Examples

 > $\mathrm{type}\left(0,\mathrm{poszero}\right)$
 ${\mathrm{true}}$ (1)
 > $\mathrm{type}\left(\mathrm{ln}\left(1.\right),\mathrm{poszero}\right)$
 ${\mathrm{true}}$ (2)
 > $\mathrm{type}\left(\mathrm{ln}\left(1.+0.I\right),\mathrm{poszero}\right)$
 ${\mathrm{false}}$ (3)
 > $\mathrm{type}\left(\mathrm{ln}\left(-1.+0.I\right),\mathrm{poszero}\right)$
 ${\mathrm{false}}$ (4)
 > $\mathrm{type}\left(-0+0,\mathrm{poszero}\right)$
 ${\mathrm{true}}$ (5)
 > $\mathrm{type}\left(-0.+0,\mathrm{poszero}\right)$
 ${\mathrm{false}}$ (6)
 > $\mathrm{type}\left(-0.+0,\mathrm{negzero}\right)$
 ${\mathrm{true}}$ (7)