« first day (2479 days earlier)      last day (2373 days later) » 

12:39 AM
@Calvin'sHobbies The slope of x^2 is 2x, which is linear, so it is wrong to say that grows exponentially
Although it's clearly not linear, so I'm not sure what the right term is
 
12:50 AM
polynomial
 
Anonymous
@Calvin'sHobbies Quadratic
 
though linear and quadratic are common specific terms
 
Anonymous
But if you try to describe the growth rate of x^3, you're going to get confused with an esolang
 
@EricTressler Thanks
@Mego Slope is 3x^2, right?
 
@DJMcMayhem I think Cubic must be an esolang
 
12:54 AM
@EricTressler I think they were referring to Cubically
 
@Potato44 that seems likely, I'm not familiar with it
 
Anonymous
@DJMcMayhem Yep
 
Anonymous
@Potato44 Correct :P
 
Anonymous
I take it you're learning basic calculus now
 
me?
 
Anonymous
12:57 AM
No, DJ
 
@Mego No, I took calc 1 a couple years ago actually
I took college classes in HS, then took an extended several year Gap year
 
 
2 hours later…
2:58 AM
@EricTressler Ah, course. Though "grows polynomially" is a mouthful. "Quadratically" a bit nicer.
 
 
4 hours later…
6:30 AM
I'm finally allowed to install Linux on my work laptop now that everything has been ported to .NET Core.
My only other computer is only used for gaming, so I keep Windows on it. I'm pretty happy rn.
CMP: Linux distro of choice?
 
7:02 AM
@Pavel Debian
 
@Downgoat Hmm, really stable, but generally with outdated software in it's repos.
I'm mainly deciding between Fedora and OpenSUSE.
 
Anonymous
7:40 AM
@Pavel Xubuntu
 
@Mego Huh, what's Xfce like? I was under the impression that it's only really good for older or less-powerful systems.
 
Anonymous
@Pavel It's a lot simpler of an interface than Gnome or KDE. Much easier to customize, IMO. And yeah, it's more lightweight, so that's also a plus for me.
 
I've mostly been considerin Cinnamon and KDE.
 
8:00 AM
> TFW a console opens by itself for no reason at all, rapidly goes through some lines, and closes within 5 seconds
 
 
2 hours later…
10:02 AM
0
Q: How many times a number appears as leaf node in all permutations of binary search tree?

Ritesh ChauhanSuppose you have an array of n elements A = {1,2,3,4,5} total of 5! binary search trees are possible(not necessarily distinct) now my question is in how many of trees 1 appeared as leaf node and in how many 2 appeared as leaf node and so on ? What I have tried: I've seen for A = {1,2,3} 2 ap...

 
10:41 AM
0
Q: library of few primitive for golfing languages

RosLuPThe set of primitive functions and operations The clue it is to find one little subset of operations that allow to write all the remain operation easily, they have to be few (because it is difficult remember too much ) I request to you to add other operation/function you think to be easy and goo...

 
11:29 AM
0
A: Sandbox for Proposed Challenges

J843136028Bobby's Booby-Trapped Safe Bobby's booby-trapped safe requires an n-digit code to unlock it. Alex has a probe which can test combinations without typing them onto the safe. The probe responds Fail if no individual digit is correct. Otherwise it responds Close, including when all digits are corre...

 
11:47 AM
0
A: Sandbox for Proposed Challenges

FlipTackAlgebraic Fibonacci Given two integers starting integers, a, b, the terms of the Fibonacci sequence can be represented as follows: a, b, a+b, a+2b, 2a+3b, 3a+5b, 5a+8b, 8a+13b... The Challenge Your task is to, given an integer n, return the nth Fibonacci number, represented algebraically usi...

 
12:31 PM
0
A: Sandbox for Proposed Challenges

FlipTackTake a byte! Your task is to, given an unsigned integer n, find the largest number which can be created by deleting a single byte (8 consecutive bits) of data. Example Given the number 7831, we first convert it to binary: 1111010010111 We then find the group of 8 bits which, when removed,...

 
 
2 hours later…
2:36 PM
@Mr.Xcoder Out of curiosity, why did you protect this question?
 
@cairdcoinheringaahing Because it has received a lot of trashy messages answers and I felt that was appropriate.
 
@Mr.Xcoder That's got me wondering how many questions are user-protected here :P
 
¯\_(ツ)_/¯
CMC: Given a list of positive integers, check whether all share at least one divisor other than 1. [6, 5, 3] -> False, [12, 4, 18] -> True
I am awaiting clever ways of handling the 1
@Mr.Xcoder Jelly, 6 bytes. Returns [] for falsy and non-empty list for truthy.
 
@Mr.Xcoder Jelly, 6 bytes. Returns 1 for falsey, >1 for truthy
 
You use L, I use dequeue, right?
 
2:47 PM
@Mr.Xcoder Nope
@Mr.Xcoder Jelly, 6 bytes: żḊg"/P
 
Oh cool
Mine is ÆDæ&/<dequeue>
Oh hello SBA!
 
