I suggest the following for a half-hour introduction for programmers. Verb quad is easy to read, includes many features of j, including a fork and an adverb, and you have only half an hour.
NB. quadratic equation solver uses formula x = (-b +or- sqroot(b^2 - 4ac))/2a NB. example quad 2 _8 6 for solving 2x^2 + _8x + 6 = 0 , produces roots 3 1 quad =: 3 : 0 'a b c' =. y if. 0 = a do. 'Not quadratic' else. sqroot =. %: (b^2) - 4*a*c (2*a) %~ (- b) (+,-) sqroot end. ) --Kip Murray On Saturday, November 7, 2015, Henry Rich <[email protected]> wrote: > The lab J By Point & Click was my effort at doing this for a standalone > student. With yourself as a guide you could be more ambitious; but you > still might consider using the lab approach, with debug and dissect showing > the details while you talk about the how and why. It's hard for a C > programmer to appreciate what a line of J code can do. Dissecting each > line can help with that. > > Henry Rich > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Sent from Gmail Mobile ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
