Thanks, and sorry for replying so late, but we've been out doing "Open
House London",
which happens every year over a September weekend, AND I sang in
Beethoven's 9th
yesterday evening...
OK - I tried the test script (below) with the necessary changes to the
toolkit's path.
Oh no! - I thoug
That is somewhat strange. I am not exactly sure how you are running the
script because sometimes the J environment might run a script within an
explicit verb without one being necessarily aware of it and some scripts
(such as the Wicket Toolkit) can be affected.
Try the following:
open a new edi
Thanks for that, Jose. I've downloaded the zip file referred to in your
link. It must
be somewhere in my J mail folder, but I couldn't see it! I suspect my
old copy dates
from 2015 or 16...
I've amended the Ver definition as suggested.
You advise against loading the script, suggesting as (
Mike, I am afraid you might be referring to an early version of the
script. I provided a link recently at the end of my post,
[Jprogramming] Tacit version of AR=: 1 : '5!:1 <''u'''
http://www.jsoftware.com/pipermail/programming/2018-August/051707.html
In addition, Ver is reassigned a few tim
Yes, I know - that's where I was looking for WT, without success.
Whatever I'd
copied and pasted in my version doesn't appear to have the line:
Ver=. (<^:(1 -: #)) ...
mentioned in Jose's email, further below in this unsnipped mail.
(It does have, instead,
Ver=. Cloak o af f. NB. Verbing after fi
The original "Tacit Toolkit" thread was entitled "Tacit Toolkit (was
dyadic J)", started on Dec 14, 2015 in the programming forum.
Skip
On Thu, Sep 20, 2018 at 10:36 AM 'Mike Day' via Programming <
programm...@jsoftware.com> wrote:
> This thread has come a long way!
>
> Anyway, as someone wh
This thread has come a long way!
Anyway, as someone who aims for neat tacit verbs but usually fails and
mainly uses explicit ones, and is pretty vague about adverbs, and could
perhaps learn something useful from your insights, where can I find
your Wicked Tookit?
I do have a saved script, n
You are welcome David,
When the argument verb appears more than once in the produced verb then the
task of producing a tacit adverb is more complicated; for example, it is
not trivial to produce a corresponding tacit adverb for this deceptively
simple template,
mean@:u - u@:mean
In other words,
i, 14 Sep 2018 17:41:22 -0400 From: Jose Mario Quintana
To: Programming forum
Subject: Re: [Jprogramming] Tacit form:
How to handle intermediate Message-ID:
Content-Type: text/plain; charset="UTF-8" > I believe I can write
payment tacitly, however I'm having a bad time fi
Message-
From: Programming On Behalf Of Linda
Alvord
Sent: Saturday, September 15, 2018 1:15 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
Thanks Martin,
amore=: 13 : '({: y) * rmf % (1-(>: rmf=. 1200 %~ {. y)^- 1&
xplicit versions you are writing
> to work correctly.
> >
> >
> > D=:[: (^~ >:)/ (2 3$0 1 0 1 0 0) +/ .* ]
> > pmt1200a=:(%<:)@Da * 1 0 1 */ .#
> > |value error: Da
> > | pmt1200a=:(%<:)@Da*1 0 1*/ .#
> > |[-1] c:\users\linda\j64-807-user\temp\
l's adds an interesting twist.
More later.
Linda
It
-Original Message-
From: Programming On Behalf Of
Martin Kreuzer
Sent: Thursday, September 13, 2018 11:22 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
This I put together indepe
will be more
simplifications.
Linda
-Original Message-
From: Programming On Behalf Of
Martin Kreuzer
Sent: Thursday, September 13, 2018 11:22 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
This I put together independently a couple of days
#x27;r t b'=. y
> D=.(1 + r % 1200) ^ t
> b*(r % 1200) * D % D - 1
> )
> .
>
>r =: 0&{
>t =: 1&{
>b =: 2&{
>payment_tacit_dwl =: b * (r % 1200) * (% <:)@:((1 + r % 1200) ^ t)
>
>
>NB. "And our paranoia test
I don,t do bug extermination, David.
Linda
Sent from my Verizon, Samsung Galaxy smartphone
Original message
From: David Lambert
Date: 9/14/18 11:53 AM (GMT-05:00)
To: programming
Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
I believe I can write
u, 13 Sep 2018 14:34:03 +
|From: Linda Alvord
|To: "programm...@jsoftware.com"
|Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
|Message-ID:
|
|
|Content-Type: text/plain; charset="utf-8"
|
|Here are two tacit verb for pmt from Raul,
|
|
|pmt1200=:(
NOT TRUE!
3 : means nomadic explicit.
Sent from my Verizon, Samsung Galaxy smartphone
Original message
From: Linda Alvord
Date: 9/13/18 5:56 PM (GMT-05:00)
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
This is an old one
pmtex0sp 5.75 240 12500
87.7604
Lihda
Sent from my Verizon, Samsung Galaxy smartphone
Original message
From: Martin Kreuzer
Date: 9/13/18 11:22 AM (GMT-05:00)
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
This I put togethe
single sentence definition for:
PMREX=:
PMTTA=:
Cheers, Linda
(Raul and Bob can coach tacits and I'll respond to explicits)
Try 5.75 240 12500
-Original Message-
From: Programming On Behalf Of 'Rob
Hodgkinson' via Programming
Sent: Thursday, September 13, 2018 2:23 AM
To
, Linda
(Raul and Bob can coach tacits and I'll respond to explicits)
Try 5.75 240 12500
-Original Message-
From: Programming
On
Behalf Of 'Rob Hodgkinson' via Programming
Sent: Thursday, September 13, 2018 2:23 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Taci
Two should be three in first line
Sent from my Verizon, Samsung Galaxy smartphone
Original message
From: Linda Alvord
Date: 9/13/18 10:34 AM (GMT-05:00)
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
Here are two tacit
3, 2018 2:23 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
Ahh I’m sorry Linda, that was my bad copy/paste into the email …
Please ignore previous email, I have corrected the transcript below (and
verified) so this should run without conflict (aside f
0) +/ .* ]
>> pmt1200a=:(%<:)@Da * 1 0 1 */ .#
>> |value error: Da
>> | pmt1200a=:(%<:)@Da*1 0 1*/ .#
>> |[-1] c:\users\linda\j64-807-user\temp\15.ijs
>>
>>
>>
>> Linda
>>
>> -Original Message-
>> From: Programm
t;:)@Da*1 0 1*/ .#
> |[-1] c:\users\linda\j64-807-user\temp\15.ijs
>
>
>
> Linda
>
> -Original Message-
> From: Programming On Behalf Of
> 'Rob Hodgkinson' via Programming
> Sent: Wednesday, September 12, 2018 11:26 PM
> To: programm...@js
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
Hi Linda, Raul’s functions may be input to 13: as shown here:
Raul’s functions:
D=:[: (^~ >:)/ (2 3$0 1 0 1 0 0) +/ .* ]
pmt1200a=:(%<:)@Da * 1 0 1 */ .#
pmta=:pmt1200@(%&1200 1 1)
Verizon, Samsung Galaxy smartphone
> Original message
> From: Raul Miller mailto:rauldmil...@gmail.com>>
> Date: 9/10/18 12:55 AM (GMT-05:00)
> To: Programming forum <mailto:programm...@jsoftware.com>>
> Subject: Re: [Jprogramming] Tacit form: How to
from my Verizon, Samsung Galaxy smartphone
Original message
From: Raul Miller
Date: 9/10/18 12:55 AM (GMT-05:00)
To: Programming forum
Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
x=:0 is bad form, so I am going to ignore that part.
In fact, I'd elimi
and the new language is the
> >>> computers J anguage. First learn the words and then learn to read
> >>> ghe ords in sentences. And just as you might when learning Spanish,
> >>> you might in time begin to speak it.
> >>
> >>> Lind
, 2018 4:00 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
When I first saw the question 'How would you make this tacit' my
reaction was 'Why would you ever want to, since the explicit version is
so easy to understand?'
can someone, not Ric, write his version explicitly.
PMT=: 13 :
Linda
Sent from my Verizon, Samsung Galaxy smartphone
Original message
From: Ric Sherlock
Date: 9/10/18 7:04 PM (GMT-05:00)
To: Programming JForum
Subject: Re: [Jprogramming] Tacit form: How to handle in
meone, not Ric, write his version explicitly.
PMT=: 13 :
Linda
Sent from my Verizon, Samsung Galaxy smartphone
---- Original message
From: Ric Sherlock
Date: 9/10/18 7:04 PM (GMT-05:00)
To: Programming JForum
Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
Without
nda Alvord
> wrote:
>
> > What if I'm allergic to @ ?
> >
> > Linda
> >
> >
> >
> > Sent from my Verizon, Samsung Galaxy smartphone
> >
> >
> > ---- Original message
> > From: Ric Sherlock
> > Date:
y Verizon, Samsung Galaxy smartphone
>
>
> Original message
> From: Ric Sherlock
> Date: 9/10/18 2:11 AM (GMT-05:00)
> To: Programming JForum
> Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
>
> The following is a simple refactoring o
y Verizon, Samsung Galaxy smartphone
>
>
> Original message
> From: Ric Sherlock
> Date: 9/10/18 2:11 AM (GMT-05:00)
> To: Programming JForum
> Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
>
> The following is a simple refactoring of the original:
As in (dare I say it) …. @-choo ?… :-)
> On 11 Sep 2018, at 5:06 am, Linda Alvord wrote:
>
> What if I'm allergic to @ ?
>
> Linda
>
>
>
> Sent from my Verizon, Samsung Galaxy smartphone
>
--
For information about J
What if I'm allergic to @ ?
Linda
Sent from my Verizon, Samsung Galaxy smartphone
Original message
From: Ric Sherlock
Date: 9/10/18 2:11 AM (GMT-05:00)
To: Programming JForum
Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
The following is a s
$12,000 at 5.75
interest for 20 years. As a tenured teacher and a woman no bank
would give
me a mortgage but for 20 years I payed the previous woman owner
$87.77. At
the last payment it just so happened that I sold it.
Linda
-Original Message-
From: Programming On Behalf
Of &
,000. With a loan of $12,000 at 5.75
interest for 20 years. As a tenured teacher and a woman no bank would give
me a mortgage but for 20 years I payed the previous woman owner $87.77. At
the last payment it just so happened that I sold it.
Linda
-Original Message-
From: Programmin
?
>> >
>> > NB. Mortgage is Rate Months Loan
>> >
>> > pmt=: 3 : 0
>> > (x =: 0) pmt y
>> > :
>> > 'r t b'=:y
>> > D=:(1 + r % 1200) ^ t
>> > b*(r % 1200) * D % D - 1
>> > )
>> >
>> >
ot the opportunity to save the repeated (s y) in
> > >> Linda's example.
> > >>
> > >> Somewhat to my surprise, a minor change to Linda's explicit
> > >> expression does result in a single applicaton of s in a quite elegant
> > >> tac
d teacher and a woman no bank would give me a
> mortgage but for 20 years I payed the previous woman owner $87.77. At the
> last payment it just so happened that I sold it.
>
> Linda
>
> -Original Message-
> From: Programming On Behalf Of
> 'Mike Day' via Pro
nt: Saturday, September 8, 2018 1:45 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
Agreed on the "strong hint" in herona below. I got into that habit
years ago in Fortran
And Sorry for the unintentional extra characters. (I'm se
y)-y'
>>>>
>>>>    herona 3 4 5
>>>>
>>>>
>>>>
>>>>    herona 5 12 13
>>>>
>>>> 30
>>>>
>>>>    herona
>>>>
>>>> [: %: [: */ s ([ ,
then
learn to read ghe ords in sentences. And just
as you might when learning Spanish, you might in time begin to speak it.
Linda
-Original Message-
From: Programming
On Behalf Of David Lambert
Sent: Thursday, September 6, 2018 6:11 PM
To: programming
Subject: Re: [Jprogramming] Taci
computers J anguage. First learn the words and then learn to read
ghe ords in sentences. And just as you might when learning Spanish,
you might in time begin to speak it.
Linda
-----Original Message-
From: Programming On
Behalf Of David Lambert
Sent: Thursday, September 6, 2018 6
You need to define s. An interesting threaLin
Linda
.
Sent from my Verizon, Samsung Galaxy smartphone
Original message
From: Martin Kreuzer
Date: 9/8/18 4:40 AM (GMT-05:00)
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
mputers J anguage. First
learn the words and then learn to read ghe ords
in sentences. And just as you might when
learning Spanish, you might in time begin to speak it.
Linda
-----Original Message-
From: Programming
On Behalf Of David Lambert
Sent: Thursday, September 6, 2018 6:11
@Louis
I must admit that I had forgotten about (or even
never heard of) Brahmagupta's formula for the area of a cyclic quadrilateral.
Treating Heron's formula as a special case of the
former makes indeed an elegant solution.
Thanks for pointing that out.
-M
At 2018-09-05 01:25, you wrote:
Yes, although I thought the non-f. version showed s happened to be
"saved" on this occasion...
Mike
On 07/09/2018 15:17, Raul Miller wrote:
You can always find cases which optimizing compilers don't deal with
(because there's infinities of those).
That said, in this case, I think it's worth
@Martin
At 2018-09-04 20:34, you wrote:
What *does* matter is that using such auxiliary functions is *good*.
Eugene McDonnell was a great teacher demonstrating elegant, readable
code composed out of useful little parts.
Thanks for the reminder and encouragement -- I now remember having
had p
> ;:'[: %: [: */ s , s - ]'
> >
> >
> > Explisit sentences are like English and the new language is the computers J
> > anguage. First learn the words and then learn to read ghe ords in
> > sentences. And just as you might when learning Spanish, you might in t
@Michael
Thanks -- yes, I do ...
(And coincidentally, it's along the same lines as
Mike day's 2nd suggestion a day later.)
-M
At 2018-09-04 14:06, you wrote:
Did you mean something like this?
f=: -:@(+/) %:@([* */@:-) ]
f 3 4 5
On Tue, Sep 4, 2018, 10:01 AM Raul Miller, wrote:
>
m: Programming On Behalf Of David
Lambert
Sent: Thursday, September 6, 2018 6:11 PM
To: programming
Subject: Re: [Jprogramming] Tacit form: How to handle intermediate
A hook can save recomputation.
(computation with original data and reused me) (resuse me)
test=: [: %
Kreuzer To:programm...@jsoftware.com
> Subject: [Jprogramming] Tacit form: How to handle intermediate
> result..?
> Message-ID:
> <5b8e71a5.1c69fb81.65e5c.4a9esmtpin_added_miss...@mx.google.com>
> Content-Type: text/plain; charset="us-ascii"; format=flowed
>
> H
form: How to handle intermediate
result..?
Message-ID:
<5b8e71a5.1c69fb81.65e5c.4a9esmtpin_added_miss...@mx.google.com>
Content-Type: text/plain; charset="us-ascii"; format=flowed
Hi all -
To calculate the area of a flat triangle, using Heron's formula,
A(a,b,c)=
Dissect would also show you what is going on.
Henry Rich
On 9/6/2018 2:54 AM, Martin Kreuzer wrote:
@Rob
Thanks for the patient clarification ...
I should have seen this (if I had been more persistent :) by comparing
3,4,5 -: 3 4 5
3 4 0
with
(3,4,5) -: 3 4 5
1
-M
At 2018-09-06 0
ink halve not match. Use times with insert not with things to
> the right. Finally use square root
> not root.
>
> Hope you have good classes!
>
> Linda
>
> -Original Message-
> From: Programming On Behalf Of
> Cliff Reiter
> Sent: Tuesday, Septem
> not root.
>
> Hope you have good classes!
>
> Linda
>
> -Original Message-
> From: Programming On Behalf Of
> Cliff Reiter
> Sent: Tuesday, September 4, 2018 8:52 AM
> To: programm...@jsoftware.com
> Subject: Re: [Jprogramming] Tacit form: H
a
-Original Message-
From: Programming On Behalf Of Cliff
Reiter
Sent: Tuesday, September 4, 2018 8:52 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Tacit form: How to handle intermediate result..?
Your 13 created a tacit verb
ink halve not match. Use times with insert not with things to the
right. Finally use square root
not root.
Hope you have good classes!
Linda
-Original Message-
From: Programming On Behalf Of Cliff
Reiter
Sent: Tuesday, September 4, 2018 8:52 AM
To: programm...@jsoftware.com
Subject:
@Rob
Thanks for the patient clarification ...
I should have seen this (if I had been more persistent :) by comparing
3,4,5 -: 3 4 5
3 4 0
with
(3,4,5) -: 3 4 5
1
-M
At 2018-09-06 06:28, you wrote:
Martin, this is normal evaluation of Noun Verb Noun Verb Noun Verb
Consider:
Martin, this is normal evaluation of Noun Verb Noun Verb Noun Verb …
Consider:
100 200 300+1NB. The “literal” 100 200 3000 is identified as a single
noun of 3 numbers, so this is parsed as NOUN VERB NOUN
101 201 301
100,200,300+1. NB. This is identified as Noun VERB Noun VERB No
@Raul
Thanks - it has been very enlightening to see the
expression to grow 'more' tacit from line to line ...
I went through it (line by line) and stumbled upon this issue:
Until now I thought that
3 4 5 -: 3,4,5
1
giving identical results in subtraction
6 - 3 4 5
3 2 1
6 - 3,4,5
Yes, I've just checked m14 - it rather looks as if I was plagiarising it!
It uses 0: , ] rather than my 0&, ...
I haven't ever checked whether using a verb constant like 0: is
"better" than the noun 0 . Early versions of J didn't permit
constants in forks, so 0 , ] wasn't allowed.
FWIW, if you
I sent this message earlier today, but it seems that I used the wrong email
address. I didn’t find it in the forum archives; sorry if it comes in twice.
I see that most of what I said has since been covered by Mike.
~~~
I would’ve done it this way; the semi-perimeter is n
@Mike
Yes, it does help, as
it is a sort of eye-opener, rephrasing the fourth factor (s) as (s-0), and
it answers my (yet un-uttered) question about "m14".
-M
At 2018-09-04 13:46, 'Mike Day' via Programming wrote:
Does this help?
Each line is a small amendment to the preceding one...
(-:@
@Cliff
Yes - I got a tacit form, and have been wondering
whether there is a way to avoid
the repetition of ([: -: +/) ...
-M
At 2018-09-04 12:51, you wrote:
Your 13 created a tacit verb
  taher=: 13 : '%: s2 * */ s2-y [ s2=. -: +/ y'
  taher
[: %: ([: -: +/) * [: */ ([: -: +/) - ]
O
@Bo
Went step by step through that biquadratic function ...
and understoodits components.
Was totally unaware of that formula (shame on me);
could you cite a source, that sounds like an interesting book..?
-M
At 2018-09-04 12:24, you wrote:
  ([: %&4 [: %: *:@:(+/@:^)&2 - +:@:(+/@:^)&4)Â
Martin Kreuzer wrote:
>
> To calculate the area of a flat triangle, using Heron's formula,
> A(a,b,c)= sqrt( s2*(s2-a)*(s2-b)*(s2-c) )
>
> Q: Is there a way to reference the intermediate result of ([: -: +/)
> the half perimeter s2 within the tacit expression, as has been done in
> the explicit..?
Did you mean something like this?
f=: -:@(+/) %:@([* */@:-) ]
f 3 4 5
6
On Tue, Sep 4, 2018, 10:01 AM Raul Miller, wrote:
> I was about to suggest something similar:
>
>13 : '(%: x * */ x-y)'
> [: %: [ * [: */ -
>13 : '(%: y * */ y-x)'
> [: %: ] * [: */ -~
>13 :'y ([: %: ] *
I was about to suggest something similar:
13 : '(%: x * */ x-y)'
[: %: [ * [: */ -
13 : '(%: y * */ y-x)'
[: %: ] * [: */ -~
13 :'y ([: %: ] * [: */ -~)-:+/y'
] ([: %: ] * [: */ -~) [: -: +/
taher=: ] ([: %: ] * [: */ -~) [: -: +/
taher 3 4 5
6
Variations are possible, of course. F
Does this help?
Each line is a small amendment to the preceding one...
(-:@(+/))3 4 5NB. Semiperimeter, s
6
(-:@(+/)-0&,)3 4 5 NB. s - 0, a, b, c
6 3 2 1
(-:@(+/)*/@:-0&,)3 4 5 NB. s * (s - a) * ...
36
(-:@(+/)%:@(*/)@:-0&,)3 4 5 NB. Heron’s formula applied to 3 4 5
6
(-:@(
Your 13 created a tacit verb
taher=: 13 : '%: s2 * */ s2-y [ s2=. -: +/ y'
taher
[: %: ([: -: +/) * [: */ ([: -: +/) - ]
On 9/4/2018 7:50 AM, Martin Kreuzer wrote:
Hi all -
To calculate the area of a flat triangle, using Heron's formula,
A(a,b,c)= sqrt( s2*(s2-a)*(s2-b)*(s2-c) )
I wrote
([: %&4 [: %: *:@:(+/@:^)&2 - +:@:(+/@:^)&4) 3 4 5
6
As the square of the area of a triangle is a symmetric polynomial of the
squares of the sides, the above tacit code also works.
Den tirsdag den 4. september 2018 13.51.07 CEST skrev Martin Kreuzer
:
Hi all -
To calculate the
Hi all -
To calculate the area of a flat triangle, using Heron's formula,
A(a,b,c)= sqrt( s2*(s2-a)*(s2-b)*(s2-c) )
I wrote a simple function doing this:
* get the three sides (as list input y)
* compute the half perimeter s2
* build the differences s2-y
* build product
* take square root
My e
75 matches
Mail list logo