« first day (158 days earlier)      last day (3053 days later) » 
00:00 - 23:0023:00 - 00:00

11:00 PM
There was a MATLAB chat room several years ago, but it got removed due to inactivity
I decided to recreate the room.
 
@rayryeng is the equalest among the equals, @flawr
 
@flawr I just linked it to you
 
@rayryeng Why don't you pin a Link to MATL to the starboard?
 
@rayryeng thanks captain:D
 
11:00 PM
@flawr I did!
I'll repin it. The first time I did it was weeks ago
https://esolangs.org/wiki/MATL#Specification
http://dl.dropboxusercontent.com/s/wm1ifsxzmaz608a/MATL_spec_6xii15.pdf?dl=0
3
 
@AndrasDeak I still do not see where?=)
 
@flawr done.
 
@flawr bottom left?
oooh
 
You'll see pinned and starred links on the right of the chat room
 
Ah ok now I see=)
 
11:01 PM
sorry, the info page oneboxes to the chat room...
 
I just added the links in. You're welcome!
 
@flawr click the "info" link on the top right
 
Yeah I just noticed=)
 
http://dl.dropboxusercontent.com/s/wm1ifsxzmaz608a/MATL_spec_6xii15.pdf?dl=0
oops.
 
@rayryeng Thank you very much!
 
11:02 PM
http://chat.stackoverflow.com/rooms/info/81987/matlab-and-octave
 
Just doing some cleanup. Removing ownership for people I haven't seen in months.
 
Hoki might be popping in every once in a while
 
I haven't seen him in ages.
 
last message 68d ago
last seen 15d ago
 
11:04 PM
If I do see him again, I'll readd.
 
@rayryeng my SQL guy accused me of being a mathworks employee, just because I'm an asshole:D
 
lmao
Part of me is saying to go along with it
 
For N_x=800, N_t=4000 (ν=0.2) I get the following:
 
maybe it's also shadowed by his hate of MathWorks... then why is he using the software?
 
of course he's right that I shouldn't have been an asshole
and I'll delete my comments and my answer soon
I still don't think he's right, but it's not worth pissing off each other. And he's right that I'm clueless about his question.
 
11:07 PM
I'm going to vote to close.
his question/answer don't make any sense.
now I downvoted his answer :D lol
 
For N_x=1000, N_t=2000 I get:
 
:D
I don't speak Greek :(
 
@AndrasDeak In the last graph, the exact solution and the approximation are exactly the same.
Why?
@rayryeng I sent it by accident.
 
ooh ooh ooh @rayryeng my OP edited his answer. At least it answers the question in a way:D
I mean at least it states that the other command works like in SQL...
I've modified the opening sentence in response to your comment. Interesting to see that the answer was down-voted. I can't imagine why. This detail is needed in order to use the command, and isn't all that evident in the man pages. One can only wonder about the true motives for the down votes. — user36800 1 min ago
@evinda either because your solution is so damned good, or because you messed something up:P
are the values numerically the same? or just approximately on the plot?
there's a huge difference
 
11:23 PM
lolol I'll remove my vote then
 
@rayryeng he also left a comment whether I wanted to delete our comment thread "due to corporate interests"
but then deleted it:D
 
lmao. I've never met a guy so paranoid than this one
MATHWORKS IS AFTER ME. HELP ME.
 
I'm not sure he believes I'm not Mr MATLAB
@user36800 I represent only myself. But while I try to be open-minded and civil, I don't always succeed. Stack Overflow is about the questions and the answers, and everything else is noise. I feel that it would be, as you put, more professional to not leave the path of our disagreement lying around. I'm obviously rationalizing as well: people don't like to be reminded that they were wrong:) I just wouldn't want someone to stumble upon our discussion in a long while. Only because of its heated nature. If you wish, we can calmly discuss why the manual should be changed; I'd have no objection. — Andras Deak 2 mins ago
I don't know, it just doesn't seem right to leave a pissed-off comment thread behind us
even though I'll delete my answer
it can only cause discomfort later on, if anyone stumbles upon it
oops
no he didn't delete
he commented on his own answer
I was kind of wondering whether it was...er...corporate interests, as it does not reflect well on the documentation. As I said, however, I'm actually on their side. Too much invested in the language. But I can only provide eyes on the ground as to what might help. They have to do their part. If the response is adversarial, no one benefits, and every "dis-benefits". — user36800 10 mins ago
lol?
 
:S?
I have no idea what he's getting on about.
 
@flawr Thanks for your kind comments :-) Be aware that I'm doing some small changes. Some functions may change name, etc. I'll keep publishing updates in Esolangs. I hope to have a stable version in maybe two weeks
 
11:31 PM
@rayryeng he thought that mathworks employees are patrolling SO and downvoting matlab-bashers
 
