Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Exclusive-or in Maple?

42 views
Skip to first unread message

geo

unread,
Nov 24, 2009, 11:08:25 AM11/24/09
to
Does Maple have an easy way to do
the integer operations
C: z=x^y;
Fortran: z=ieor(x,y)
or must one deal with arrays of bits from the
convert(x,binary), convert(y,binary) operations.


Robert Israel

unread,
Nov 25, 2009, 2:19:36 AM11/25/09
to
geo <gmars...@gmail.com> writes:

See Xor in the Bits package.

For example:

> Bits[Xor](1023, 512);

511
--
Robert Israel isr...@math.MyUniversitysInitials.ca
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia Vancouver, BC, Canada

0 new messages