This channel is intended for people just starting with the Raku Programming Language (raku.org). Logs are available at irclogs.raku.org/raku-beginner/live.html
Set by lizmat on 8 June 2022.
00:44 deoac left 01:25 razetime joined 01:26 razetime left 05:34 siavash joined 08:16 teatwo left 08:17 teatwo joined 08:29 habere-et-disper joined 08:40 habere-et-disper left 09:31 siavash left 12:19 ab5tract joined 17:59 ab5tract left 20:18 teatime joined 20:20 teatwo left 21:27 habere-et-disper joined
habere-et-disper Please help me understand the difference between x/0 and 0/0 : 21:28
m: say 3/0 == 2/0 == 1/0
camelia True
habere-et-disper m: say 3/0 == 2/0 == 1/0 == 0/0
camelia False
librasteve m: say 3/0 cmp Inf; 21:29
Raku eval Same
librasteve m: say 0/0 cmp Nan;
Raku eval Exit code: 1 ===SORRY!=== Error while compiling /home/glot/main.raku Undeclared name: Nan used at line 1
nemokosch probably NaN
librasteve m: say 0/0 cmp NaN; 21:30
Raku eval Same
librasteve en.wikipedia.org/wiki/IEEE_754
nemokosch however, 1/0 is not Inf itself 21:31
m: (1/0, 0/0)>>.WHICH>>.say 21:32
Raku eval Rat|1/0 Rat|0/0
nemokosch these are very fragile rationals
m: (2/0).WHICH.say
Raku eval Rat|1/0
nemokosch and apparently for positive nominators they share an identity 21:34
librasteve this is the docs Converts the number to a Rat with $epsilon precision. If the invocant is a Inf, -Inf, or a NaN, converts them to a Rat with 0 denominator and 1, -1, or 0 numerator, respectively. 21:36
docs.raku.org/type/Num#method_Rat
habere-et-disper =D
librasteve seems perfectly Rational to me ;-)
habere-et-disper (If a bit Complex at first.) (y)
librasteve XD 21:37
21:52 habere-et-disper left 23:36 razetime joined