On my machine (64 bit athlon) using J602 i find that 0%0 will give 0. BUT (0+1e_256)%0 will give infinity.

A question that I have is that in dealing with power system matrices- where does such a situation occur in manipulating the matrices in load flow or converting Y to Zbus matrices for a realistic model? The only case would be one where one might like to connect two busses together through a "0" impedance link in order to represent a case where switching is done to connect/disconnect them.


Don Kelly

On 17/05/2013 8:04 PM, Brian Schott wrote:
I remember that years ago there was a verb to divide 0 by 0 and produce _,
but I cannot find it anywhere. It was probably not the one I have produced
tonight, but here it is, anyhow.

    div =: 0:`%@.(+.&*)
    0 1 2 3 3 _6 div 0 1 _5 6 0 0
0 1 _0.4 0.5 _ __






----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to