sqr=: 3 : '0j50": (<. @ %: y * 10x^100) % 10x^50'
sqr 1023810239x
31997.03484699793241139948300855562366372711733217036789
On Sun, Sep 24, 2023 at 10:19 AM 'Skip Cave' via Programming <
programm...@jsoftware.com> wrote:
> How to get more accurate square roots?
>
> %:1023810239x
>
> 31997
>
>
Note ''
multi
line
comment
)
But can't be used in an explicit definition.
{{)n
multi
line
comment
}}
On Wed, May 24, 2023 at 4:37 AM 'Rob B' via Programming <
programm...@jsoftware.com> wrote:
> Hi,
>
> A few days ago I thought I saw something about multiline comments
>
> eg NB. 1…..
>
> I
It installed ok for me on windows 11. The only problem I ran into was that
it didn't make the shortcuts on the screen.
On Wed, Apr 26, 2023 at 8:46 AM 'Michael Day' via Programming <
programm...@jsoftware.com> wrote:
> Just tried installing from the zip-file, under Windows.
>
> Perhaps nobody
>
> Henry Rich
>
> On 3/10/2023 11:06 AM, Don Guinn wrote:
> > What is 9!:55 ?
> >
> > Not shown in the !: conjunction.
> >
> > On Fri, Mar 10, 2023 at 8:46 AM Henry Rich wrote:
> >
> >> If we do that, should we revisit the question of ign
What is 9!:55 ?
Not shown in the !: conjunction.
On Fri, Mar 10, 2023 at 8:46 AM Henry Rich wrote:
> If we do that, should we revisit the question of ignoring the BOM (Byte
> Order Mark) that editors sometimes put at the beginning of scripts?
>
> Does the shebang take advantage of the fact
; > > > Is this less overhead than the jmf form?
> > > > >
> > > > > In your example, every case where I want to operate on a file or an
> > > > object
> > > > > within the file requires translation through the 3!:2 operator.
> > > > >
'testfile.txt' fwrite~3!:1 'Hello World!';(i.3 4);<2 1$'Text Here';1 2 3 4
456
3!:2 fread 'testfile.txt'
┌┬─┬───┐
│Hello World!│0 1 2 3│┌─┐│
│ │4 5 6 7││Text Here││
│ │8 9 10 11│├─┤│
│ │ ││1 2 3 4 ││
│ │ │└─┘│
J. In 807, you'll find yourself in an endless loop of error messages
> which only stops after you forcibly shut J down.
>
>
>
> On Wed, Oct 26, 2022 at 3:14 PM Don Guinn wrote:
>
> > Could you write a short verb to validate the data which calls plot if the
> > data is c
Could you write a short verb to validate the data which calls plot if the
data is correct to plot or give you an error message if not?
On Wed, Oct 26, 2022 at 7:00 AM Brian Schott wrote:
> Resending:
>
> On Tue, Oct 25, 2022 at 6:02 PM Brian Schott
> wrote:
>
> > Pablo,
> >
> > I was able to
It may be useful to a serious programmer, but I think it would scare a new
user away. Maybe another card fitting on one page and larger type with
things that one now learning J would find useful. have a 1080 screen and
the type is too small to easily read when showing the entire sheet on the
How about a landscape layout? To see it on a computer screen requires
scrolling unless the text is very small. And the printed version should be
just as easy to use.
On Thu, Aug 4, 2022 at 9:01 AM Henry Rich wrote:
> Viktor Grigorov has been busily reworking the old J6.02 reference card.
> The
gt; On 08/03 02:42, Don Guinn wrote:
> > YOu should be getting a box warning you and you have to ignore the
> default
> > and get to the "run anyway". You only have to do this once for each
> > executable.
>
> ...does this mean: For jconsole once, or for each scr
YOu should be getting a box warning you and you have to ignore the default
and get to the "run anyway". You only have to do this once for each
executable.
On Wed, Aug 3, 2022 at 2:28 PM Elijah Stone wrote:
> On Wed, 3 Aug 2022, tu...@posteo.de wrote:
>
> > not signed
>
> I guess this is the
_50,\":*/ 1 + i.450x
17333687331126326593447131461045793996778112652090
51015569207509555333001683436750604675088290438710
61458112845184240978586185838063016502083472961813
51667570171918700422280962237272230663528084038062
31236934267413503661010150883822049497092973901163
I do this to get my directory a script is in:
maindir=:''
maindir=:jpathsep z{.~>:1 i:~'/\' e.~z=.;(4!:4 <'maindir'){4!:3 ''
On Mon, May 30, 2022 at 4:46 PM Jinwoo Lee wrote:
> Sorry for the confusion. You're absolutely right. :)
>
>
> On Mon, May 30, 2022 at 3:42 PM chris burke wrote:
>
> >
thing for which it's intended.
> >
> > On Fri, May 20, 2022 at 2:54 PM Don Guinn wrote:
> >
> > > Yes, I find the numbered locales quite useful, but building the
> > > double-linked list of locales might mean he might intended to have very
> >
t 1:29 PM Don Guinn wrote:
> > Just a thought. The management of numbered locales is not very
> efficient. A
> > while back I created several thousand locales as an object test. I went
> to
> > delete all of them and it took forever.
>
> Right.
>
> My understan
Just a thought. The management of numbered locales is not very efficient. A
while back I created several thousand locales as an object test. I went to
delete all of them and it took forever.
On Fri, May 20, 2022 at 11:19 AM Raul Miller wrote:
> On Fri, May 20, 2022 at 10:12 AM Robert Cyr
that
this is a little beyond unicode. Oh well.
3 u: '聆'
240 159 145 169 226 128 141 240 159 166 176
ucpcount '聆'
5
On Sat, Mar 19, 2022 at 9:36 AM bill lam wrote:
> I don't get it. Can you demo with an example?
>
> On Sat, Mar 19, 2022 at 11:15 PM Don Guinn wrote:
>
> > I use
I use UTF-16 and UTF-32 to try to get the code-point of UTF-8 characters so
I can get each character onto one atom. That way I don't have to worry
about how many atoms each character takes. Unfortunately UTF-16 and UTF-32
don't guarantee the characters are in one atom each. It would be nice if U:
I hope you find me an idiot, but isn't that what a DBMS does? Maybe the
DBMS in J could be extended a little to do all this.
On Mon, Jan 31, 2022, 6:22 PM 'Pascal Jasmin' via Programming <
programm...@jsoftware.com> wrote:
> Beyond dictionaries is a "generic data structure" construct, and a
To catch errors in code that I was not aware of due to error handling such
as try-catch or whatever, I checked the value of the error message
(13!:12''). But it found the error message is set even though no error was
signaled. Below is a new J session.
13!:12''
|interface error
| ferase fs
a=:{{a
select. m
case. 0 do. 5
case. 1 do. /
case. 2 do. &
case. 3 do. +
case. 4 do. i.
end.
}}
3 a 1 a 4 a 0 a 2 a 3 a 0 a
45
On Mon, Sep 27, 2021 at 11:15 AM Henry Rich wrote:
> The primary goal of reintroducing the old trains was to make the old
> documents valid. Whether there
I usually put a title for the comments in the quotes argument of Note.
On Wed, Sep 1, 2021, 8:35 AM R.E. Boss wrote:
> Didn't know Note (much more from stdlib is new to me ☹), but I will become
> a heavy user.
>
> Most of my comments went unnoticed (!) because I did not like commenting
> each
If ) would be the closer then it would not be necessary to define NB.( .
Note would do to create multiline comments. It would also provide an
alternate way for making multiline definitions in a {{ }} definition.
On Wed, Sep 1, 2021, 12:53 AM Ric Sherlock wrote:
> I like the proposed: NB.(
>
No. I put the stars to show that fill could be characters other than blank.
On Sun, May 2, 2021, 6:31 PM greg heil wrote:
> Don
>
> perhaps you meant?
>(0j1 * &.-. mask) #!. ' ' chars
> B E G
>
> ~greg
> https//picsrp.github.io
>
> --
>
> from: Do
And more interesting things.
2j1 1 0j1 1#!.'*' 'abcd'
aa*b*d
On Fri, Apr 16, 2021, 10:34 AM Devon McCormick wrote:
> For replacing the masked characters:
>mask}chars,:'.'NB. Replace with .s
> A.CD.F.HIJKLM
> or
>'XYZ' (I.mask)}chars NB. Replace with specific characters
>
Long before J division in mathematics is backwards.
On Mon, Feb 22, 2021 at 6:50 AM Hauke Rehr wrote:
> Okay, it’s back to the thread’s subject. Fine.
> Talkig about grammar (which J does care about):
> F: is a conjunction. In terms of higher order
> functions, we could say it takes two
A different issue - ": ignores the imaginary part of a number.
33j30":1j1
1.00
On Sun, Feb 21, 2021 at 3:55 AM Raul Miller wrote:
> Ok, let's walk through this.
>
> First, let's extract the J's binary representation of pi:
>' '-.~":(64#2)#:256x#.|.a.i.2(3!:5)
It was called ADRS - A Departmental Reporting System
On Wed, Jan 6, 2021 at 3:34 AM Justin Paston-Cooper
wrote:
> I am not sure what kind of interfaces were available in the old days.
> I have never really used spreadsheets, but for me there would be a
> strict increase in utility in being able
x:0.66
33r50
Actually 0.66 is not exactly 0.66 internally. But it is close enough for J
to make it an exact rational.
However, I use pennies when handling money. That uses hardware integers.
On Tue, Jan 5, 2021 at 8:43 AM Justin Paston-Cooper
wrote:
> Hello,
>
> I am reading in
You might look at (WD 'timer milliseconds'). It will delay without locking
your app.
On Sat, Jan 2, 2021, 3:53 PM cilz wrote:
> Thanks Devon,
>
> Though, at first look, it's really very far away from my current J
> knowledge :-)
>
> Best, Eric
>
> Le 02/01/2021 à 23:47, Devon McCormick a écrit
od.)
>
> Thanks,
>
> --
> Raul
>
> On Fri, Dec 11, 2020 at 10:38 AM Don Guinn wrote:
> >
> > Recently there was a discussion on recognizing APL characters from other
> > characters for ";:". I had wanted to try using the boxed form for "mj"
f loss of unicode4 characters is a concern, an additional guard
> which protects using an assertion would be good.)
>
> Thanks,
>
> --
> Raul
>
> On Fri, Dec 11, 2020 at 10:38 AM Don Guinn wrote:
> >
> > Recently there was a discussion on recognizing APL characters f
Recently there was a discussion on recognizing APL characters from other
characters for ";:". I had wanted to try using the boxed form for "mj"
instead of the literal form in ";:". So I gave it a try. Attached is a
script containing "sj" and "mj" which will recognize APL characters for U16
and
no trivial ways
> to
> > distinguish them from codepoints.
> > eg
> > This is expected
> >echo (0;sj;mj) ;: 'A÷B'
> > +-+-+-+
> > |A|÷|B|
> > +-+-+-+
> >
> > But this is not so useful, ideally it should be recognized as a single
> &g
tached
> for a demonstration (I made quoted strings be an error.)
>
> Thanks,
>
> --
> Raul
>
> On Sat, Nov 21, 2020 at 1:05 PM Don Guinn wrote:
> >
> > I was not precise in my earlier response. I should have said that
> detecting
> > the wrong number o
--+
On Sat, Nov 21, 2020 at 11:05 AM Don Guinn wrote:
> I was not precise in my earlier response. I should have said that
> detecting the wrong number of UTF-8 continuation bytes would be difficult
> in the sequential machine as you would probably need to detect seven
> possible U st
point is that the sequential machine can support the sort
> > of "count a small number of steps" which is needed here. The
> > difficulty is more that the machine stops when it reaches the end of
> > the string. If that's a sensitivity, this could be handled by
> &
The text file worked great!
As to the UTF-8 codes. What is important is to avoid splitting the start
bytes from the continuation bytes. Validating the UTF-8 codes is a
difficult task. The start byte includes the number of continuation bytes to
follow. It would be an error if the number of
, 2020 at 8:44 AM Raul Miller wrote:
> That's not where we want to be.
>
>#;:'NB.',LF
> 2
>#;:'NB.',CR
> 1
>
> Also:
>(;:32{.a.)-:(0;sj;mj) sq 32{.a.
> 1
>
> Thanks,
>
> --
> Raul
>
> On Sun, Nov 8, 2020 at 10:03 AM Don Guinn wrote:
&
Also may want to change the line building sj to
sj=: <.0 10#:10*}.".;._2(0 :0)
as without the <. sj is type float.
On Sun, Nov 8, 2020 at 8:03 AM Don Guinn wrote:
> Would suggest that you add CR to the line 10 of sj as J treats CR like LF
> in a J script:
>
> mj=:10 (1
Would suggest that you add CR to the line 10 of sj as J treats CR like LF
in a J script:
mj=:10 (10 13)}mj NB. LF and CR
On Sun, Nov 8, 2020 at 6:38 AM Raul Miller wrote:
> I tested for that case:
>
>#;:'NB.',LF,LF
> 3
> #(0;sj;mj) sq 'NB.',LF,LF
> 3
>#(0;sj;mj) sq 'NB.',LF,LF,LF
>
Okay, what do they do? I can't find anything about them except in this
thread.
On Mon, Oct 19, 2020 at 8:24 AM 'Pascal Jasmin' via Programming <
programm...@jsoftware.com> wrote:
>
> > {{ }} will be used in a step between word formation and parsing
>
> You're suggesting here that there will
What are {{ and }} ?
On Sun, Oct 18, 2020 at 7:42 PM Henry Rich wrote:
> In the next beta, the digraphs {{ and }} will be treated as single
> words. You should scan your code to see if any such sequences appear,
> and insert a space inside them if so. Looking at the addons, I see that
> there
Oops! Typo earlier
test1 1 1 1 1 1 1 1
|rank error: test1
| test1 1 1 1 1 1 1 1
On Sun, Jun 7, 2020 at 12:20 PM Don Guinn wrote:
> test1 =. 0: ` 1: ` 2: @. (3&|)
>
> test1 i.6
>
> 0 1 2 0 1 2
>
> test1 i.7
>
> |rank error: test1
>
> | test1 i.7
>
>
test1 =. 0: ` 1: ` 2: @. (3&|)
test1 i.6
0 1 2 0 1 2
test1 i.7
|rank error: test1
| test1 i.7
test1 >:i.6
1 2 0 1 2 0
test 1 1 1 1 1 1 1
|domain error: test
| jdo'ABC=:' ,y
On Sun, Jun 7, 2020 at 11:19 AM Devon McCormick wrote:
> I see the same anomaly for the "i.7" argument on J
Readability? Kind of like unnecessary spaces.
On Fri, May 22, 2020, 8:25 PM 'Pascal Jasmin' via Programming <
programm...@jsoftware.com> wrote:
> The expressions are equivalent. Sometimes we edit out thoughts leaving a
> mess behind.
>
>
>
>
>
>
> On Friday, May 22, 2020, 10:01:08 p.m. EDT,
0j16":,.(100&*)4.57 4.34 4.44
457.
434.
444.0600
On Sat, May 16, 2020 at 12:34 AM 'Bo Jacoby' via Programming <
programm...@jsoftware.com> wrote:
>
>(100&*)4.57 4.34 4.44
>
> 457 434 444
>
>+./(100&*)4.57 4.34 4.44
> 2.63185e_11
>
>
That happens when is installed in Program Files. If installed in another
directory it is okay. I usually just install J in the c: root directory.
On Sun, May 3, 2020 at 9:33 AM Henry Rich wrote:
> I have a J application, distributed as a Addon. When it starts, it runs
> Pacman to check for
f it is the slim
> version. On my line above it has 1.7.9/5.9.6 because it is the full version
> (no 's')
>
> You do have to restart J in order for the updated Qt to take effect.
>
> Hope this helps.
>
> Cheers, bob
>
> > On May 1, 2020, at 15:07, Don Guinn wrote:
> &g
res the full jqt
> version. You should be able to upgrade to the full version from jconsole.
> First load’pacman’, then install’qtide’.
>
> On Fri, May 1, 2020 at 3:41 PM Don Guinn wrote:
>
> > A while back webview was considered "experimental". It is appearing in
> m
A while back webview was considered "experimental". It is appearing in more
and more J tools. For example: The jig tool. Is it now a supported control
in J?
There also appears that some versions of Windows do not support webview.
The QtDemos/webview fails on some versions of Windows, one with the
factors=:,@>@(*/&.>/)@(<@(1,*/\)/.~)@q:
factors each 10 47 360 2357047123200
The rank is reduced by one. So the rank 2 is reduced to one.
On Wed, Apr 15, 2020, 11:33 AM Thomas Bulka wrote:
> Hello everyone,
>
> I do have some difficulties in understanding a certain behavior. Let's
> assume, I define the classical mean verb, a row vector and a column
> vector:
>
> mean
Simon
https://www.google.com/search?q=symon+tune+toy=symon+tune+toy=chrome..69i57j33.13227j0j9=ms-android-verizon=chrome-mobile=UTF-8#
On Sat, Mar 28, 2020, 5:03 PM Devon McCormick wrote:
> Thanks, Marshall. This looks like a good start on what I'm trying to do.
>
> On Sat, Mar 28, 2020 at
viewmat.ijs in line 10 refers to (11!:0) when defining VIEWMATGUI. That
conjunction has been removed from J9.
--
For information about J forums see http://www.jsoftware.com/forums.htm
https://code.jsoftware.com/wiki/Essays/Complete_Tensor#cross_product
On Sat, Feb 8, 2020 at 6:07 AM wrote:
> Dear list,
>
>
> is there a concise way to calculate a cross product of 2 vectors
> (in 3D, of course).
>
>
> Thanks
> Ruda
>
the integer representation becomes symmetric.
>
>
> On Wed, Feb 5, 2020 at 11:09 AM Don Guinn wrote:
>
> > The _. will change the array to float. Would that be a problem?
> >
> > On Wed, Feb 5, 2020, 12:03 PM Roger Hui
> wrote:
> >
> > > Careful: 0*_
The _. will change the array to float. Would that be a problem?
On Wed, Feb 5, 2020, 12:03 PM Roger Hui wrote:
> Careful: 0*_ and _*0 do not leave _ untouched: both return 0. (Likewise
> for __ .)
>
> Another alternative is to use an associated boolean array whose 1s indicate
> non-null
1j1# data
a b r a c a d a b r a
On Sat, Feb 1, 2020, 9:46 AM David Lambert wrote:
>data=:'abracadabra'
>
>NB. whereas
>1j_2 # data
> |domain error
> | 1j_2#data
>
>NB. I've often wanted
>_2 |. 1j2 # data
> a b r a c a d a b r a
>
>NB. because it
I believe that i. stops at the first match. So this should work.
({.~0 i.~])4 3 2 8 0 9 1
4 3 2 8
On Wed, Jan 15, 2020, 2:08 PM Julian Fondren
wrote:
> On Wed, 2020-01-15 at 22:58 +0300, 'Sergey Kamenev' via Programming
> wrote:
> > Hi!
> >
> > I need test function f on array x1 x2 ... xn
I ran into this too. And I cheated. I modified wdhandler to give me a
chance to kill or handle the error. I also gave to option to open the
script containing the failing verb or whatever. Really handy when there is
no term window showing. Not pretty. But it would be good if something like
this
On the section on mixing text types - that is, byte concatenated with
unicode. It should be mentioned that the conversion from byte to unicode
simply puts a high-order byte of zeros in front of the byte. This works
fine for ASCII characters but is incorrect for any utf-8 characters. One
needs to
I had noticed that the inverse of factorial used D. With the latest release:
! inv 3
|domain error
| !inv 3
On Tue, Sep 3, 2019 at 2:48 AM Ben Gorte wrote:
> Hi,
>
> I'm trying to modify my code that uses D. 1 by replacing it with Ddot 1,
> after:
> Ddot =: pderiv_jcalculus_
>
> Is that
D: is used in the inverse of factorial.
!^:_1 ]0.001
|NaN error
| (-(!-y"_)%0.001&*!"0 D:1])^:_<.&170^:(-:+)^.y
On Mon, Aug 26, 2019, 7:46 PM Mike Powell wrote:
> Henry,
>
> I’ve been writing a few documents that will hopefully be useful in the
> calculus world. There are currently
Viewed it on my phone and it worked fine and had audio.
On Sun, Aug 11, 2019, 8:52 PM 'Jim Russell' via Programming <
programm...@jsoftware.com> wrote:
> I started watching it and heard the narration audio fine. (Nice job, too.)
>
> > On Aug 11, 2019, at 9:09 PM
Watched your video. Looks really good. For some reason there was no audio,
but closed caption showed what you were saying. Turned up volume, checked
for mute. All looked okay. Anybody else see this?
On Sun, Aug 11, 2019 at 4:00 PM Michal Wallace
wrote:
> I just uploaded a new video to youtube:
paths. I think their reasoning is
> correct: since the branch predictor usually gets it right, it is better
> to put all the processing power on the likely branch rather than being
> guaranteed of having to discard half the work.
>
> Henry Rich
>
> On 7/29/2019 8:31 AM, Don Guinn wrote
First. Since you referred to BXLE I assume you are talking IBM 370 or
beyond architecture. Unfortunately, I don't know INTEL instructions, but
your example implies that maybe you are thinking INTEL.
I have a problem with your use of "or" as wouldn't that destroy the
contents of a? And several
# means "count", not rank. It returns "3" because there are 3 items in the
list.
$$1 2 3
1
Gives "1". $ produces a list of the dimensions of its argument which is the
number "3". There is only one number in the list giving the rank of the
argument.
On Sun, Jul 14, 2019 at 12:22 PM Leonardo
So, where is this going? The video on monadic take is very good, but it
leads to other questions. In this case, what is an item? And then the
question I would have if I were a newbe would be, "Why is 'item' important?"
This doesn't look like a few random interesting videos for J. Video links
Not knowing what form the original was, putting it back into a string then
reboxing removes the blanks.
;;:;a
Nowisthetimeforallgoodmentocometotheaidoftheircountry
On Sat, May 25, 2019 at 4:20 AM 'Pascal Jasmin' via Programming <
programm...@jsoftware.com> wrote:
> also may want to separate
is an empty line.
> Alas, it did not seem to carry the weight that it would have needed to make
> the final cut, so out it came. I think that it could be more appropriate to
> give it its own video somewhere down the road.
>
> Cheers, bob
>
> > On May 21, 2019, at 3:21 PM,
Might want to mention "fill") (!.) in this, although that may make the
thing too long and start losing people.
({.!.3)1 2
1
({.!.3)1
1
({.!.3)''
3
On Tue, May 21, 2019 at 3:19 PM Raul Miller wrote:
> I would be tempted to explain in terms of 0 { y and then backtrack and
> show that 0 { 1
I put this in the starts of my scripts where I need to load other scripts
from the same directory. Easily modified to keep the full file name.
NB. Find directory for this app.
maindir=:''
maindir=:z{.~>:1 i:~'/\' e.~z=.;(4!:4 <'maindir'){4!:3 ''
On Tue, Apr 9, 2019 at 7:39 PM Devon McCormick
Trying again before Gmail is too helpful.
I wrote this verb which I have found to be quite useful.
whereis=:3 : 0
u=.<'_'
if. '_'={:y
do.
'y l'=.([:,<)"0<;._2 y
elseif. #n=.I.'__'E.y
do.
l=. wrote:
> I wrote this verb which I have found to be quite useful.
>
> On Tue, Apr 9, 2019 at 7:36
I wrote this verb which I have found to be quite useful.
On Tue, Apr 9, 2019 at 7:36 AM Eric Iverson
wrote:
> Ian,
> Loaded_j_ needs a tweak before it meets your needs. Currently load updates
> Loaded after the load. We are considering a base library change where it is
> updated before the load
The same thing happened when J went to 64 bit integers. When large integers
were converted to float significance may be lost. Isn't a problem with J 32
bit.
On Mon, Apr 8, 2019 at 10:21 AM William Tanksley, Jr
wrote:
> What's happening is that unexact trumps exact -- floats imply rounding
> and
6!:2 'n=:*/p^<.y^.~p=.p:i._1 p:y=.10x'
0.690272
40{.":n
6952838362417071970003075865264183883398
On Mon, Mar 11, 2019 at 10:07 AM 'Mike Day' via Programming <
programm...@jsoftware.com> wrote:
> As mentioned (indirectly) in my second attempt to comment, the _ q:
> version failed (on my
'i'>&(a.i.])'j'
0
'i'<&(a.i.])'j'
1
On Fri, Mar 1, 2019, 8:47 PM Roger Hui wrote:
> For the ordering used in sorting, what you want is the symbol denoted by ≺
> "curly less than" U+227A or ≼ "curly less than equal" U+227C in
> conventional mathematical notation, with infinite dyadic
foo=:\:[:*/:~
foo i:4
1 2 3 4 0 _4 _3 _2 _1
On Wednesday, December 12, 2018, Raul Miller wrote:
> Oops, thanks...
>
>Foo=: (/:3|*)@/:~
>
> Seems like it could be simpler, though - I'll have to think about this...
>
> Thanks again,
>
> --
> Raul
>
> On Wed, Dec 12, 2018 at 10:55 AM Henry
I have found that Anagram Index works well for this kind of problem.
It doesn't have indices as such, but does the job.
(i.!4)A.2 3 5 7
2 3 5 7
2 3 7 5
2 5 3 7
2 5 7 3
2 7 3 5
2 7 5 3
3 2 5 7
3 2 7 5
3 5 2 7
3 5 7 2
3 7 2 5
3 7 5 2
5 2 3 7
5 2 7 3
5 3 2 7
5 3 7 2
5 7 2 3
5 7 3 2
Or do
4 $.$.a
On Fri, Nov 30, 2018, 11:56 AM Roger Hui a #&, {i.&.>$a
> ┌───┬───┬───┬───┬───┐
> │0 0│2 3│4 6│6 9│9 2│
> └───┴───┴───┴───┴───┘
>> a #&, {i.&.>$a
> 0 0
> 2 3
> 4 6
> 6 9
> 9 2
>
>
>
> On Fri, Nov 30, 2018 at 10:52 AM Skip Cave
> wrote:
>
> > Given the array a:
> >
> >
If the number is not a perfect square, square root always converts the
result to float. b is not an integer. It is float. And there are digits
after the decimal.
0j6":b
35136418287882.219000
But when b is squared only the first 16 (approx) digits are kept.
0j3":b^2
Yes. The killer is p: . But this got me curious. I finally remembered that
the inverse of q: was */ but I was surprised to find that the inverse of */
was q:
*/ b._1
q:
*/^:_1]12 2 2 3
But this is an error.
+/ b._1
|domain error
| +/b._1
Granted, the inverse of sum has no meaning. And
Looks better.
UN=:+./&.([:q:^:_1 p:)
IS=:*./&.([:q:^:_1 p:)
1 2 3 3 3 UN 3 3 3 3 3 4 5 6
3 3 3
1 2 3 3 3 IS 3 3 3 3 3 4 5 6
1 2 3 3 3 3 3 4 5 6
On Tue, Oct 30, 2018 at 7:56 AM Don Guinn wrote:
> You're right. The trick is to make them prime numbers. But it's not pretty.
>
&
You're right. The trick is to make them prime numbers. But it's not pretty.
IS=:(_1 p:[:q:+.&([:*/[:p:]))/
UN=:(_1 p:[:q:*.&([:*/[:p:]))/
1 2 3 3 3 UN 3 3 3 3 3 4 5 6
1 2 3 3 3 3 3 4 5 6
1 2 3 3 3 IS 3 3 3 3 3 4 5 6
3 3 3
On Tue, Oct 30, 2018 at 4:58 AM 'Bo Jacoby' via Programming <
([:~.e.#[)/2#"1 g
3 5
On Tue, Oct 23, 2018 at 10:57 AM Raul Miller wrote:
> I wouldn't use ([#~e.)/ to satisfy the nub requirement, since it won't
> always give you the nub.
>
> Try it on 2#"1 g to see this.
>
> Thanks,
>
> --
> Raul
>
> On Tue
([#~e.)/g
3 5
On Tue, Oct 23, 2018 at 10:32 AM Raul Miller wrote:
> Rereading your original post, I see the requirement for nub.
>
> Here's a couple variants for that:
>
> ~.@f (if ~. isn't in f)
>
> or
>
> f=: ~.@ix/
>
> Then again, we could have gone:
>
> ix=: ~.@[ -. -.
>
> FYI,
>
> --
No y argument
On Thu, Oct 18, 2018, 7:11 PM Linda Alvord
wrote:
> Odd:
>
> see=: 13 :'fread ''file.txt'''
>see
> _1:
>
> Linda
>
>
> -Original Message-
> From: Programming On Behalf Of
> Raul Miller
> Sent: Thursday, October 18, 2018 11:03 AM
> To: Programming forum
> Subject: Re:
+---------+--+
>
> --
> Raul
>
> On Mon, Sep 3, 2018 at 12:57 PM Don Guinn wrote:
> >
> > It's a boxed list of verb names. Geri
It's a boxed list of verb names. Gerind: a noun with the force of a verb.
On Mon, Sep 3, 2018, 9:57 AM Raul Miller wrote:
> A gerund is a different data type from a verb.
>
> (Jose has been playing with an exploit which lets gerunds contain verbs.)
>
> Thanks,
>
> —
> Raul
>
> On Sunday,
Don't need to mess with tie.
v1=:+
v2=:-
v3=:%
av=:2j3
(v1,v2,v3)av
2j_3 _2j_3 0.153846j_0.230769
(v1;v2;v3)av
++-+--+
|2j_3|_2j_3|0.153846j_0.230769|
++-+--+
On Wed, Aug 15, 2018 at 11:05 AM pietdion wrote:
> Thanks for your answer.
Brute force.
>:I.1=(#@~.)"1(>:i.21)|/21 38 55 106
1 17
17|21 38 55 106
4 4 4 4
On Tue, Aug 14, 2018 at 12:08 AM Skip Cave wrote:
> Attempting to solve the following Quora problem:
>
> What number must be subtracted from 21, 38, 55, and 106 each so that the
> remainders (technically
Under Edit/Configure/QT ide I found TabWidth. It was blank. I assigned it a
value of 2. Then edited a file and put a tab at the beginning. It showed up
as one space in the editor but when I loaded the script and viewed it the
tab took 2 spaces. It was still a tab. It was not converted to spaces.
tions as
> you say. Try it with boxes containing whatever type you like.
>
> Henry Rich
>
> On 7/23/2018 6:42 PM, Don Guinn wrote:
> > It seems like the problem is that Catalogue manadic rank is one. I really
> > can't see much use in passing it a table or higher rank
s,
> >
> > —
> > Raul
> >
> > On Sunday, July 22, 2018, Henry Rich wrote:
> >
> >> I'll get the answer to this one right. <"r is heavily optimized. Don't
> >> try to replace it.
> >>
> >> Henry Rich
> >&
Sounds good.
On Sun, Jul 22, 2018, 5:46 PM Henry Rich wrote:
> I'll get the answer to this one right. <"r is heavily optimized. Don't
> try to replace it.
>
> Henry Rich
>
> On 7/22/2018 7:08 PM, Don Guinn wrote:
> > Yes. The documentation describes exac
Yes. The documentation describes exactly what's happening. The rank 1 is
the key making each number an item. In this case it is the equivalent to
(<"1) by itself. So, is it a good idea to use ({) in place of (<"1) when
wanting to box something rank 1? It's shorter and simpler to read. But what
1 - 100 of 441 matches
Mail list logo