As long as your adverb definition doesn't access x or y, then you can build a 
single line conjunction defintion by returning from the adverb with

2 : ('pre part' , (part of definition that depends on m) , 'post part'

you might also want to consider a single adverb that takes a 3 part gerund as 
argument (or conjunction that takes 2 part m gerund)


________________________________
From: David Lambert <[email protected]>
To: programming <[email protected]> 
Sent: Saturday, March 17, 2018 12:30 PM
Subject: [Jprogramming] adverb returns conjunction



How do I write an adverb that returns an explicit conjunction which 

depends on m?  The conjunction to return---look for "adverb's m"---is


2 :0

 NB. m are the known field values

 NB. u is the interpolant, be it i122 i123 i124 or other

 NB. y is the goal.

 NB. return the local coordinate for which m&u yields y.

 f=. y - m&v

 jacobian=. f D.1

 (- %.@:jacobian mp f)^:_  ,:   adverb's m # 0

)


Thanks!


----------------------------------------------------------------------

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