Re: [Jprogramming] On rank

2018-02-27 Thread Louis de Forcrand
Yes that is correct; u"n M always divides up into cells formed by grouping the last n dimensions together. Another way to see it is that elements of the array M who have the same (#$M) - n first indices are grouped together. A variant on u"n M is "(-n), which is roughly equivalent to u"((#$M)-n)

Re: [Jprogramming] How accurate is (o.) for arguments close to 0 or 1?

2018-02-27 Thread bill lam
there is diffraction when light travels inside atmosphere. On Feb 28, 2018 12:16 PM, "Don Kelly" wrote: > If the observer is standing at some point on the surface of the earth.and > is facing in a given direction with the straight edge. you are looking as > you describe. If facing another direc

Re: [Jprogramming] How accurate is (o.) for arguments close to 0 or 1?

2018-02-27 Thread Nick S
Maybe the steel straight edge was some hundreds of meters long? An interesting point about this is that back when I worked in a machine shop for a summer we would commonly set keyway cuts by eye and one of the master machinists proved to me that it was possible to do so within 0.001" on 1" cold ro

[Jprogramming] On rank

2018-02-27 Thread Nick S
Someone please tell me if I understand this: If I have a list of 5x5 tables, that is, a thing with a shape of n 5 5 where n is anything from 1 to 30, That is, the shape of the table might be (5 5 or 2 5 5 or 3 5 5 etc.) and I want to compare it against a single 5x5 thing in 5x5 groups, the proper

Re: [Jprogramming] How accurate is (o.) for arguments close to 0 or 1?

2018-02-27 Thread Don Kelly
If the observer is standing at some point on the surface of the earth.and is facing in a given direction with the straight edge. you are looking  as you describe. If facing another direction, you are , by symmetry, looking at the same curvature and the same distance to the horizon. You are look

Re: [Jprogramming] How accurate is (o.) for arguments close to 0 or 1?

2018-02-27 Thread J. Patrick Harrington
Someone once told me that the only phrase an academic needs in any language is "Well, it's not that simple ..." If the height of the observer is 0, then the horizon is the plane through the observer perpendicular to the zenith direction - it's a great circle and there is no curvature. But if y

Re: [Jprogramming] How accurate is (o.) for arguments close to 0 or 1?

2018-02-27 Thread Louis de Forcrand
Try <.@%: . I believe it returns extended results on extended arguments. Cheers, Louis > On 27 Feb 2018, at 20:56, Don Kelly wrote: > > I agree with the series approach but the final result depends on division > which has limited accuracy. I would suggest using the following which uses > 100*

Re: [Jprogramming] How accurate is (o.) for arguments close to 0 or 1?

2018-02-27 Thread Don Kelly
I agree with the series approach but the final result depends on division which has limited accuracy. I would suggest using the following which uses 100*L%R as a rational fraction (10^_2)*(1r2)* 175r637816300 1.37187e_9 However, the solution is wrong in any case. It is the result of using a

Re: [Jprogramming] plot - hangs/ terminates J session

2018-02-27 Thread chris burke
Thanks, all fixed now. On Mon, Feb 26, 2018 at 1:48 PM, William Szuch wrote: > Using: > > JVERSION > > Engine: j806/j64/windows > > Release: commercial/2017-11-06T10:03:54 > > Library: 8.06.09 > > Qt IDE: 1.6.2/5.6.3 > > Platform: Win 64 > > Installer: J806 install > > InstallPath: c:/users/will

Re: [Jprogramming] Separating digits

2018-02-27 Thread 'Mike Day' via Programming
Memory failure again... Mike On 27/02/2018 11:37, R.E. Boss wrote: -Original Message- From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of 'Mike Day' via Programming Sent: dinsdag 27 februari 2018 11:31 To: programm...@jsoftware.com Subject: Re: [Jprogrammin

Re: [Jprogramming] Separating digits

2018-02-27 Thread Skip Cave
Excellent explanations of the use of &. from Mike Day & Raul. Mike's explanation of "multiplication the hard way" using logs really helped clear up what is going on with &. 3*4 12 ^.^:_1 (^.3)+^.4 12 3+&.^.4 12 3 4 5 + &.^. 4 5 6 12 20 30 Now to examine Raul's solution: ,.&.":&.>a

Re: [Jprogramming] Separating digits

2018-02-27 Thread R.E. Boss
> -Original Message- > From: Programming [mailto:programming-boun...@forums.jsoftware.com] > On Behalf Of 'Mike Day' via Programming > Sent: dinsdag 27 februari 2018 11:31 > To: programm...@jsoftware.com > Subject: Re: [Jprogramming] Separating digits > () > You might remember David S

Re: [Jprogramming] Separating digits

2018-02-27 Thread Raul Miller
I'll run through a perhaps shallow description of my approach - hopefully that will show you enough of what's going on to also help understand R.E. Boss's approach. My hope here is that looking at this from a different perspective will help you build your understanding... a=. 10 345 64 5642 11

Re: [Jprogramming] Separating digits

2018-02-27 Thread 'Mike Day' via Programming
It looks as if you don't appreciate the action of " &. " The dot/period/full-stop is significant. Whereas & is bond/compose,  &. and &.: are both "Under(Dual) " . NuVoc says (http://code.jsoftware.com/wiki/Vocabulary/ampdot)    [x] u &. v y executes v on the argument (s) cell by cell . for each

Re: [Jprogramming] How accurate is (o.) for arguments close to 0 or 1?

2018-02-27 Thread Ian Clark
That's how I started out: plunging into 3-D geometry. Then I realised I could replace the horizon with the great circle passing through the straight-edge, giving a simpler treatment valid for an observer at the earth's surface. I was pleasantly surprised that this lost the need not only for my heig