Reputation
698
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
1 8 12
Impact
~10k people reached

  • 0 posts edited
  • 0 helpful flags
  • 504 votes cast
1d
comment Deleting a line from a file
@AlbertRetey thank you, that is something I didn't consider! I will definitely do that.
2d
comment Deleting a line from a file
Thank you! This is exactly what I was looking for :)
2d
comment Deleting a line from a file
Perhaps backup is a bad choice of words. I'm running a script on a cluster and it may be terminated so I want to periodically output the current state so that I can restart it from there. However I have a storage quota and each update is quite large so want to overwrite the previous update.
2d
comment Deleting a line from a file
Thanks for your response! However, this doesn't overwrite the previous content.
Jan
20
comment How to reduce a quartic form to a quadratic form with equal roots
@halirutan sorry, I should have made that clear. It only needs to be positive when the variables have 0/1 values.
Jan
20
comment How to reduce a quartic form to a quadratic form with equal roots
@halirutan sorry that was a typo. It was meant to be (xy-zw-1)^2. The positivity is the main challenge of the question. I have cross posted the question on the maths stackexchange.
Jul
22
comment Why isn't Refresh working as expected?
@mfvonh I have edited the question to clarify my problem.
Jan
1
comment Finding neighbors from list
This is brilliant! It's a shame I can't accept two answers..
Dec
30
comment Finding neighbors from list
Thanks for the explanation! It'll take some time to digest, but it works quite well :-)
Dec
30
comment Finding neighbors from list
Thanks! This is indeed quite fast. Would you care to explain how it works?
Dec
7
comment Problem with strings imported from PDFs
@ssch thanks, will do. For now I have found the temporary solution of finding and replacing all \.00 with a space and it works for now. It turns out that \.00 was the problem.
Dec
7
comment Problem with strings imported from PDFs
@ssch I use Import[location,"Plaintext"]
Dec
7
comment Problem with strings imported from PDFs
@ssch I get the same error so your expression stays unevaluated
Dec
7
comment Problem with strings imported from PDFs
@bills I went through the string and got: "V\.00" This still gives an error.
Sep
22
comment Generate a Random Polygon
@HerngYi you can extract the coordinates using List @@ randompoly
May
5
comment A weird thing about ListPlot3D
Try adjusting it manually by changing the values in BoxRatios->{1,2,3}
Dec
17
comment Changing the number of locators with SetterBar
@kguler Originally the button adds a locator at the position which is the average of all the other locators, but I removed it since it wasn't relevant to the question. So no, there isn't really a reason :-)
Dec
17
comment Filling for ListPolarPlot
Have you tried PlotStyle?
Dec
3
comment A lot of matrix multiplication
Try Outer[#1.#2 - #2.Conjugate[#1] &, X, y]
Nov
22
comment How to plot X and Y data to see average data converging?
I'm not sure it this is what you mean, but have you tried ListPlot[Mean[y[[;; #]]] & /@ Range[1000]]? It plots the average of the first n elements where n ranges from 1 to 1000. You can adjust the step size to give the average of the first 10, 20, 30 etc.. elements.