« first day (43 days earlier)      last day (3178 days later) » 

12:44 AM
@LuisMendo - haha yes. I tried.
 
 
6 hours later…
6:25 AM
@rayryeng, in my defense: I wasn't working on it 30 minutes straight,,, but yes: It it did drive me crazy! I totally forgot about sind, tried asin, but that obviously wasn't it... Well done Luis! =)
 
6:37 AM
@AnderBiguri I am not an expert on MuPAD. Just tried it now for a few minutes, and didn't seem to find a way to do it. Maybe playing around with the MathType export settings could help. The idea with Maple is that it is able to convert the copied equation to text, based on where you paste it into. If you're planning to look into this, suggest starting with what kinds of inputs MuPAD is able to parse and trying to export something like that from MathType.
 
 
2 hours later…
8:09 AM
@LuisMendo Nice riddle! I've been trying to solve it for a while and didn't get very far :)
Only noticed that atan(0.4228)==0.4==2.5^-1, and I also have a theory that the step size was changed to 0.35
(obviously by == I mean equal within a tolerance)
I wonder when will some religious nutjob decide to forbid the use of sin
 
9:02 AM
Here's an alphabetic MATLAB function list for those interested in solving problems of this type: pastebin.com/Ghkusz5d
 
9:24 AM
And this is a list of functions with Levenshtein distance of <=2 from sin: pastebin.com/dWDjVc2W
(Small correction: pastebin.com/3yH6XpTC )
 
9:58 AM
@Dev-iL I just checked how good Maple is now. I learned Maple 6 I think, and that one looked exactly the same and had exactly the same syntax/colors/outputs than mupad
 
 
2 hours later…
11:28 AM
@LuisMendo: I believe you might have broken the rules in the codegolf-challenge...? Have a look at my answer.
My bad, you didn't break any rules :P But I did crack it though =)
 
12:26 PM
Enjoy :)
0
A: Two Makes All The Difference - Cops

JonasMATLAB, 82 bytes Code mistake = round(exp(i*pi));tragic = rosser;a = hilb(8)*42; a(:,:)+tragic(8)/mistake Original Output 13.0000 -8.0000 -15.0000 -18.5000 -20.6000 -22.0000 -23.0000 -23.7500 -8.0000 -15.0000 -18.5000 -20.6000 -22.0000 -23.0000 -23.7500 -24.3333 -15.00...

Apologies if it's too easy
And another one
0
A: Two Makes All The Difference - Cops

JonasMATLAB, 8 bytes Code sin(1+1) Original Output 0.9093 Changed Output -0.2624

 
12:41 PM
@Jonas, you used format long first right, to get Lev Dist > 15?
 
yes
on the second question
 
I was considering doing that too, but figured I had to include it in the byte count... Don't know if I'm the only one thinking that...?
Well, doesn't really matter IMO, just thought I'd bring it up :)
Hope I have time later today =)
 
1:01 PM
@StewieGriffin: wow, what a stupid mistake on my side! anyway, here's a better puzzle: codegolf.stackexchange.com/a/54625/18
 
1:40 PM
heyyyy. love seeing the activity on cops and robbers :D
MATLAB's making a good appearance there.
@Jonas @StewieGriffin :D
 
2:00 PM
@rayryeng such d'oh! anyway, both puzzles should be straightforward to you :)
 
haha you give me too much credit :)
 
Hey, this Cops & Robbers thing is very funny!
 
I love it!
Once that post ends, I'd love it if we can do something here :)
 
I'm going to try Jonas'
 
once every week or something... someone takes turns suggesting a question, and we all try and crack it
Yeah his is difficult. I've been trying for half an hour.
 
2:11 PM
Actually I see there are two answers by Jonas not cracked (and a third one cracked)
 
He put a third one up because he had a slight typo in the second question.
It wasn't what he originally intended.
 
Oh, I see.
 
yeah :)
the one that's 82 bytes is killing me.
 
Yes. That's too hard for me. Besides, it's too long. There will probably be a shorter uncracked answer, and so that other one will win
 
yes lol
I've been taking a stab at the arg exp one.
 
2:25 PM
That one doesn't fulfill the minimum distance requirement. I guess format long would suffice
 
If the negatives were removed, then yes it just barely makes 15.
but right now, it's 12. Are we allowed to assume format long?
I don't remember that being allowed. What you type is what you should get IIRC.
 
Yes, I think format long should be part of the code
 
this is fun! :D
 
