525 reputation
211
bio website
location
age
visits member for 1 year, 8 months
seen Mar 7 at 10:49

Mar
7
comment How to add a subplot in corner of plot?
thanks, exactly what I was looking for.
Mar
7
asked How to add a subplot in corner of plot?
Feb
1
awarded  Popular Question
Dec
11
awarded  Notable Question
Nov
8
comment Plotting a function only non-zero for discrete values of argument
Thanks a lot. Is there an easy way to then build $f(E)$ from this table of pairs? i.e. for each row: compute $E$ and then compute $f(E)$ by adding the $w$ functions from the summand for each $(n,\ell)$ pair in the row...
Nov
8
accepted Plotting a function only non-zero for discrete values of argument
Nov
6
comment Plotting a function only non-zero for discrete values of argument
Upper limits of the sums are infinity, but I don't need to calculate f for an E corresponding to such high values, so in principle the cut-off is arbitrary, depending on the range of the plot one wishes to generate. I don't think it is necessary to know the values of the constants, but an example is $\rho=0.5,R=1000$
Nov
6
comment Plotting a function only non-zero for discrete values of argument
Included code now.
Nov
6
revised Plotting a function only non-zero for discrete values of argument
added 116 characters in body
Nov
6
asked Plotting a function only non-zero for discrete values of argument
Sep
2
awarded  Nice Question
Aug
27
awarded  Nice Question
Jul
30
awarded  Yearling
Jul
19
awarded  Popular Question
Jun
20
comment Efficiently initialize list of consecutively named variables for file import
@bills But how is that different to Import? Would Import produce an error instead or something?
Jun
20
accepted Efficiently initialize list of consecutively named variables for file import
Jun
20
comment Efficiently initialize list of consecutively named variables for file import
@bills Do you mean if I have two contradictory definitions for, say, f[2] I will hit issues with Get but not Import? What is the behaviour of each in that case? thanks..
Jun
20
comment Efficiently initialize list of consecutively named variables for file import
@bobthechemist @bill s I have no idea if using Get is dangerous here? It's just that using Import doesn't seem to set the definitions that I mentioned in the my previous comment.
Jun
20
comment Efficiently initialize list of consecutively named variables for file import
@bill s Yes, sorry I was being an idiot. I think it did not work the way you had it because of Import vs. Get perhaps. My files contains lots of definitions like f[2]=3.4234324, f[3]=3.35555533,.... etc and using Import for some reason did not set these in the workbook like normal, but when I changed to Get things are defined..
Jun
20
comment Efficiently initialize list of consecutively named variables for file import
Thanks, this works if you just have files called 0,1,2,3... and change the code as: fileNames = FileNames["*", path]; allFiles = Table[Import[fileNames[[num]]], {num, 1, Length[fileNames]}]; but not otherwise as the files are not just named by numbers. Is there a way to concatonate ".txt" onto num when you do the final read in?