A simple Quora question wants to know the formula to sum the first n odd
numbers.

I can write an explicit verb:

smodd =.3 :'+/1+2*i.y'

smodd 5

25

I want to write a tacit verb:

smodd1=:+/1+2*i.

smodd1 5

6 8 10 12 14

What am I doing wrong?


Skip Cave
Cave Consulting LLC
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to