:-D
 
2:45 PM
@LuisMendo, @rayryeng: thanks for counting
I added format long for the "second" question
 
no problem still a hard question lol
 
oh, glad you like it :)
The first one is very un-golfed; I should have created it in collaboration with one of you experts
I hadn't even read the part about who would win in the end
I just wanted a fun puzzle for the Matlab-guys
 
that's totally fine :D
It's still a very challenging one :) The 82 bytes one I won't even attempt lol.
 
hm, and I thought it would be so obvious
Do you know whether it's ok to golf the question a bit?
 
haha nope. That's what I thought with Stewie.
As long as it isn't solved, go for it.
I have no problems.
 
2:51 PM
and thus make it easier?
 
oh... well that's up to you lol.
 
well, need to run to a few meetings
will work on it later
 
sure lol. I'll get back to work too :)
 
3:11 PM
@Jonas Cracked!
 
wow. nice job!
 
3:47 PM
@AnderBiguri - it was +75 in the end ...
 
4:02 PM
Ouch! still good :D
 
Yeah, all points are welcome! :D
 
what points!?
 
I mentioned some bounty I was pretty certain I was going to get
 
Magical, Unicorn Points!
 
Devil is hacking Matlab again
 
4:04 PM
so I got half of it because the asker didn't bother choosing an answer
 
so my rng was wrong...
 
