fraction - Maple Help

type/fraction

check for an object of type fraction

 Calling Sequence type(x, fraction)

Parameters

 x - any expression

Description

 • The type(x, fraction) calling sequence returns true if x is of type rational(type,rational) and not of type integer.

Supertypes

 •

Examples

 > $\mathrm{type}\left(1,\mathrm{fraction}\right)$
 ${\mathrm{false}}$ (1)
 > $\mathrm{type}\left(\frac{1}{2},\mathrm{fraction}\right)$
 ${\mathrm{true}}$ (2)
 > $\mathrm{type}\left(0.5,\mathrm{fraction}\right)$
 ${\mathrm{false}}$ (3)
 > $\mathrm{type}\left("String",\mathrm{fraction}\right)$
 ${\mathrm{false}}$ (4)
 > $\mathrm{type}\left(\mathrm{Name},\mathrm{fraction}\right)$
 ${\mathrm{false}}$ (5)
 > $\mathrm{type}\left(a\left[b\right],\mathrm{fraction}\right)$
 ${\mathrm{false}}$ (6)
 > $\mathrm{type}\left(\frac{a}{b},\mathrm{fraction}\right)$
 ${\mathrm{false}}$ (7)