@Mr.Xcoder Nice
 
@cairdcoinheringaahing I am kind of bored, are you up for a bit of JHT?
 
@Mr.Xcoder Soory, I've got french homework ATM. I'll ping you there when I'm done though?
 
2:49 PM
Yeah, I should go solve my hw as well. Sure ping me
 
@Mr.Xcoder Husk, 3 bytes: εF⌋ with invertes truthy/falsy
 
Oh... Nice!
Jelly, 3 bytes (inverted truthy/falsy): g/Ị
Thanks to H.PWiz for showing me how dumb I am!
... How did I not think of GCD when I posted the CMC?
 
3:15 PM
@Mr.Xcoder So if one or more elements are 1 we have to return Falsy, right?
 
@Adám Indeed.
 
@Mr.Xcoder Dyalog APL, 4 bytes: 1≠∨/ (Is 1 different from the greatest common divisor?)
 
Same algo as in the Jelly 3-byter
 
3:32 PM
ಠ_ಠ My school gave me a sample physics paper that believes 70 * 1/3 == 23.1
 
How do you even get that?
 
Probably mostly because of bad precision measure tools.
 
._. I can understand 23.3, but 23.1 is just horrible.
 
3:47 PM
(sorry – kids)
 
4:18 PM
1
A: Sandbox for Proposed Challenges

ZgarbBitwise XOR of rational numbers code-golf rational-numbers bitwise Introduction Every rational number between 0 and 1 can be represented as an eventually periodic sequence of bits. For example, the binary representation of 11/40 is 0.010 0011 0011 0011 ... where the 0011 part repeats infi...

 
 
1 hour later…
5:35 PM
@Adám If I get a new computer, do I need to apply for a new Dyalog license to put APL on it? I can't seem to sign into my.dyalog.com.
 
Big megacorporations don't generally post their internal routing structure, correct?
 
6:15 PM
-2
Q: Quicksort output wrong

nisn777I want to sort the given array using quicksort. So I wrote this code in c for quicksort algorithm but its not giving me correct answer.Its giving me the same output as the input. eg: If i give input as 3 2 1 then it is giving Output: 3 2 1 Please help and tell me where is the mistake. #include<s...

 
6:34 PM
@Pavel No, you can use the same license number when you install. Your license only covers my.dyalog.com membership for two weeks. After that, you need to apply for a new license (which will be given to you).
 
@Adám Thanks, I also went from Windows to Linux. Does that matter?
 
@Pavel Yes, you need one license per OS, but your license number may be the same. Just fill in the form or email sales@.
 
@Adám ok cool. I'll go do that.
Fun fact: The fedora wiki encourages using su -c 'dnf install foo' over sudo dnf install foo. Why this is I have no idea
 
7:11 PM
∞ =15 for sufficiently small values of ∞.
 
@Adám Speaking of which, tio.run/##SyzI0U2pTMzJT////1Hf1EdtEwwPbzf4/x8A errors, but what should happen is tio.run/##SyzI0c1Lz/v//1Hf1EdtEwwPbzf4/x8A . I propose this be fixed in a later version of Dyalog.
 
@Pavel It is not so obvious what 1÷0 should be (if anything). Afaik, ISO specifies that 1÷0 is an error. Dyalog APL does not support infinities, but you can make it 0 if you want.
 
@Adám IEEE 754 floating point specifies infinity.
 
@Pavel Yes, the representation standard. Indeed I think Dyalog APL will handle IEEE infinities and NaNs if you manage to import them. However, ISO made a standard for APL, which does not include such.
 
7:23 PM
@Adám Ah, I didn't realize ISO had it's own APL standard.
I'd really love to read this specification but ISO charges for it ,_,
 
@Pavel All of today's major APLs are practically compliant. Dyalog has made one exception for a very silly syntactical anomaly.
 
@Adám Well NGN uses IEEE 754, being implemented in JS.
And also I'm curious what this exception is now
 
@Pavel Ifaik, APL2 follows the standard. No more, no less. Dyalog APL has added lots of yummy stuff.
@Pavel If O is a dyadic operator, then according to ISO, f O 1 2 is the same as (f O 1) 2 and f O 1 2 3 is the same as (f O 1 2) 3 and f O 1 2 3 4 is the same as (f O 1 2 3) 4 but f O 1 2 3 4 5 is the same as (f O 1 2 3) 4 5. Dyalog does not insert any parentheses for you.
 
@Adám So in dyalog's case, everything to the right of O is a single array? That makes sense.
 
7:32 PM
@Pavel Yes.
 
@SimplyBeautifulArt 10/10
 
@SimplyBeautifulArt What does 1/0 mean?
 
@ckuhn203 The IEEE convention is correct in the sense that the reciprocal of any sequence that tends to 0 tends to infinity. — Jubobs Jun 16 '14 at 19:29
 
7:36 PM
If you want a really large negative number, take floor(0/0)
 
lim(-1/x), x→0 = -∞
 
@SimplyBeautifulArt Haskell gives me this
 
No, I think floor(0/0) < floor(-1/0)
 
