> According to the dictionary: "u d. n is like u D. n except that u is treated
> as a rank-0 function." So why the nonce error?
If you read further, it talks about partial derivatives.
So you don't want to use D. unless deliberately wanting them.
See below.
^&3 d. 1
3&*@(^&2)
^&3 D. 1
(* =/~@(i...@$))@:(3&*@(^&2))
1&o. d. 1
2&o.
1&o. D. 1
(* =/~@(i...@$))@:(2&o.)
1&o. d. _1
-@(2&o.)
(1&o. D. 1) 1 2 3 NB. linear operator
0.540302 0 0
0 _0.416147 0
0 0 _0.989992
(1&o. d. 1) 1 2 3 NB. list of scalars
0.540302 _0.416147 _0.989992
1&o. D. _1
|nonce error
| 1&o.D._1
So it states here that calculation of partial antiderivative
is not implemented (yet).
> From: Don Guinn <[email protected]>
>
> I thought J was math. At least closer to math than anything else on
> computers. To me J is a tool. But it's not the only tool in my tool box.
>
> But your expression is like what I tried at first. Only I used D. instead of
> d. and got a nonce error.
>
> -~/ (^&_1.001 d. _1) 1 _
> 1000
> (^&_1.001 d. _1)
> +------------+-+------------+
> |+-+-+------+|@|+-+-+------+|
> ||%|&|_0.001|| ||^|&|_0.001||
> |+-+-+------+| |+-+-+------+|
> +------------+-+------------+
> (^&_1.001 D. _1)
> |nonce error
> | ( ^&_1.001 D._1)
>
> According to the dictionary: "u d. n is like u D. n except that u is treated
> as a rank-0 function." So why the nonce error?
>
> On Fri, Jan 8, 2010 at 2:30 AM, Oleg Kobchenko wrote:
> > Using Math like that here is cheating, as the point is
> > using J--for finding things, like derivatives etc.
> > It's OK to interpret results with Math, but not to
> > use math to get results.
> >
> > So here is pure J, analytical and complete solution.
> >
> > -~/ (^&_1.001 d. _1) 1 _
> > 1000
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm