« first day (36 days earlier)      last day (4438 days later) » 

12:02 AM
@MrWizard already cast my vote.
 
@MrWizard regarding the duplicate: I'm really not sure. On one hand, if we want to have here a new and complete site, we should accept duplicates so that our site is kind of self contained. On the other hand, SO is not out of the world which means that people who are looking here may look on SO too. To be honest, I was very confused at the beginning about the differences of SO and SE.
For instance, the toolbag question on SO contains pretty much all no-go's for a question but it's such a rich resource, that I would really like to have this information here on SE.
 
Do you think we should ask the SO mods to migrate that question (the PlotMarkers one) to this site? I am not suggesting we close questions on this site because one exists there. However I don't see that it is particularly helpful to post the same answers in both places, which is what I just did.
 
@MrWizard I think Anna Lear covers that here. It appears that it isn't uncommon for both sites to have similar questions, and after a point, the older one may be migrated.
 
@rcollyer I skimmed the answers there and I think I am asking/proposing something different. We are not in private beta, I do not want a mass migration. I am asking if it makes sense to migrate an old question when someone asks it again on the new site, then merge.
 
@MrWizard That's what her point number four discusses, and I don't think it is unreasonable to migrate it here and merge.
Although, the entry point is slightly different, so the merge may warrant some rewriting to unsure they cover the same territory.
 
12:19 AM
@rcollyer I missed point #4. Should I flag the post on SO and ask for migration? Is that the way it's done?
 
@MrWizard That's the way I've been doing it.
 
0
Q: How to make code indentation display properly in IE8?

PillsyI would like to be able to browse this website from work (since I use Mathematica professionally), and due to IT requirements, this means using IE8, which is a little old. For some reason, code sections aren't indented properly when I use IE8 on this site, but they do display properly when browsi...

 
 
1 hour later…
1:50 AM
@MrWizard I am now
@MrWizard Perhaps might be a lot faster if you go the TL route to short circuit the flag queue...
Everyone: I think this question should be migrated here to complement this answer of Leonid's. He also references it and it might be nicer to have that one here
 
@yoda thanks; I was seeking for advice. I've already flagged it.
 
Alright, thanks :) If you need a migration done quickly (so that folks here don't waste time answering it again), you can ping an SO mod who's online or a comm team :)
 
2:13 AM
@yoda how do I get a list of SO moderators?
 
@MrWizard what rcollyer said, or do whois so mods in TL
 
3:14 AM
It doesn't work in here
 
3:28 AM
Is it possible to autocomplete commands when running a kernel without the frontend?
 
3:44 AM
@yoda I noticed. worth a try though.
@yoda The front-end can do auto complete?
 
4:19 AM
@rcollyer Cmd-k and Cmd-Shift-k to auto complete the syntax with placeholders
 
 
6 hours later…
10:47 AM
Is there's a way to do a partial/pseudo NIntegrate? For example, Integrate[1+a x, {x, 0, 1}] gives 1 + a/2. What can I do to get 1. + 0.5 a other than by doing Integrate[...] // N
I ask because I have a complicated integral that can be solved numerically, but I want to retain one parameter as a symbol so that the result can be manipulated. NIntegrate complains that a is not numeric, and Integrate cannot handle it
 
@yoda Integrate[1 + a x, {x, 0, 1.}] returns 1. + 0.5 a
 
Doesn't that still use symbolic integration though? (admittedly, my example was insufficient :()
 
acl
11:07 AM
has anybody played with julia?
(If you've played with some other Julia I don't want to hear about it :) )
 
@yoda I don't think it's possible to integrate a symbolic function numerically.
@acl I haven't. Looks interesting though.
 
acl
@Heike yes I've been playing with it for a while. it is very easy to pick up and fast
but let's see what I think about it once I try to implement something in it
nevertheless, I am quite excited at the moment and was wondering if others have any experience with it
 
The syntax reminds me of Matlab
 
acl
a little bit yes
 
And of c
 
acl
11:12 AM
and python yes
but I probably just spent so long looking at mma code that everything else looks like C/python/... to me
2
 
It's probably the for-loops
 
11:24 AM
@Heike yeah, I didn't think so either... was just checking if someone had a smart idea
hoo boy
@acl uhh... the benchmark numbers seem too good to be true... I hope it's not a case of writing mma code with For loops and claiming it's slow
 
