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

# Online Help

###### All Products    Maple    MapleSim

MmaTranslator[Mma]

 BitNot
 return the bitwise not of integers

 Calling Sequence BitNot(arguments)

Parameters

 arguments - Maple translation of the Mathematica command arguments

Description

 • The BitNot command returns the bitwise not of the specified integer.

Examples

 > $\mathrm{with}\left({\mathrm{MmaTranslator}}_{\mathrm{Mma}}\right):$

Use the command with the Maple translation.

 > $\mathrm{BitNot}\left(\left[\mathrm{seq}\left(i,i=-3..3\right)\right]\right)$
 $\left[\left[{2}{,}{1}{,}{0}{,}{-1}{,}{-2}{,}{-3}{,}{-4}\right]\right]$ (1)

Alternatively, you can use the FromMma command with the evaluate option specified.

 > $\mathrm{with}\left(\mathrm{MmaTranslator}\right):$
 > $\mathrm{FromMma}\left(\mathrm{BitNot\left[Range\left[-3, 3\right]\right]},\mathrm{evaluate}\right)$
 $\left[\left[{2}{,}{1}{,}{0}{,}{-1}{,}{-2}{,}{-3}{,}{-4}\right]\right]$ (2)

 See Also