On Thu, Dec 22, 2011 at 1:34 PM, R.E. Boss <r.e.b...@planet.nl> wrote:
>   ts' a+c*b-a'
> 0.016176513 25167616

You would of course have to be careful with that, because it could
give imprecise results.  For example,

   a=: ,1e50
   b=: ,3
   c=: ,1
   c} a,:b
3
   a+c*b-a
0

If you want a solution with arithmetic operations (which admittedly is
convenient in some more complicated expressions), you could try this:

   (a*-.c)+b*c
1 20 3

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

Reply via email to