« first day (468 days earlier)      last day (4025 days later) » 

12:27 AM
Interesting discussion
46
Q: Proposal: ban verbatim homework questions which have no accompanying text

Qiaochu YuanEdit: Clarification: I think we should start closing questions which are obviously copied verbatim from a homework assignment and which consist of no other text. Questions about homework with other text, e.g. "I tried X and it doesn't seem to work," are fine. Many people are asking 1. how we sh...

 
12:39 AM
@belisarius Yes, meta.math has gone haywire with the proposals these days.
@Szabolcs Sorry, didn't see it until now. The Sturm counting (after reduction to tridiagonal form) is the method I'm familiar with.
 
1:39 AM
@J.M. Do you know if it's possible to do that using only sparse matrices if my original matrix is sparse? Or will intermediate results become dense?
 
1:51 AM
@Mr.Wizard I am now.
 
2:33 AM
@Szabolcs I don't know what's state-of-the-art these days, but the method I'm familiar with is Lanczos. If you don't need eigenvectors, then you can use this to tridiagonalize a sparse matrix.
 
 
6 hours later…
8:12 AM
Has anyone ever managed to get custom FrameTicks or Ticks working in a CandlestickChart?
 
 
2 hours later…
10:03 AM
@halirutan Sorry I missed you. I'll be around for a while, so please ping me if you get here.
 
@Mr.Wizard I'm here.
 
Hello. :-)
 
Hi
 
Are you still involved in the syntax highlighter used on the site?
 
@Mr.Wizard yes. We updated it a while ago to version 9
 
10:11 AM
Could we do something about the highlighting of higher-numbered Slots, e.g. #10, ##11, etc.?
 
@Mr.Wizard Yes, we can!
The problem is, that someone has to annoy the SE people to put the new version online.
 
Ah, I see. Well I'm always up for annoying people, so let me do that. :^)
Give me a minute to find an example of something else, please (it just came to mind.)
 
@Mr.Wizard the only thing which needs to be done is to fix line 351 here
@Mr.Wizard Maybe balpha (or whoever could help us there) can just fix it in the installation:
` [PR.PR_ATTRIB_VALUE, /^(?:#+[0-9]?)/,null],`
 
"I have never seen someone using more than one digit after #, so we match only one." -- LOL -- figures I'd be the one to break that rule.
 
yep.. simple minded me ;-)
 
10:20 AM
"EXTERMINATE!"
 
@Mr.Wizard The support of such things without parsing is really error-prone and will work only in the simplest cases.
 
@halirutan However, it is apparently smarter than I am as it caught my coding error. :0
 
@Mr.Wizard You could describe the SE guy the situation and ask him whether he could replace the ? by a * in the next built.
The second ? in this [PR.PR_ATTRIB_VALUE, /^(?:#+[0-9]?)/,null],
 
@halirutan Okay, I'll do that. Perhaps though it would be better to find more than one change before bothering someone with it. Have you noticed anything else that would be easy to fix/extend?
 
11:07 AM
@Mr.Wizard When we updated for version 9 we checked most things.
 
11:25 AM
Hello guys!
I was looking into a way of deleting a certain element of all sublists in a list.
I was looking into `Delete[mylist,{All,4}]`, but `All` does not work in this case.
Do you have any suggestion?
 
@Sosi So you are basically trying to remove a column?
 
Yep
 
@Rojo ok, Drop[mylist, {}, {4}] does the trick!
thanks!
 
@Sosi Oh, true :)
Thank you back, had forgot about that form of Drop
 
11:32 AM
What were you going to suggest?
 
@Sosi You can save one character: Drop[array, 0, {4}]
 
hehe nice @Mr.Wizard! Thanks!
 
@Sosi there are also a couple of related questions; one from this site:
4
Q: How to use "Drop" function to drop matrix' rows and columns in an arbitrary way?

matheoremThe built-in function "Drop" can delete a Matrix's row and column. Typical syntax for "Drop" is as follows: Drop[list,seq1,seq2...] But what if I want to drop a matrix in a way that the indices of the columns to be deleted is not a well ordered sequence? For example the matrix is 10x10, And ...

I'm not sure which StackOverflow question I was thinking of. It might be this one, but I remembered more than one answer/method posted so perhaps not:
6
Q: Simple way to delete a matrix column in Mathematica

PhilI am trying to delete both a matrix in mathematica. An inelegant way of doing it is as I do below, i.e specifying it in a new matrix as S = Table[ Ss[[If[i < t, i, i + 1]]][[If[j < t, j, j + 1]]], {i, q}, {j, q}]; where the goal is to eliminate row and column t. Indeed delete a line...

Hello @J.M.
 
Hey.
@EliLansey The value at 2 Pi should not be included, for starters.
 
Thank you so much @Mr.Wizard, I'm checking them out now!
 
11:41 AM
@Sosi I notice that in a comment Daniel proposes Drop[mat, None, {colnum}]. I'm not sure if that performs any differently from using 0 but it might be more clear.
 
Yep! To me, either using None or {} seems clearer than using 0.
 
I kind of like {} myself on reflection. :-)
 
