On Wed, 19 Feb 2020, Paul Procacci wrote:
> >> Is there a test to see if a number is irrational
> There is no such thing as an irrational number in computing.
>
> Surely there are "close approximations", but that's the best any computer
> language can currently do.
>
It all depends on represent
On 2020-02-20 12:10 a.m., Tobias Boege wrote:
Granted, Todd would not have anticipated this answer if he calls
arbitrary length integers "magic powder" and the question "I have
computed this Int/Num/Rat in Raku, is it rational?" does indeed
not make any sense. But there are computer languages th
Hi Todd,
This is going to be hard for an intuitive guy like you, but it can be
proven that 100% of all numbers are irrational (see
https://math.stackexchange.com/questions/1556670/100-of-the-real-numbers-between-0-and-1-are-irrational
).
Except the ones that a computer can do operations on, which
Every system that uses a fixed finite number of bits to represent numbers
has to represent them as implicit rationals...that is
unless it goes through the trouble of having a finite list of irrational
constants that it represented specially.
sqrt is not equivalent to the mathematical definitio
On 2020-02-20 05:53, Richard Hainsworth wrote:
However, my question to you is: when would you come across an irrational
number in a computer? How would you express it? Suppose I gave you a
function sub irrational( $x ) which returns true for an irrational
number. What would you put in for $x?
On 2020-02-20 00:41, Darren Duncan wrote:
On 2020-02-20 12:10 a.m., Tobias Boege wrote:
Granted, Todd would not have anticipated this answer if he calls
arbitrary length integers "magic powder" and the question "I have
computed this Int/Num/Rat in Raku, is it rational?" does indeed
not make any
On 2020-02-19 23:21, Shlomi Fish wrote:
Hi Paul,
Well, it is not unthinkable that a
https://en.wikipedia.org/wiki/Computer_algebra_system (CAS)-like system will be
able to tell that the abstract number sqrt(2) is irrational, as well as some
derivative numbers such as 3 + sqrt(2). E.g:
Hi Sh
On Thu, Feb 20, 2020 at 2:25 PM ToddAndMargo via perl6-users
wrote:
>
> On 2020-02-19 23:21, Shlomi Fish wrote:
> > Hi Paul,
> >
>
> > Well, it is not unthinkable that a
> > https://en.wikipedia.org/wiki/Computer_algebra_system (CAS)-like system
> > will be
> > able to tell that the abstract numb
On 2020-02-20 16:27, William Michels via perl6-users wrote:
mbook:~ homedir$ perl6 -e 'say (1/7).base-repeating();'
(0. 142857)
mbook:~ homedir$ perl6 -e 'say (1/7).base-repeating(10);'
(0. 142857)
mbook:~ homedir$ perl6 -e 'say (1/7).base-repeating(10).perl;'
("0.", "142857")
mbook:~ homedir$ pe
On Fri, 21 Feb 2020 at 13:31, ToddAndMargo via perl6-users <
perl6-us...@perl.org> wrote:
> $ perl6 -e 'say sqrt(2).base-repeating();'
> No such method 'base-repeating' for invocant of type 'Num'
>in block at -e line 1
>
perl6 -e 'say sqrt(2).Rat.base-repeating();'
(1.4
142131979695431472081
On Fri, 21 Feb 2020 at 13:31, ToddAndMargo via perl6-users
mailto:perl6-us...@perl.org>> wrote:
$ perl6 -e 'say sqrt(2).base-repeating();'
No such method 'base-repeating' for invocant of type 'Num'
in block at -e line 1
On 2020-02-20 19:07, Norman Gaywood wrote:
perl6 -e 's
On Thu, 20 Feb 2020, ToddAndMargo via perl6-users wrote:
> > > On Fri, 21 Feb 2020 at 13:31, ToddAndMargo via perl6-users
> > > mailto:perl6-us...@perl.org>> wrote:
> > >
> > > $ perl6 -e 'say sqrt(2).base-repeating();'
> > > No such method 'base-repeating' for invocant of type 'Num'
> > >
12 matches
Mail list logo