Subtle change ...
   (+ 3 * (-<.)) 1 1.5 2 2.5
1 3 2 4
   (+ 3 * 1&|) 1 1.5 2 2.5
1 3 2 4

/Regards Rob

On 01/08/2008, at 4:35 AM, Dan Bron wrote:

I wrote:
I'm looking for a cutesy way to express the following:
(<. + 0 2 {~ 0 0.5 i. 1&|)

Henry responded:
 (+ 3 * 1&|) 1 1.5 2 2.5

Ah, thanks!

I think you meant '1.5+S' instead of '2+S'

I actually meant 2+<.S . The equivalence with 1.5+S didn't occur to me, but thanks for pointing it out; it makes your solution "obvious". Maybe I should've spent more time thinking about the problem instead of typing it up for someone else to solve.

Anyway, unless someone posts something significantly cuter, you can add "OEIS" to your CV :)

-Dan

----------------------------------------------------------------------
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