Atom - - Divisibility


Tags: math , number , vectorize

Arity: dyadic

This atom is dyadic, which means it takes two arguments.


Return 1 if x divides y and 0 otherwise.


This atom takes the factor/divisor on the left. If you want to have the divisor on the right, rather than using ḍ@, consider (Order / Multiplicity), which returns the number of times the left argument is divisible by the right argument (the greatest power of the right argument that divides the left argument). It does not return a boolean, but if you only need to check truthiness, ọ/code> should work.