ohhh
 
@rayryeng Thank you :-)
 
I think a built-in function for the n-th prime would be good in MATL. Maybe the n-th element of primes(max(11,n*log(n*log(n))))? Number of primes less than N is just Ypz I think, should be OK
 
@rayryeng I think it's better to pin only the Esolangs page, not the specific 6xii15 version. By tomorrow it will be old :-) Sorry for all changes, but they are hopefully for good :-D
 
@LuisMendo awww... it's too late now lol. It's all combined in a single message.
Let me try again then
@LuisMendo even better. watch.
 
11:35 PM
@LuisMendo I was gonna tell him the same thing but I realized they were one message
 
@David hi!
 
@flawr Do you think so? On one hand I agree. On the other hand it's a bit like cheating. It would be brute force
 
room topic changed to MATLAB and Octave: Room to discuss MATLAB and Octave related topics - i.imgur.com/EHAPP7J.gif - Keep track of MATL's progress here! esolangs.org/wiki/MATL#Specification [matlab] [octave]
 
@rayryeng haha, but no pressure @LuisMendo!:D
 
Oh, that's great! Thanks! @rayryeng
 
11:36 PM
even better. It's the room topic. :)
 
@rayryeng well it is often the topic of the room
 
Yes, which justifies it being there now
 
@rayryeng you're the boss, no justification necessary:P
 
@David Is that an upper bound on the n-th prime?
 
hey I'd like to think that this is a democracy of some sorts.
@David interesting. How did you determine that upper bound?
 
11:38 PM
@rayryeng we're a democratical guerilla group festering inside the body of SO chat
 
Yeah it's an upper bound for n>5, hence the max(11,...)
Just a standard formula
 
@rayryeng and you're the equalest equal among us:P
 
@David Ok. That's better than blindly test one by one
 
Generate more primes than necessary, and take the n-th one. You can get tighter upper bounds if performance is a problem, but they only work for larger n.
 
Any reference for that formula, @David? All bounds I seem to remember are asymptotic
 
11:39 PM
en.wikipedia.org/wiki/… apparently its called Rosser's theorem
 
The log is missing a base in that article... are we to assume log10 or ln?
 
ln
always ln!
 
pffft lol. ok
interesting bound. Thanks. Very useful for code golf.
 
@David That's a lower bound, not an upper bound. But yes, I could use that: start from that value instead of from 2 seems good enough
 
The lower bound is n*log(n*log(n))-n
Try this: N=1e2;p=primes(N);x=1:length(p);plot(x,p,x,max(11,x.*log(x.*log(x))))
 
11:43 PM
oh man... in normal MATLAB, it may be more useful to just loop and do it brute force... so many bytes :(
 
@David "are you a wizard?"
 
Got it. It's on the Wikipedia page you linked. A lower and an upper bound. Thanks @David
I'll make room for the "n-th prime" function in MATL
 
I think it would be pretty useful
 
On second thought, the bound may not be that helpful
If you find a prime in that interval, you just don't know its index
You still have to count from 2
Right?
 
You still have to use primes and take the n-th element
 
11:47 PM
Ok
 
e.g. n=56;p=primes(max(11,n*log(n*log(n))));p(n)
 
So it's just a bound for the size of the input necessary to primes
 
Yeah
 
And I might have heard of some discrete math (?) thingy where there was log log log logn? I'm unsure...
 
11:48 PM
@AndrasDeak we should call that operation loooogn
 
@AndrasDeak Hardy and Littlewood have some very impressive formulas with many iterated logarithms
 
4 o's for 4 log
 
At some point you have to use primes to get an exact number in Matlab
 
@LuisMendo yeah, unfortunately I'm just kibbitzing when it comes to discrete math:)
That's one area where I'm completely lost
I can't even pretend to know stuff
OK, I googled the guys and that's analysis
but still:D
@rayryeng call that the Google notation
 
11:53 PM
Wow. It works up to 1e7 without very large computation time @David
n=1e7;p=primes(max(11,ceil(n*log(n*log(n)))));p(n)
 
@AndrasDeak I looked at some values and they were the same...
 
Cool @LuisMendo, I'm sure there are better ways to do it, but this seems good enough. There is a nthprime function on the File Exchange, but it uses a precompiled list for n<65536, so it might be overkill for MATL
 
@evinda don't ever do that if you want to be sure
numerical precision can be funny
use all(uapprox(:)-uxact(:))
if it's 1, then your arrays are identical
otherwise, you can check max(abs(uapprox(:)-uxact(:)))/max(abs(uapprox(:))) or something like that to see how huge the differences are
Note that if everything went well, then your arrays are not identical, but their difference is pretty small
 
00:00 - 23:0023:00 - 00:00

« first day (158 days earlier)      last day (3053 days later) »