It should work to use a string with a trailing linefeed as a fret, i. e.
innerconj =: 0 : 0
f=. y - m&v
jacobian=. f D.1
(- %.@:jacobian mp f)^:_ MMM #0
)
InterpolateLocalGeneric=: 1 : 0
2 : (('MMM';":m) rplc innerconj)
)
but I haven't tested it.
Henry Rich
On 3/17/2018 4:08 PM, David Lambert wrote:
I worked through 3 of your solutions and came up with a lot of 's.
NB. m is the dimensionality
InterpolateLocalGeneric=: 1 :'2 :(''f=. y - m&v'';''jacobian=. f
D.1'';''(- %.@:jacobian mp f)^:_ ,'',(":m),''#0'')'
Appreciated.
>Also
>
>http://code.jsoftware.com/wiki/Vocabulary/com#Defining_a_Modifier
>
>which I have just updated with added detail on this topic.
>
>Henry Rich
>
>On 3/17/2018 12:42 PM, R.E. Boss wrote:
>> http://www.jsoftware.com/help/learning/13.htm , especially 13.6
>>
>>
>> R.E Boss
>>
>>
>>> -----Original Message-----
>>> From: Programming <programming-bounces at forums.jsoftware.com> On
>>> Behalf Of David Lambert
>>> Sent: zaterdag 17 maart 2018 17:30
>>> To: programming <programming at jsoftware.com>
>>> 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
>>> )
>>>
>'Pascal Jasmin' via Programming programming at jsoftware.com
>Sat Mar 17 16:44:28 UTC 2018
>Previous message: [Jprogramming] adverb returns conjunction
>Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>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)
I considered against boxing or gerunds.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
---
This email has been checked for viruses by AVG.
http://www.avg.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm