Re: [Jprogramming] another example of 'under'

2012-10-15 Thread Linda Alvord
-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Alex Giannakopoulos Sent: Monday, October 15, 2012 2:21 AM To: programm...@jsoftware.com Subject: Re: [Jprogramming] another example of 'under' On 15 October 2012 06:37, Linda Alvord wrote: >Sometimes you get

Re: [Jprogramming] another example of 'under'

2012-10-14 Thread Alex Giannakopoulos
On 15 October 2012 06:37, Linda Alvord wrote: >Sometimes you get the double of the reciprocal and other times the > reciprocal of the double. > Erm, not quite, Linda. You will see that the hook (%+:) will always return 0.5, no matter what the input. Remember, (fg)y means y f gy when you

Re: [Jprogramming] another example of 'under'

2012-10-14 Thread Linda Alvord
Sometimes you get the double of the reciprocal and other times the reciprocal of the double. Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of km Sent: Sunday, October 14, 2012 6:35 PM To: programm..

Re: [Jprogramming] another example of 'under'

2012-10-14 Thread km
;'g' >> -- 3 >> -- : -+- ,:'%+/%y' >> >> >> Linda >> >> >> Original Message- >> From: programming-boun...@forums.jsoftware.com >> [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of km >>

Re: [Jprogramming] another example of 'under'

2012-10-14 Thread Keith Park
> >5!:4 <'g' > -- 3 > -- : -+- ,:'%+/%y' > > > Linda > > > Original Message- > From: programming-boun...@forums.jsoftware.com > [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of km > ent: Sunday, October 14, 2

Re: [Jprogramming] another example of 'under'

2012-10-13 Thread Linda Alvord
om] On Behalf Of km ent: Sunday, October 14, 2012 12:09 AM To: programm...@jsoftware.com Subject: Re: [Jprogramming] another example of 'under' Why don't you just do pr =: 3 : '%+/%y' ? Kip Murray Sent from my iPad On Oct 13, 2012, at 5:55 PM, Keith Park wr

Re: [Jprogramming] another example of 'under'

2012-10-13 Thread km
Why don't you just do pr =: 3 : '%+/%y' ? Kip Murray Sent from my iPad On Oct 13, 2012, at 5:55 PM, Keith Park 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=:%+/% >

Re: [Jprogramming] another example of 'under'

2012-10-13 Thread Keith Park
I suppose that the explicit definition as proposed by Bill an Linda come closest to what I would like. It will be a while before I understand it though. On Sat, Oct 13, 2012 at 9:23 PM, alexgian wrote: > My understanding is that by using 'cap' you are definitely using a fork, > but 'capping' th

Re: [Jprogramming] another example of 'under'

2012-10-13 Thread alexgian
Also it may be of use to you to be aware of the "magic 13" which will translate explicits into tacits for you (not always in the best way, but still a great learning tool) for instance 13 : '% +/ % y' [: % [: +/ % -- For in

Re: [Jprogramming] another example of 'under'

2012-10-13 Thread alexgian
My understanding is that by using 'cap' you are definitely using a fork, but 'capping' the one end of it! So whereas (f b g) y would give you something like fy b gy (where b is an infix operator and f and g are unary) then, ([: b g) y would become something like b of gy so you end up with

Re: [Jprogramming] another example of 'under'

2012-10-13 Thread Keith Park
Thanks. Cap is sort of what I was looking for. A bit ugly though, but I suppose it is the price to pay for not having some sort of operator to deliberately invoke a hook or a fork. On Sat, Oct 13, 2012 at 7:57 PM, alexgian wrote: > I asked this question almost three years ago, when I was first

Re: [Jprogramming] another example of 'under'

2012-10-13 Thread Linda Alvord
.com] On Behalf Of bill lam Sent: Saturday, October 13, 2012 7:04 PM To: programm...@jsoftware.com Subject: Re: [Jprogramming] another example of 'under' try %@(+/)@:% or in explicit form 3 : '% +/ % y' untested. Сбт, 13 Окт 2012, Keith Park писал(а): > To find the value

Re: [Jprogramming] another example of 'under'

2012-10-13 Thread alexgian
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/201

Re: [Jprogramming] another example of 'under'

2012-10-13 Thread Alex Giannakopoulos
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/201

Re: [Jprogramming] another example of 'under'

2012-10-13 Thread Ric Sherlock
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" wrote: > To find the value of resistors in parallel one takes the reciprocal of the > sum of the reciprocals. S

Re: [Jprogramming] another example of 'under'

2012-10-13 Thread bill lam
try %@(+/)@:% or in explicit form 3 : '% +/ % y' untested. Сбт, 13 Окт 2012, Keith Park писал(а): > 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, does

Re: [Jprogramming] another example of 'under'

2012-10-13 Thread Keith Park
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:

Re: [Jprogramming] another example of 'under'

2012-10-05 Thread Keith Park
Thanks! On Thu, Oct 4, 2012 at 10:14 PM, Raul Miller 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 wrote: > > To parallel a number of resistors the expression * %+

Re: [Jprogramming] another example of 'under'

2012-10-04 Thread Raul Miller
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 wrote: > To parallel a number of resistors the expression * %+/% *does the job. > How could one make an equivalent verb? > > On Wed, Sep 26,

Re: [Jprogramming] another example of 'under'

2012-10-04 Thread Keith Park
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 wrote: > On 26 September 2012 15:39, Henry Rich wrote: > > +&.% is the operation for combining parallel electrical resistances, > anot

Re: [Jprogramming] another example of 'under'

2012-09-26 Thread Boyko Bantchev
On 26 September 2012 15:39, Henry Rich 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) ...

Re: [Jprogramming] another example of 'under'

2012-09-26 Thread Henry Rich
+&.% is the operation for combining parallel electrical resistances, another example that immediately demonstrates the associativity. (Come to think of it, if you calculate the resistance using the method of tracing squares, resistance and aspect ratio are entirely dual concepts) Henry Rich

[Jprogramming] another example of 'under'

2012-09-26 Thread Boyko Bantchev
Here is a nice and very simple example of 'under' I don't recall being mentioned in the docs or in the forums. Place two rectangles one beside the other, stretching them as needed but preserving their aspect ratios, so that the left side of the one coincides with the right side of the other. If