[Jprogramming] A Tale Without End
Linda Alvord
lindaalvord at verizon.net
Mon Feb 24 01:41:15 UTC 2014
I just saw that there are several other ways to get the golden ration.
Before I look at them I don't know how to change the rational numbers A
and B to decimals with many digits.
g=: 13 :'(+%)/\y$1x'
g
[: (+ %)/\ 1x $~ ]
A=:0{|. g 100
A
573147844013817084101r354224848179261915075
B=:0{|. g 200
B
453973694165307953197296969697410619233826r280571172992510140037611932413038
677189525
Linda
-----Original Message-----
From: programming-bounces at forums.jsoftware.com
[mailto:programming-bounces at forums.jsoftware.com] On Behalf Of PMA
Sent: Sunday, February 23, 2014 3:48 PM
To: programming at jsoftware.com
Subject: Re: [Jprogramming] A Tale Without End
My favorite..
-:>:%:5
1.61803
Nimp O wrote:
> And also..
>
> (+ %:)/ 0,20$1
> 1.61803
>
>> Date: Sun, 23 Feb 2014 20:11:11 +0000
>> From: bojacoby at yahoo.dk
>> To: programming at jsoftware.com
>> Subject: Re: [Jprogramming] A Tale Without End
>>
>> {.>{:p. 1 1 _1
>> 1.61803
> s.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list