:)
 
By the way, linked from the StackOverflow answer is this answer by WReach, which is similar to and predates my own code:
7
A: Efficient way to pick/delete a list of rows/columns in a matrix in Mathematica

WReachPart directly supports lists of indices when slicing arrays. The following definitions exploit that: takeOperator[a_?MatrixQ, rows_List, cols_List] := a[[rows, cols]] dropOperator[a_?MatrixQ, rows_List, cols_List] := a[[##]]& @@ complementaryIndices[a, rows, cols] complementaryIndices[a_?M...

 
 
1 hour later…
12:49 PM
I see! A lot of new functions to me (I am kind of new to many of those functions in Mma)
And the use of _? still confuses me a bit
 
@Sosi The only important thing you should keep in mind is that the ?-operator binds really strongly. Therefore, using parenthesis is advised.
 
@halirutan I think it will still take me a bit to start using it, at least effectively
 
1:12 PM
@Sosi When you want to test something, the use it. It's pretty easy :-)
@Sosi If you want an example which goes beyond the most trivial things.. lets say you want to test whether you have a List which contains an Apple:
_List?(MemberQ[#, Apple] &)
You can always test it using MatchQ:
MatchQ[{Apple, George, Ben}, _List?(MemberQ[#, Apple] &)]
 
@halirutan, that is cool!
I am only now starting to use pure functions (though the concept of a "pure function" is something I am not sure I grasped).
But given your example, I think I would first think of a much more complicated way to do it
For sure, not with 1 line of code as clean as you did
 
That's why both, pure functions and pattern tests are nice.
 
Yes! I've been told that Mma has really nice pattern matching abilities. This is where that comes into play huh
 
@Sosi What would you have done_
?
 
1:27 PM
I dont know, but the first thing it would come to my mind would be to analyse it as a string or something like that.. Not the best solution, that's for sure..
 
@Sosi Yeah, not really best :)
@Sosi Pattern matching is really fine
You could even do it without ? in this case
MatchQ[{Apple, George, Ben}, {___, Apple, ___}]
Of course, there's always MemberQ[theList, Apple], but that's not the point :P
hasApple[{___, Apple, ___}] := True;
hasApple[_List] := False
 
hehe nice @Rojo!
 
As a matter of opinion: I personally use _? when the testing function is relatively simple; for more complicated conditions, I use /; instead.
 
1:48 PM
@J.M. Me lately too because you can use the same name as the argument and it is often better readable.
Quality is dropping rapidly when you look a the latest questions
 
@halirutan Yes, but I'm still thankful that we're getting only a few low-quality questions.
math.SE's front page is making me weep, for instance.
 
@J.M. Btw, do you think too that subbu has two accounts?
 
@J.M. that relates with the amount of newbies don't you think? (newbie here :\ )
 
@Sosi I don't mind newbies who at least show some semblance of thought/effort before posting. I'm more than happy to help that sort.
 
@Sosi Even a complete newbie can switch on his brain and write full and clear sentences, describing what he tries to achieve.
 
1:54 PM
@halirutan I'm doing an investigation at the moment.
 
Yes, that is true!
 
@Sosi I assume you cannot see this question:
-2
Q: How i can plot 2 function in one plot with differet domian?

davidI want to plot 2 function on one plot.for example x^2 at [-1,3], x^5 at [0,4]

Oh.. maybe you can.
 
@halirutan Ah yeah, I noticed that same question! Yep, I think more and more, people come online hoping to have someone else doing their own work for them
 
Contrast "waaa I entered (blah) into Mathematica and it doesn't work!!!!1!" with "I was trying out (blah), and I did not get what I want. I checked the documentation, but I couldn't find anything..."
@halirutan At the very least, that poster isn't subbu. A schmuck of a different sort, that one.
Oh, @halirutan: you told me about an article you guys were working on that used the periodic interpolation. If it's not too much to ask, can you send me a copy when you guys are done?
 
@J.M. you know, it's easier to post it online for someone else to tell you how to do it than actually using your gray matter ;)
 
2:00 PM
@Sosi That's true. Sometimes, if you expend enough effort into writing a proper question, you'll be able to answer your question yourself, too.
 
@J.M. The interpolation is only a very small detail. It's a work about biological modelling and sure, if the thing is out I send you a copy.
 
@halirutan Oh, it's fine. I like biology. :)
 
@J.M. Look at this and this question and compare the OPs..
 
@J.M. that happened to me quite a few times ever since I discovered MMa.SE. But then again, sometimes (like in here: chat.stackexchange.com/transcript/message/9208602#9208602) I need to come here and ask these sooo simple questions that make me feel bad about even asking them :P but in the end there is always someone nice around that is patient enough to help
 
@Sosi At least you're taking some effort to learn. :)
@halirutan Well, very similar writing style. If they're not the same person, at the very least they have the same amount of incompetency.
 
2:06 PM
Basically I don't care but the related questions and similar styles got me curious.
 
@J.M. Doesn't that go through a dense intermediate state? I have to read a bit more on this.
@halirutan That's the SE user that was used by several people at the same time.
Maybe they split their accounts.
 
@Szabolcs Aha, OK. He is anyway on my ignore list.
 
@Szabolcs No, not really. You just need to be able to do matrix-vector products, and allocate space to store the diagonal and off-diagonal elements.
The only snag is that it might be slow if your spectrum is "weirdly" distributed. (Unfortunately I've forgotten the precise statement.)
But again, that's the old standby. Maybe there are better ways now that I haven't heard about.
 
2:24 PM
@J.M. This tridiagonalization is just approximate, right? Is it usable if I want a full eigenvalue spectrum, not just the largest eigenvalues?
 
@Szabolcs There's a polishing procedure for getting the tridiagonal you'd have gotten from Householder, if memory serves.
But, you're right, the primary use for this was due to the fact that the tridiagonals that come out in early iterations already have a spectrum similar to the original's.
 
 
2 hours later…
4:28 PM
Ha!
Hi ,

My name is Mohammad Rizvi, I am an Author Relationship Executive at Packt Publishing. We specialize in publishing IT related books, e-books, and articles that have been written by experts in the field.

Packt is planning to publish a book on Mathematica , titled Mathematica Data Visualization .

Given your experience with Mathematica, I was wondering whether you would be interested in authoring this book.

Please let me know if you would like to know more about the book.

Awaiting Reply,
I would never buy a book from a publishing company daring to select me as an author
3
 
4:53 PM
@belisarius But who would publish your two-volume biography?
 
@J.M. That's not a book. It is a revelation
 
@Verbeia I haven't tried it before. Can you send me some examples?
 
drN
5:35 PM
I got a 30 day trial version of Mathematica 9.0 and was quite annoyed to see that Export is not available in the 30 day version! Does anyone know what else is perhaps unavailable? I got ver. 9.0 since ArrayPlots MatrixPlots with PlotLegends->... has better one-to-one data correlation and now I am rather miffed! :(
 
@drN Yes, I believe they patched that one glaring hole in previous trial versions.
(Among other things, Export[] allowed you to save notebooks when supposedly the usual saving function is disabled.)
 
drN
@J.M. Sigh. Rather unfortunate. I had recently moved away to python and wanted to relapse :P to mathematica! I guess I will have to wait until I am rich enough to afford a full, un-restrained Mathematica 9.0 license.... :(
 
5:50 PM
@drN Or you can convince/goad/cajole somebody into getting you a copy of the software.
 
you can take a screenshot of the plot
 
(No guarantees on quality, of course. ;))
 
of course ;), but then again if you are truly using it as a "trial" then what more could you expect?
 
drN
6:50 PM
@J.M. I suppose... Or I could try and get a job at wolfram! :P
 
 
3 hours later…
10:13 PM
@rcollyer do you mean by email? It's a bit hard to show full text in chat.
With `data = FinancialData["GOOG", "OHLC", {{2009, 5, 1}, {2010, 4, 30}}];`, `CandlestickChart[data, ChartElementFunction -> "HLC", Frame -> True,
PlotRange -> {350, 650}, Frame -> True,
FrameTicks -> {{Range[300, 640, 40],
Range[300, 640, 40]}, {Automatic, None}}]` works
But if I add custom date ticks like this: `CandlestickChart[data, ChartElementFunction -> "HLC", Frame -> True,
PlotRange -> {350, 650}, Frame -> True,
FrameTicks -> {{Range[300, 640, 40],
Range[300, 640, 40]}, {customdateticks, None}}]`, it breaks the y-axis frame ticks.
Where customdateticks is a list of tick specifications that works in DateListPlot, with elements like {{2009, 2, 15}, "Feb-09",{0, 0}}
 
10:48 PM
Wolfram Technology Conference 2013 subscriptions are open!
 

« first day (468 days earlier)      last day (4025 days later) »