acl
@yoda not as far as I can tell (and it really does seem very fast)
 
Interesting... should give it a try then
 
acl
for example the matlab code they use for their timing can probably be optimized (I am not a matlab expert though), but looks very similar to what I once wrote. that was faster than anything I could write in mma v7, and I could only get mma faster than that with compilation to C in v8
 
Do you know what the benchmark tests are?
 
acl
the code is provided. they are very simple
 
acl
11:47 AM
hm, before writing lots of C code to sum fourier series, you'd think that people would at least look in wikipedia
then again I probably wouldn't have either
 
@acl Are you referring to the sawtooth wave question?
 
acl
12:07 PM
yes
 
Hello all.
 
Hi @MrWizard
 
acl
hi @MrWizard
 
Anything need moderatoring today?
 
@MrWizard There's this question that doesn't belong here:
-1
Q: Should a Fourier saw wave function return values greater than 1?

user1068446I'm currently writing an oscillator program, and it gives you the option of generating a Fourier saw and square waves, and you can choose the number of harmonics. I'm using the Wikipedia definition for the sawtooth wave For a sine function, the maximum value sin(x) returns will always be 1 (and ...

It's closed already but maybe it should be deleted as well.
 
12:16 PM
Deleted or moved.
 
@Heike Remind me again, if it's deleted the OP still sees the comment, correct?
 
@Szabolcs He already asked the question on math.SE
@MrWizard I'm not sure. He should at least get a truncated version in his inbox.
 
I think we can even delete without a moderator, how many 3000+ people do we have?
Six.
 
Do you think it should be migrated, or deleted?
 
12:20 PM
@Szabolcs I just found it myself before the edit. Okay, deletion time.
 
But questions like this can maybe stay closed for 1-2 days as examples of what should NOT be asked? What do you think?
The problem with not deleting closed questions that will never be reopened anyway is that it's still possible to vote on them. People who asked them might continue to lose rep even after the question has been closed. Though this is not really a problem on this site.
 
@MrWizard no... They see the comment only if the moderator who deleted it also left the comment
 
Thanks for the bounty @Szabolcs :-)
 
@Szabolcs need 4k+
 
@yoda everyone should note that
@Szabolcs at the moment I agree with the idea that this should remain visible as an example of an off-topic question.
 
12:38 PM
@Szabolcs is is possible to add a keyboard shortcut for your Windows imgur upload function?
 
@MrWizard I don't know, but if you figure out how to do it, we can integrate it into the palette :-)
 
@Szabolcs OK. Any time for inject today?
 
@Heike It was more helpful than you might imagine, and I probably could not have done it even if I spend a lot more time (I did spend a fair amount on it). Also, you gave me a pre-packaged function which was very easy to use with my own plots or modify.
 
1:00 PM
I think @Szabolcs is hiding from me. :'-(
Hello @magma
 
1:35 PM
hello Mr.Wizard
 
@MrWizard I am not hiding, but it is a really really busy time :-( even though my supervisor is skiing today, I have to show some results tomorrow morning
 
@acl that looks interesting but it is apparently not for Windows. Is that in the works or am I out in the cold?
@Szabolcs it's okay, I'm just having some fun with it.
 
@acl Does it have a notebook interface or something comparable? (It seems so from the screenshot)
 
acl
@MrWizard I'm afraid I have no idea. I compiled it from source on OS X; maybe if one has cygwin it will also compile on windows. But then you'd probably also need emacs or vim to edit things etc, so I am not sure how practical the whole thing would be.
@Szabolcs probably, I just compiled the interpreter and use emacs and textmate to write code
 
1:50 PM
@acl Did you notice any obvious unix dependencies that'd be difficult to port? (like overreliance on unix tools like such as sh) I really hope they will try to make something general, and won't target unix only.
 
acl
@Szabolcs i don't know. I ran make and it just compiled. I can take a look but I don't really know what windows has or hasn't, so I am not sure I can tell
 
I guess it's more about the mindset of the developers. If they came from CERN, there's a good chance we'll never see a Windows version.
 
acl
well, if it catches on I suppose someone will port whatever needs to be ported. so far, after playing with it for only a few days and for nothing serious, it seems really really nice. I am not sure how nice it will look after I have to fight with all the little niggles that pop up when coding something big
 
@acl Well, it's not always that simple. It depends on the intentions of the developers. If they don't care about other platforms, and entangle it with lots of unix-specific things, then it'll end up like Sage and it'll require a lot of effort to port. I'm hoping they'll take an approach like python: let the core be as portable as possible.
 
acl
this
0
Q: Simple way of Calculating the Error Function?

Johnyi want to know what is the simplest possible way (slight error acceptable) for calculating the Error Function erf(x) or Error Function Complement erfc(x) I have an exam where in the numericals, while calculating error probability over an OFDM channel, i have to use this function. And i am wond...

needs to be moved
@Szabolcs sage is a large complex of different packages, this isn't. anyway, this is about to descend into windows vs rest of world thing which isn't hugely productive
 
2:10 PM
we wouldn't have arguments if everyone accepted that windows sucks :P
(runs away)
 
I like cross platform tools. If it doesn't run on Linux or if it doesn't run on Windows are both significant disadvantages to me. Macs are not something I can afford.
 
you need a rich advisor :)
 