> Any number you can fit on a whiteboard basically rounds down to 0.
 
So I'd rather say that 1÷0 is indeterminate.
 
@Pavel @SimplyBeautifulArt However APL is completely correct in giving L, the largest representable number, as the identity element of minimum-reduction. x=L⌊x is true for all x.
 
@Adám What is dyadic floor?
 
But why is floor(0/0) so big?!
 
@Pavel Minimum.
 
7:42 PM
@Christopher2EZ4RTZ Why? I don't want to know why
 
@cairdcoinheringaahing proof needed? ok then
 
@cairdcoinheringaahing Noooooo. Don't take the bait!
 
brb getting my proof
 
@Adám Whoops :P
 
there is no turning back now
 
7:44 PM
@Christopher2EZ4RTZ Can I bother you to give me the last digit of pi before you post your proof?
 
He has a 1/10 chance of being right :P
 
For all you know I could be right
 
@Christopher2EZ4RTZ [citation needed]
 
@Adám go check it yourself :D
 
7:45 PM
@Christopher2EZ4RTZ I don't have a good enough computer at hand.
:41106860 No mathjax here.
 
@Adám i have it
 
@Christopher2EZ4RTZ Soory, you're wrong:
> Nicholas Sze, of tech firm Yahoo, said that when pi is expressed in binary, the two quadrillionth "bit" is 0
That's pi as far as we know
 
wait what
that is not the final digit
 
@Christopher2EZ4RTZ Close enough :P
Can't we just call pi 3 and get it over and done with?
 
@cairdcoinheringaahing Sure. Wait… why is this tank leaking?
 
7:47 PM
lol
 
@Adám Fine then, 4
 
@cairdcoinheringaahing Boink.
 
@cairdcoinheringaahing my house burns down... you hear sirens in the background
 
I have to wonder why Dyalog is more expensive to use on Linux than Windows.
 
dear god why?!!! is heard in the distance
 
I just opened reddit and the first sentence was "Oh god why"
 
@Pavel 0 I'm sorry, I don't see that being the case from that table.
 
@Adám Wait, no, UNIX is more expensive
Which I guess means that's a Mac/Linux bundle?
That doesn't make sense either
 
@Pavel I think "UNIX" here refers to AIX, which has overhead payable to IBM.
 
@Adám Ah. I know that Linux and MacOS aren't technically true Unix systems, but that's still a bit confusing.
 
7:53 PM
@Pavel I'll ask for that to be clarified. Thanks!
 
np
 
 
1 hour later…
9:21 PM
Is there a shorter way to do logical negation in Python?
I want to do something like "S"*(not(boolean_exp))
but instead "S"*N(boolean_expression)
where N is some fancy negation shorthand
~ and - don't seem to be it
 
5 messages moved to Trash
 
@MarcusAndrews If the string is always one character long, then "S"[boolean_expression:]
 
two unfortunately, actually
 
@MarcusAndrews "S"*(1>boolexp)
 
("VALID" vs "INVALID")
aahhhh snap
 
9:32 PM
Is it acceptable to reverse the meaning of the two strings, so you don't need the not at all?
 
u=input()
print(["IN",""][2<len(u)<21 and u.isalnum()]+"VALID")
if the input is valid alphanumeric between length 3 and 20 inclusive
 
"IN"*expression will give "" or "IN". Just need to phrase expression to be true the way you need it.
 
I wasn't able to do that without making the boolean too long
 
u=input()
print(["IN",""][2<len(u)<21+u.isalnum()>1]+"VALID")
Remember, booleans are numbers.
 
there may also be a short ruby regex though but I couldn't get a short version
yeah
perhaps "IN"*(2<len(u)<21+u.isalnum()<2) hmm
 
9:38 PM
Looks promising
Just watch the precedence between < and +
Not to worry + takes precedence over < so that should work
Oh no wait - the last < will be a problem
I got mixed up. You'd need 4 parentheses to avoid the + messing things up
 
@MarcusAndrews Regex: /^[A-z0-9]{3,20}$/
 
Yeah that's what I had tried
 
10:11 PM
Anyone here familiar with NSW?
 
10:24 PM
Any particular reason ths got downvoted?
 
Is there a shorter way to do "(1-a)" for boolean a? (using parens because I am using this as a multiplier)
 
not?
 
it's not shorter
 
I guess that depends on the language. Didn't read above
 
i.e. y-quantity*(1-boolean_var)
 
10:43 PM
@MarcusAndrews how about print("INVALID"][2*(2<len(u)<21 and u.isalnum()):]
print("INVALID"][2<len(u)<21 and u.isalnum()and 2:] also works
 
10:57 PM
Linux installation has completed, for the first time in my life, on the first try. And I remembered to back up my work from the previous OS.
 
which distro?
@Neil Clever!
 
@MarcusAndrews Fedora
The fact that installation went well means everything will break as a use since it's a prerelease build.
 
11:35 PM
what's the rep to see deleted questions?
 
2k here, 10k normally
 
ta
 

« first day (2479 days earlier)      last day (2373 days later) »