Bitwise operations in Macysma derived Computer Algebra Systems?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 3K views
dsmith1974
Messages
4
Reaction score
0
I can't see any native bitwise operators (like C++'s & and ^) in Maxima, is the right way to drop down into CLisp something like this?

:lisp boole-and 5 7

Many thanks,

Duncan
 
Physics news on Phys.org
':lisp (defun $logand(i j) (logand i j))' creates a LISP function that can be called from Maxima and can be placed in maxima-init.mac