can't you run linux in a virtual machine or so?
 
acl
or just install linux? (ducks)
 
but then you would need to transfer the Mathematica licence somehow.
 
2:17 PM
you would in a virtual box too
 
What I need now is an easy way to switch between lots of notebooks, and see their titles
 
@yoda I was thinking of just running julia in a virtual box.
 
This is so counterproductive:
 
acl
can't you have a master notebook with hyperlinks to the others?
 
I'm trying to make a palette to do what I want, and I was just looking for a way to bring them to the foreground programmatically
hyperlinks are a good idea
 
2:21 PM
@Szabolcs There was a question about how to make a taskbar to do this
 
This must be a record for the most answers in the shortest time:
1
Q: Function for Autocorrelation

500Is there a built in function to compute the autocorrelation of a signal ?

 
@MrWizard and, should receive the RTFM tag...
 
acl
yes it is getting worse and worse
yep
 
@EliLansey It's probably faster to just ask the question here
 
acl
(also my answer got upvoted, then the upvote was removed!)
 
2:23 PM
@500 please join me in Chat
 
@moderators, can we please have an rtfm tag?
 
oh dear, someone's being called to the principal's office.
 
@acl that was mine; I decided different action was needed.
 
acl
@MrWizard no problem, I just thought it funny (it's a question that can be answered from reading the docs; I don't want any points for that!)
 
@EliLansey Eli, that's a meta-tag if there ever was one.
 
acl
2:26 PM
@MrWizard to be clear, funny in the sense that we have collectively (the answerers, upvoters etc) expended a lot more effort than it would have taken to just type "autocorrelation" in the search box of the help viewer
 
maybe we should make a website similar to lmgtfy.com
 
acl
@Heike ha yes that's what I thought too
 
Oh dear... 500 is at it again, I see.
I think he's asking questions on his brother's behalf... he had previously mentioned that his brother is in finance, which explains the FinancialData question, this one and a few other rtfm questions
 
Welcome 500.
 
This is an intervention :)
 
500
2:36 PM
@Mr Wizard, hi !
 
haha
 
acl
@yoda hahahaha :)
hi @500
 
500
@Yoda, my cousin. The problem is I am his programmer currently :-)
 
As you can see from the log above people are finding your questions troubling. I'll give you a moment to read those for your own reference.
 
500
@Mr Wizard. Why troubling ?
 
