But 1 is the wrong answer ass a mathematician in the real world for the
answer for an inverse!

  4*inv 7
1.75
   4 * inv 7
1.75
   4%7
0.571429
   7%4
1.75
   
  4 + inv 7
3
   4-7
_3
   7-4
3

Linda

-----Original Message-----
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Don Guinn
Sent: Thursday, January 8, 2015 12:06 PM
To: Programming forum
Subject: Re: [Jprogramming] A striggle with "inverse"

Obverse/inverse applies to the monadic use of a verb. So,

   + b._1 NB. Conjugate
+
   - b._1 NB. Negation
-
   * b._1 NB. Signum. Cannot undo this.
|domain error
|       *b._1
   % b._1 NB. Inverse
%

When applied to a dyadic use it is interpreted as the left argument bound to
the verb making a monadic verb.

   3+inv 4

1
   (3&+)b._1
_3&+
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

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

Reply via email to