@beaker - who would have thought... :(
 
it's guaranteed to be right 1/n times!
 
@Jonas ... and cracked!
 
Even a broken rng shows the right value twice a day...?
 
4:06 PM
@LuisMendo - You're good at this!
 
@rayryeng whenever the only thing required is changing a function name (in MATLAB) - this can almost be brute forced
 
@rayryeng I'm starting to think about it in "psychological" terms. What kind of changes the "cop" would want to make. Just changing a number would be dull
 
Not if the byte count for the function is 62 bytes.
There are a lot of things you can change. Not just functions.
hahaha nice @LuisMendo
The mathematica one though... is frightening.
someone did 8.!.. so that comes out to 40320... that's what we expect from 8 factorial
 
well, you can hack this contest by using nargin and nargout :D :D
 
doing 2 changes resulted in a very large imaginary exponential number.
 
4:09 PM
suddenly, between the 12th of August and the 15th of August 2015, the amount of Matlab code written was suddenly reduced. After some research it turned out that eveyone was codegolfing
 
6
A: Two Makes All The Difference - Cops

belisariusMathematica v9, 3 bytes Code 8.! Original Output 40320. Changed output -13 1. + 9.41717 10 I For those with Mathematica installed, the Boxed output is

@AnderBiguri :D LOL
 
@rayryeng Pity I have no Mathematica. Do you know if there's an online interpreter for it?
 
@LuisMendo Wolfram alpha?
 
@AnderBiguri like somebody mentioned - there's a lot of "fresh blood" to do the answering :)
 
I just saw that in the question comments they say there's no online interpretar
 
4:11 PM
@LuisMendo - No there isn't unfortunately. I wish there was.
 
I dont know almost any mathematica, but in Wolfram alpha mathematica code lines get evaluated, rigth?
 
The person who posted that question was considering deleting the question because no one could work on it.
I say leave it for someone who can. It's still a great challenge.
 
@AnderBiguri That makes sense
 
@AnderBiguri - yes
 
hmmm... time to fire up the Raspberry Pi
 
4:13 PM
@AnderBiguri At least 8.! is evaluated properly
 
Here's my idea for a hacky cop riddle to illustrate what I mentioned:
`nar=5;in=4;repmat(nar+in,[1,15])`
 
heh. well that's obvious.
 
Looks like the Mathematica question just got deleted
 
I know, it's just an illustration.... but the thing is, you won't be able to reproduce my result
 
Right
BTW, the Mathematica one is deleted. Pity.
 
4:15 PM
no wonder i can't find it ;)
 
yeah lol. not high enough in rep to see deleted posts
 
@LuisMendo Well is a dude with the surname Wolfram who invented Mathematica, and the Wolfram alpha rigth? is fro the same company. He is supposed to be a genius kid. A have a book written by him at hom
about cellurar automata and patterns in randomness
 
Yes. But the geniusness, or at least that book, are highly disputed
I read a very bad review about the book @AnderBiguri
 
Yeah, actually I read half of it (600 damn pages is half of it)
 
Wow. Hahahah
I considered reading it. I love those automata
But the bad reviews put me off
 
4:17 PM
and it just kepts repating himself about how smart he is because patterns appear in random scenarios with simple rules
 
@LuisMendo: I hope you had fun!
 
@jonas I surely did! Hehehe
 
We all did! :D
 
and he is the big discoverer and he is very smart and whatever.
 
@AnderBiguri Yes. He repeats all the time how clever he is. I don't like that
 
4:18 PM
I think we should have something like that for us here, once that cops/robbers event ends.
 
@LuisMendo If I tried to design something like that, I would change one function to another that happens to always give a certain amount of outputs (say a vector of length 3) regardless of the amount of inputs, and then also change something about the colon arguments
 
I like that it doesn't require code golfing... it requires "detective" work.
 
2:.5:3 => 2:.35:3 or 2:.5:3 => 2.5:3
 
I think most of us are better at that skill rather than coming up with the shortest code.
It allows for more participation.
 
@rayryeng It would be great to have Matlab code golf. Or that language-specific questions were allowed on Code Golf
 
4:20 PM
Yes I agree!
 
@Dev-iL I don't think I follow... maybe post an example?
 
@rayryeng - well, you can write code that is long enough to be humanly "unbreakable", but then you lose the "golfing" part of the contest since your code is just too long
 
We can always impose a character limit.
 
@LuisMendo - I'll try to think of an example
 
Of course there are limitations to the code length, but it uses a different skill set.
and that skill set encourages more participation.
Instead of trying to come up with the shortest code length, it actually lets you dig into the MATLAB docs and fool around with the internals.
This skill is very akin to how you try and break MATLAB.
 
4:24 PM
Well I did post a link to all of MATLAB's functions earlier today ;)
 
ah, if only I had three things to change!
 
:D!
 
5:05 PM
New Mathematica question is up: codegolf.stackexchange.com/questions/54464/…
The OP said that this can be solvable using WolframAlpha.
 
Not what I originally meant, but here's one idea:
`min(sin(magic(6)+10))+1:.3:2` => `[0.2490 0.5490 0.8490 1.1490 1.4490 1.7490]`
1 change => `1.8367`
 
5:20 PM
Gah, I found the Mathematica solution, but it was too late already
 
oh lol. darn.
 
so, should i post an answer to a question that will inevitably cause the OP to request a Matlab implementation of DFS?
nevermind, went ahead and posted it
feeling daring today
 
 
1 hour later…
6:51 PM
@beaker - I've implemented DFS via MATLAB a few times at one point. They can search any of my posts :)
@AnderBiguri - This one's for you
0
Q: Best method to find edge of noise image

user3051460I have a noise image I such as the bellow figure. Assume that it is Gaussian noise. Currently, I am using two steps to find the edge Smooth the image using Gaussian filter G Find edge based on the equation g=1/(1+β∇ (I*G)^2) where G is gaussian filter. β is weight to control the noise level...

 
Another one for the Math-inclined
0
A: Two Makes All The Difference - Cops

JonasMatlab Code format long sin(i^pi) Original Output 0.331393418243797 - 1.109981778186163i Changed Output 0.220584040749698 - 0.975367972083631i

 
@Dev-iL But it's easy to try changing that number until 5 turns out to work...?
 
 
2 hours later…
9:21 PM
@LuisMendo The point wasn't to make a difficult question, it was to demonstrate ways to complicate problems. In this specific scenario I don't even know why the output changes its length in unexpected ways when varying the argument of magic
 
9:47 PM
@Dev-iL Ah, ok. Well, it changes because sin(magic(6)+10))+1:.3:2 uses the first entry of magic(6)
 
What do you mean?
 
Try it. magic(5):20 is 17:20
magic(3):20 is 8:20, because the the (1,1) entry of magic(3) is 8
 
Oh alright... But that's a bit strange, no?
 
It is indeed. I read about it somewhere
It's here:
"If you specify nonscalar arrays, MATLAB interprets j:i:k as j(1):i(1):k(1)"
 
10:24 PM
I see
 
11:02 PM
Nice code golf challenge!
17
Q: Print all 2 letter Scrabble Words

qwrThe Challenge: Print every 2 letter word acceptable in Scrabble using as few bytes as possible. I have created a text file list here. See also below. There are 101 words. No word starts with C or V. Creative, even if nonoptimal, solutions are encouraged. AA AB AD ... ZA Rules: The outputted...

 

« first day (43 days earlier)      last day (3178 days later) »