2:38 PM
CreatePalette@
 DynamicModule[{nb},
  Dynamic[nb = SelectedNotebook[];
   SetterBar[Dynamic[nb, (SetSelectedNotebook[#]) &],
    SortBy[Thread[
      Notebooks[] -> NotebookTools`NotebookName /@ Notebooks[]],
     Last], Appearance -> "Vertical"]]]
This is a palette to switch between notebooks.
 
@500 I have myself observed that a number of your recent questions show a lack of understanding of the Help system in Mathematica. Asking a question on the main site that can be answered trivially by searching in Help is not really a useful thing. There is this option for moderators and those with close-vote privilege:
"too localized This question is unlikely to ever help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. "
 
500
@Mr Wizard. Sorry can You tell me what you have in mind :-) ?
 
@Szabolcs You have to be careful with hidden notebooks. I think you need to unhide those first before you can set them as the SelectedNotebook[].
 
I think that the case can be made that your latest question falls into this category. I have yet to see anyone tell you to "go away and stop wasting my time" and that is not my intention. However I don't think it is right to clutter the site with such questions. I suggest that first you enter this chat room and ask.
I also think that you need to put some effort into using the Help system yourself. I know that it is not the most intuitive design, but in the long run you need to learn to use it.
 
500
@Mr, Ok, but so, I search for Auto-Correlation. I see ListConvolve. I should stop there ?
 
2:43 PM
You need to go deeper...
HELPCEPTION
 
I am asking that you, in order: (1) Search the Help system when you need something. (2) Enter this chat room and ask for help using the Help system to find what you need. (3) Ask for help with the problem in this chat room if nothing is found in the documentation. (4) post a question to the main site if it is recommended
 
500
@Mr. ok
 
You have asked many good questions in the last six months, and I do not want to make you feel unwelcome or unappreciated on this site.
 
Sorry to intrude, but.. I also found the question unclear. There's not a single clear definition of what an autocorrelation is
 
500
@Mr. To late :-0
 
2:46 PM
Rather, I would like to have you get the most out of Mathematica, and keep the site as clean as possible.
@500 I am sorry to hear that. I shall try to change that impression.
 
and the link you sent 500 confirms it. Statistics, signal processing, for lists, for functions, with, without normalization
 
500
@Rojo, what do you mean ?
 
I meant that, did you read the link you posted to the wiki article on autocorrelation?
It even starts with "Different fields of study define autocorrelation differently, and not all of these definitions are equivalent."
 
500
@Rojo, ok
 
So
I don't know if what you were asking is easily found on the help
I guess it depends on what you were asking
 
500
2:54 PM
@Rojo, I still don`t know how to do. I`ll find another way of addressing my problem then.
 
@500, do you know exacly "what" you are trying to do?
 
500
@Rojo, If I could I`ll remove the question if you want to close it go ahead please.
 
No, I just want it to be clear... The other guys in here are the VIPs however, my opinion doesn't matter much
Hehe
If our answers didn't solve your problem and you can tell me why, I'll try to help
 
500
@Rojo. Sorry, I feel horrible asking wrong questions + what matters to me is getting my model working. So again sorry. I don`t want to argue and make all of us lose time.
 
Ok
Good luck
 
500
2:57 PM
Lesson learned. I will ask the most precise question and think about how to create a help menu ;-)
@Rojo, Thank You
 
No prob
I have asked some lonely questions too, hehe
Still learning how to use the site
 
ok, so now that's settled, beer anyone?
I guess not
 
@yoda Are you buying?
 
@Heike yeah, of course
tequila shots later
 
I'll have one then.
 
500
3:03 PM
One question :-) Trying to import and use some financial data I am running into a weird problem :
4
Q: Plotting data with exponentials

500I have some data with 19000 sublists such as : {" 7.9080000e+01 1.9283193e+04"} Where the first number is the value for variable A and the second for variable B. All my attempts to transform this format have failed so far. I think my best guess was using ToExpression unsuccessfully. How ...

Using the above.
I need to clean this set :
So I use :
 
@Heike Comin' right up!
Import["http://i.imgur.com/xpKE3.jpg"]
 
500
it works but when i try to Export the results or use it in my .nb , the kernel stop responding :-(
If any of you have a minute could you let me know if you are experiencing the same and that the problem comes from the data themselves ?
 
@yoda I've never had one of those.
 
@Heike It's pretty good. You've been in the UK too long.
Import["http://i.imgur.com/8MzmJ.jpg"]
 
@500 I am taking a look at it now.
 
3:10 PM
@yoda British beer is not very nice.
 
500
@Mr, thank you very much.
 
@500 You wrote "So I use :" but I see nothing. Please try posting your code again. Also, are you saying that the file imports correctly, and you only have trouble with Export?
 
@Heike That's an understatement. I don't know any other dutch beer besides Heineken and Amstel... you like those?
 
@Heike Guiness isn't bad
 
@yoda Heineken and Amstel are pretty bland to be honest. There are much nicer ones.
@EliLansey True, but Guiness is Irish not British.
 
3:18 PM
@Heike i get confused between british, irish, UK, etc etc
 
Speaking of beer, have any of you had this?
 
@EliLansey You better sort that out if you ever get to visit Ireland :-)
 
500
@Mr, With in my data, I use : Table[ReadList[StringToStream@First[i], Number], {i, in}]
"in"
I have trouble computing stuff on it as well as exporting. unclear is the scope of the problem.
 
@MrWizard Never seen that one either
 
@500 you linked to a file. With that file in your working directory, please try this:
list = ReadList["data1.csv", {Number, Number}];
list // ListPlot
 
3:28 PM
@500 I think the problem might be that you're opening a lot of streams but not closing any.
 
If I google for "adaptive sampling 2D", my question is the very first hit, even if I turn off personalized results ... and I'm still having trouble with that algorithm
The problem with that algorithm is that it tends to give very long triangles perpendicular to a transition region, like this:
What happened there is that I have a big triangle (3 actually) that has one vertex in the "dark" region and one in the "bright" region
Linear interpolation will give me a big artefact
 
How are you dividing the triangles?
 
if any of you have ideas on how to prevent that in a simple way, I am very interested
@Heike This is the same algorithm I described in my answer. I'll summarize:
 
Szabolcs, didn't you also have another implementation in a later answer using the EvaluationMonitor to steam from MMa's functions were to sample next?
 
1. start with a set of points where the function is already computed
2. compute the Delaunay triangulation
3. for each edge in the triangulation: insert a point in the middle of that edge if the function values at the two ends differ enough (and the points are far enough)
 
3:35 PM
steal*
 
@Rojo Yes, but that only works if all sample points are calculated with that algorithm, and I needed something more flexible that works for any grid of starting points
 
I see
 
@500 I need to leave now, but I would like to help you resolve that import/export problem. You have my email address.
 
This is the code I used to make that ugly graphic from above. The setup code:
fun = Function[{x, y}, UnitStep[5 x + y]]
pts = Tuples[Range[-1, 1, .25], {2}];
This is the function and the initial grid of points
Then iterate this:
newpoints = subdivision[pts, fun @@@ pts, 0.1, 0];
g1 = Show[
  PlanarGraphPlot[pts, LabelPoints -> False] /. _Point ->
     Sequence[] /. _Thickness -> Sequence[Thin, Opacity[.5]],
  Graphics[{Point[pts], Red, Point[newpoints]}],
  ContourPlot[5 x + y == 0, {x, -1, 1}, {y, -1, 1},
   ContourStyle -> Directive[Thick, Green]]]
pts = Join[pts, newpoints];
g2 = ListDensityPlot[ArrayFlatten[{{pts, Partition[fun @@@ pts, 1]}}],
   Mesh -> All]
subdivision is from that answer. ListDensityPlot subdivides a little differently.
One problem is that during retriangulation triangles change significantly
 
Are you actually trying to find a density plot, or a contour plot?
 
3:41 PM
A density plot. It looks like what I sent you in email.
 
Ah, ok
 
On region has nice shades, the other one is zero.
I think I am simply going to set a limit on the resolution, then subdivide until I reach the limit and there's nothing to do any more, then reduce the limit and continue.
Ugly but should work.
So it should be something that can do a density plot while being able to map contours.
I know that this algorithm is very naive as it is and using just the gradient is not great, but it was good enough here and I really don't want too look at second derivatives. And this isn't the main issue anyway: it is how I subdivide. I think the solution would be avoiding complete retriangulation.
 
Wow
I just did something new, didn't know it could be done
Perhaps its known but just in case, I'll share
 
@Szabolcs So why didn't the large triangle get divided? the value difference seems large enough.
 
Do you know how to make a function return something that if evaluated again would evaluate to something else?
and without saving state in some variable
 
3:49 PM
@Rojo Do tell.
 
nor using Defer or front end things
Using the guards, the typical trick to inject code, it doesn't try to reevaluate after exiting the block
so you can do some very interesting things like this one
Try
Module[{guard = True},
factorial[n_Integer] /; guard :=
Block[{guard = False}, n factorial[n - 1]];
factorial[1] := 1
]
and now run
factorial[6]
and again, again
Perhaps its nice to track recursive functions?
Humm, could make something that counts how many times it was evaluated?
 
@Heike It does get divided, all large ones. But what happens then is that the triangulation algorithm changes its mind about where to insert the triangle edges and suddenly a new long edge appears between two points that have different values. A solution could be not to completely retriangulate after every subdivision, but to instead insert only as many new edges as the number of the new subdivision points. (...)
@Heike But if I do this, I'll also need to use this custom triangulation for plotting (and not the one that ListDensityPlot computes). The best solution would be to triangulate in a way that avoids long triangles if possible.
 
@Szabolcs I thought Delaunay triangulation was designed to maximise the minimum internal angle?
 
@Heike Maybe I can try this: instead of looping though each edge, loop through each triangle and if any two vertices differ insert three new sample points on the middle of each edge, even the one that has the same value on the two ends.
Indeed.
I am not entirely sure what is going on.
 
You really only want a fine mesh perpendicular to the phase transition, not tangential to it
 
3:58 PM
Ideally.
 
I guess that the behaviour of the code I pasted is somewhat a "good use" of those cacheing bugs related to Update[] that Szabolcs pointed out to me a few days ago...
in which case I shouldn't get used to it
 
@Rojo That's a creative use of Block.
 
I am getting gaps in the point density in some places (depending on the initial grid), and the problem is somehow related to those:
 
@Heike, hehe, I'm playing with it
You can advance a certain number of steps by doing Nest[(Update[]; #) &, factorial[10], 3]
I want it to be useful, but so far I'm not sure, hehe
Yeah, it uses the caching "bug"... If in the condition you put /;(Update[]; guard) instead of /;guard it doesn't work... So probably it's not a good idea to get used to it
Pity
 
4:26 PM
My original method gives me this after calculating 331 points:
If I subdivide each edge of the triangles, after 328 (i.e. the same number) of point I get:
no artefacts, but way too many unnecessary points computed
Maybe I need to check what new edges between old points the retriangulation would induce, and subdivide those as well if necessary.
 
4:48 PM
@MrWizard If you get the chance - I don't know how far they ship - try this one from Ithaca Beer, Co.
 
5:22 PM
@Heike My problem is here:
There was a nice big square (two triangles) which were all light inside. But then it retriangulated and connected the vertices of those triangles to some other (new) point which is dark.
 
 
1 hour later…
6:53 PM
okay, I finally fixed it
time to go home
it's a stupid fix but it sort of works
I simply subdivide all edges that would be changed by the retriangulation
the problem is that if the thing has a high symmetry, edges tend to change a lot
so I first had to compute the convex hull, and slightly shuffle around all points that were not in it (i.e. those that were inside)---to break the symmetry
 
@Szabolcs I just came up with a sort of solution.
It basically splits the triangulation in a part that isn't being divided an a part that is divided
 
@Heike Wow! I'd really like to hear it!
Go on
 
I keep the triangulation of the undivided bit as is, and only retriangulise the bit that's divided
so effectively you end up with two meshes, an outer and an inner one.
 
Did you implement it?
 
yes
 
7:06 PM
I think this is the correct solution, not what I did.
 
it's a bit fiddly though
and the two meshes overlap in parts
 
Then you don't use DelaunayTriangulation after the first step, but do all triangulation yourself?
 
@Szabolcs I apply the triangulation to the vertices of the polygons that were divided
 
I must run now because the building is being closed (how tolerant they are depends on which porter is on duty), could we get back to it in about 45 minutes? Could you perhaps mail me what you have (even if it is messy)?
 
sure
 
7:10 PM
I'll also send you my solution
 
Ok
 
see you in 45-60 minutes then :-)
 
bye
 
 
1 hour later…
8:15 PM
I never knew the third argument of Join
 
it's quite useful
 
@Szabolcs i seem to have a mental block with Join, not sure why. I usually wind up using some frankensteinien thing involving Transpose
 
or ArrayFlatten
 
@Szabolcs I've had far more luck with that
 
@EliLansey Transpose[Join[Transpose[array1],Transpose[array2]]]
@Szabolcs I never got the hang of ArrayFlatten
It's funny how everyone seems to have their own method to go from {1,2,3} to {{1},{2},{3}}
 
8:21 PM
@Heike I use it all the time. See my question in an attempt to avoid it somewhat...
 
@Heike I meant I seem to use ArrayFlatten where Join[ ... , ... , 2] would suffice
 
7
Q: How to symbolically do matrix "Block Inversion"?

Eli LanseyConsider a block (partitioned) matrix matrix = ArrayFlatten[{{a, b}, {c, d}}] where, a, b, c and d are each matrices themselves. Say, for example, a = {{a11, a12}, {a21, a22}} b = {{b11, b12}, {b21, b22}} c = {{0, 0}, {0, 0}} d = {{d11, d12}, {d21, d22}} How can you find the block inverse o...

 
I use Partition[... , 1] for that
One can do List /@ but that unpacks
 
@Heike Yeah. We were discussing in the lab here yesterday all the various ways to do the same exact thing...
 
@Szabolcs Yes, I noticed that. That one was new to me
I normally do Transpose[{list}]
But I've also seem Thread[{list}], and I guess you could also do List/@list
 
8:23 PM
Partition[..., 2, 1, {1, 1}] is actually the same as Partition[#, 2, 1, 1], but I don't think this is documented/
 
that would save me some typing.
@EliLansey That's why I never got the hang of Ruby.
Has anyone looked at this question?
 
Which one?
 
2
Q: Too much vertical space in a CDF file

SixWingedSeraphWhen I prepare a CDF file to be included into a web page, far too much blank vertical space is left over the pane. Is there a command to reduce that? This is illustrated by the files SimpleDemos.nb and SimpleDemos1.cdf at http://www.abstractmath.org/Mathematica/

I've tried looking at the .cdf file the OP mentions (SimpleDemos1.cdf) but I can't do anything with it.
I wonder how he created the file.
 
8:42 PM
@Heike It opens for me in Mathematica and I get get the contents using NotebookGet
 
Ah, hadn't thought of NotebookGet.
 
It's full of "PluginEmbeddedContent" style cells which don't show
 
Yes, I noticed those
 
I got all notebooks using Notebooks[]
and got he notebook handle from there
 
Ah, the option Deployed->True was why I couldn't open any cells.
 
8:46 PM
Oh
But even after setting that to False I can't get the other cells to show
Ah, maybe it's CellOpen -> False
 
I did this to open the cells:
SelectionMove[nb, All, Notebook]
SetOptions[NotebookSelection[nb], CellOpen -> True]
where nb is the notebook handle.
 
9:32 PM
@halirutan Any news about the syntax highlighter? Do we need to wait until it's integrated into prettify before we request the SE team to integrate it into this site?
@TimStone Do you know what the procedure is to get the syntax highlighter integrated into the site? Just a meta post with ?
 
9:51 PM
@Szabolcs No, unfortunately not. But as far as I know they only need to put the language extension file into their installation of prettify on the server and maybe set our default language to Mathematica. But I'm not really sure about the procedure.
 
@halirutan Why don't you make a meta post and tag it ? I think it's stable enough now.
 
@Szabolcs So when I post it here on meta.mathematica.SE, the mod will read this? Do I have to flag it anyhow?
 
@halirutan As I understand, yes, they will see it. All is needed is tagging with . They have responded to all posts tagged as such.
 
@Szabolcs Yep
 
@Ok, then I will give it a try later.
 
9:57 PM
Just link to the highlighter-only source and explain what's going on, and hopefully someone will look at it at some point soon. Actually, that reminds me to look further into that MathJax issue, which I think is still a problem right?
If you can get it pulled into Prettify directly beforehand, that's probably even better, but I don't think it's strictly necessary.
 
@Szabolcs Sorry about the post with Insert, but as I was thinking about it, you and Leonid came right into it with your answers and covered the basic approaches. This left me we something which was equally slow but I hoped without testing, that maybe Insert in combination with Fold is better than his. I recheck it later.
 
Why sorry ... ? I just pointed out that it's not linear complexity. Actually I'm quite tired tonight and can't think really clearly
 
acl
10:29 PM
@Szabolcs you're tired often lately. maybe you should get some rest before you kill yourself coding up whatever it is you're coding up :)
 
11:26 PM
I had a momentary lapse of judgement and voted to close this question, forgetting that would have immediate effect:
1
Q: How do I clear variables with subscripts?

Ben Possible Duplicate: Clear complains that a variable is not a symbol or a string? Clear["Global*"]` Works for most variables, however if i do something like $ \delta_a = \alpha_a \Delta T d $ Then the Clear or ClearAll will not clear $ \delta_a $, short of Quit[] is there anything tha...

Do you think this was a good close?
 

« first day (36 days earlier)      last day (4438 days later) »