MmaTranslator[Mma] - Maple Programming Help

Home : Support : Online Help : Connectivity : Mathematica Translator : Mma : MmaTranslator/Mma/BitNot

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)