On 10/2/07, David Vincent-Jones <[EMAIL PROTECTED]> wrote:
> Some ideas would be appreciated.
Are you looking to rephrase it so it's a function, or are
you looking for alternative curves (for example, a discussion
of splines??)
If the former, the first thing you would need to decide is: "what
parameters do you want, and what should be left alone?"
For example, let's say that Series should remain fixed, and
that Toe and Heel should be parameters. Then you could
simply make Toe be x and Heel be y. For example:
13 :'>.100%~(Series%x)^y'
[: >. 100 %~ ] ^~ (10+i.25) % [
Or, maybe you would prefer to have all these arguments passed
as a single list (with the current values as the default). In
other words something like (watch out for line wrap):
13 :'>.100%~(((+i.)/2 3{t)%0{t)^1{t=.y,(#y)}.7.15 6.5 10 25'
[: ([: >. 100 %~ (([: (+ i.)/ 2 3 { ]) % 0 { ]) ^ 1 { ]) ] ,
7.1500000000000004 6.5 10 25 }.~ #
That's getting a bit long though, so perhaps instead you would
like a conjunction where the Series parameters are the conjunction
arguments, and the Toe/Heel parameters are the left and right
parameters for the resulting verb?.
2 :'>.100%~((m+i.n)%x)^y'
2 : '>.100%~((m+i.n)%x)^y'
Using this last approach, here's the verb which serves the same
role as the first one in this message:
10 (2 :'>.100%~((m+i.n)%x)^y') 25
(10) (2 : '>.100%~((m+i.n)%x)^y') 25
Or perhaps you are looking for something very different?
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm