6,400 reputation
1424
bio website
location
age
visits member for 1 year, 11 months
seen 4 hours ago

10h
comment Programming - The linear iterative method problems
A Tag Times is .. Protected error is typically the result of missing statement delimiters (eg ;, , ). When you say you modified the mistakes did you update code in the question?
13h
comment GIF file breaking Import
don't know whats wrong with the file, but the hang i think results from "gif.exe" ( which mathematica evidently uses ) hanging.
19h
comment Setting a Row from a Matrix as Variable
as a fundamental issue your Do loops should be Tables. The posted answer is better of course.
19h
comment Does it help to do any preprocessing before `FindSequenceFunction`?
interesting, but without some example to work this seems practically out of scope of the site.
19h
comment Why is my compiled code slower?
way before messing with Compile learn to utilize mathematica object oriented programming and wealth of built in functions. For a start look up InentityMatrix..
1d
comment GUI->Text code conversion
mathematica.stackexchange.com/questions/2202/…
1d
comment Export Plot to formatted data file
some info mactalk.com.au/11/…, but why use this toy if you have mathematica?
1d
comment Overwriting first line of large file
... you might start by loading up the first line with blanks, then when you want to add , rewrite the line keping the length fixed. off hand i'm not certain mma can do that but its worth a try.
1d
comment Overwriting first line of large file
there is no way around rewriting the file. this is not a mathematia isue but a result of the way the os stores the file. id imagine some shell tools will do this faster than mathematica though
2d
comment Zero-order interpolation not going fully around
good catch noting the inconsistency in the ListLinePlot and ListInterpolation implementations. Of course both strictly follow what the docs say: "yields a collection of flat regions, with steps at each data point "
Jul
27
comment Zero-order interpolation not going fully around
doesn't extending the plot range to eg 1.001 close it? I'm still at a loss as to why you dont just use the first order interpolation.
Jul
26
comment NSolve for large models
try working with findroot. your question needs a better title by the way (what does Solve have to do with anything?)
Jul
26
comment Zero-order interpolation not going fully around
sorry i cant actually run things here. my thought is the interpolation function is correct and you are seeing an artifact of the way plot handles discontinuous functions
Jul
26
comment Zero-order interpolation not going fully around
on furthe thought i suspect if you Plot[ftdata[t][[1]],{t,0,1}] this will begin to make sense.
Jul
26
comment Zero-order interpolation not going fully around
i dont understand why you get a plot at all. a zero order interpolation of 2d data it seems should give you discrete points (?). what do you get if you plot beyond the range 0-1?
Jul
24
comment What does this code mean
pc is the single argument to the function created by scalingtransform
Jul
23
comment Multiply value if it includes a period
@Phily ImportString is still a good approach vs doing your own parsing.
Jul
21
comment Progress Indicator & sums
that is just plotting all the points. It gets a bit hairy if you want to show only the points in the current recursion.
Jul
21
comment Progress Indicator & sums
..you can make this work nice, forgoing the adaptive evaluation, by using MaxRecursion -> 0, PlotPoints -> 200
Jul
21
comment Progress Indicator & sums
Plot adaptively evaluates x in a non sequential order. Without knowing a priori how many evaluations will be needed I see no sensible way to make the progress indicator work