I asked this question almost three years ago, when I was first starting.
Almost the same people answered it, and quite at length, too!

If you want some explanations on the options of composing using the 'cap'
([:) or the compose (@) you can look here:
http://jsoftware.com/pipermail/programming/2010-February/018214.html
search using  "composing without forking (% +/ %)"
Unfortunately it is not too easy to search old mails.

It is probably also worth understanding the "under" verb, and why
resistances in parallel are the same concept as "sumation *under*
inversion" ,  given by  (+/ &.: %)

The differences between @ and @:, and also between &. and &.:  have to do
with rank, I leave their explanation, should you need it, to those more
elegant than I



On 14 October 2012 00:11, Ric Sherlock <[email protected]> wrote:

> To turn your phase in to a tacit verb you could do
>    p=: [: % [: +/ %
> Or
>    p=: %@:(+/@:%)
> Or as already suggested in this thread
>    p=: +/&.:%
>  On Oct 14, 2012 11:55 AM, "Keith Park" <[email protected]> wrote:
>
> > To find the value of resistors in parallel one takes the reciprocal of
> the
> > sum of the reciprocals.  So I would like to write a verb to do just
> > that.  *pr=:%+/%
> >    *But that, of course, doesn't work.  So my question is "is there a way
> > of avoiding unwanted hooks and forks?"
> >
> > On Fri, Oct 5, 2012 at 8:20 AM, Keith Park <[email protected]> wrote:
> >
> > > Thanks!
> > >
> > >
> > > On Thu, Oct 4, 2012 at 10:14 PM, Raul Miller <[email protected]
> > >wrote:
> > >
> > >> In the sentence:
> > >>
> > >>    +/&.:% resistances
> > >>
> > >> the phrase +/&.:% is a verb which finds parallel resistance.
> > >>
> > >> --
> > >> Raul
> > >>
> > >> On Thu, Oct 4, 2012 at 9:19 PM, Keith Park <[email protected]> wrote:
> > >> > To parallel a number of resistors the expression * %+/%  *does the
> > job.
> > >> >  How could one make an equivalent verb?
> > >> >
> > >> > On Wed, Sep 26, 2012 at 12:38 PM, Boyko Bantchev <[email protected]
> >
> > >> wrote:
> > >> >
> > >> >> On 26 September 2012 15:39, Henry Rich <[email protected]>
> wrote:
> > >> >> > +&.% is the operation for combining parallel electrical
> > resistances,
> > >> >> another
> > >> >> > example that immediately demonstrates the associativity.
> > >> >>
> > >> >> Indeed!  I had the vague feeling I know this formula from somewhere
> > >> >> else but it evaded me where.
> > >> >>
> > >> >> > (w:h) .................
> > >> >>
> > >> >> The above is a mistake, of course.  I should have said h:w, or
> place
> > >> >> rectangles one above the other instead.
> > >> >>
> > ----------------------------------------------------------------------
> > >> >> For information about J forums see
> > http://www.jsoftware.com/forums.htm
> > >> >>
> > >> >
> ----------------------------------------------------------------------
> > >> > For information about J forums see
> > http://www.jsoftware.com/forums.htm
> > >> ----------------------------------------------------------------------
> > >> For information about J forums see
> http://www.jsoftware.com/forums.htm
> > >>
> > >
> > >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> 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