On Mon, Dec 13, 2010 at 11:41 PM, David Ward Lambert <[email protected]> wrote: > Now, suppose I have an adverb that applies to a noun. Is > there a tacit way to use the adverb as a noun? Suppose I > need integrals on each interval: > > load jpath '~addons/math/misc/integrat.ijs' > > adverb =: +: integrate > > NB. want essentially 2 adverb \ i.8 > 2 (3 :'y adverb') \ i.8
The problem, here, in my opinion, is that integrate is defined as a conjunction when it should be defined as an adverb. *: integrate 0 1 0.333333 14 Since its definition is explicit, it makes sense to me that a fix would need to deal with an explicit definition. That said, integrate currently does allow you to pass the bounds of integration as a constant function or random function: *: integrate (0 1"_) 0.333333 14 But this seems like a useless feature, and one best avoided. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
