That works perfectly!  All the assumptions you made are correct and thanks
for reading my mind.

Yes, I am dividing by zero and all those values are not applicable as there
are no connections between those nodes in the network. After cleaning up, I
will post the complete program along with sample data. It still looks like
a Java program rather than a J program.

Thanks,
PT


On Tue, May 21, 2013 at 1:11 PM, Raul Miller <[email protected]> wrote:

> On Tue, May 21, 2013 at 12:49 PM, P T <[email protected]> wrote:
> > I am almost close to finishing an initial version. But, I don't know how
> to
> > write a verb P(ij) = (phase(i) - phase(j))/lineReactance(ij) where
>
> Without looking at your data, this smells like:
>
> Pij=: -/~@[ % ]
>
> which you use as:
>    phase Pij lineReactance
>
> Here, phase is assumed to be 1 dimensional and lineReactance two
> dimensional and square.  And phase -:&# lineReactance should always be
> true.
>
> I did not try this on your example data since I do not know what the
> result would be.
>
> I will note that you are dividing by zero, which is worrying.
>
> --
> Raul
> ----------------------------------------------------------------------
> 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