Hi everyone. Verbs formed by (m&|@^) are implemented by modular exponentiation:

---
   5 (10&|@^) 40000
5
   7 (14&|@^) 40000
7
   11 (22&|@^) 40000
22
---

However, it appears that (m1,m2,...)&|@:^ doesn't get the same
treatment and falls back to power-then-residue, causing it to blow up
for large exponents:

---
    5 7 11 (10 14 22&|@:^) 400 4000 40000
|NaN error
|   5 7 11    (10 14 22&|@:^)400 4000 40000
---

Is it possible to get the equivalent of (m1,m2,...)&|@:^ using the
special code for atomic m&|@^ ?

-Joe
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to