Reputation
71,143
Next tag badge:
191/100 score
19/20 answers
Badges
19 206 336
Newest
 Nice Answer
Impact
~1.1m people reached

Jan
7
comment Aborting evaluation when the memory exceeds a certain limit
@Solarmew TimeConstrained is for kernel evaluations, whereas in your example, the "time consuming" part or what you see as a long pause is because the front end is trying to finish printing and displaying all the numbers that were processed in that 1 second. Try this, for example: TimeConstrained[For[i = 1, i < 100000, i++, Pause[10]], 1] — this aborts in 1 second. I don't think it is possible to do what you want (i.e. the printing to also stop), but printing output to console in a For loop is not a good practice anyway.
Jan
6
awarded  Good Answer
Jan
2
awarded  Enlightened
Dec
30
comment Why are all the lines commented when I create a Mathematica script?
@buzhidao Because input cells are not exported, you can use them in your notebook to do scratch work, create examples which are not part of the package, etc.
Dec
28
awarded  Nice Answer
Dec
24
comment Can one combine Mathematica with bash script?
Have you tried looping through your parameters? And saving the results to disk after each one is finished?
Dec
22
comment Manipulate a graph from data
I tried running your code but I got SetDirectory::cdir: "Cannot set current directory to ... and Import::nffil: File not found during Import. >> Pls. help me.
Dec
22
awarded  Nice Answer
Dec
21
answered Creating curves that satisfy $f(x)\le g(x)\le h(x)$
Dec
21
comment Creating curves that satisfy $f(x)\le g(x)\le h(x)$
Hmm... $g(x)$ is not ≤ $h(x)$ somewhere past $x<0$...
Dec
19
reviewed Edit How to compile this code?
Dec
19
revised How to compile this code?
code quoting
Dec
19
revised WhenEvent in NDSolve
appended answer 23202 as supplemental
Dec
15
comment Mathematica does not import .mat file correctly
What do you mean by "why false?" You are the one doing the assignment, right? In any case, this is a duplicate of mathematica.stackexchange.com/q/10582/5
Dec
14
revised What is causing these artifacts in RegionPlot3D?
deleted 52 characters in body; edited tags; edited title
Dec
6
revised Numerical integration — Mathematica vs Python (w/ Scipy) performance
added 93 characters in body
Dec
3
awarded  Good Answer
Nov
29
awarded  Good Answer
Nov
27
comment Bifurcation Diagram of Chua Circuit
It is very unlikely that someone would be willing to read an entire paper and code up equations for it to help you analyze changes in some variable. Instead, here's what you should do to improve your chances: 1) Include the relevant equations in the question to limit the scope (this site supports latex via mathjax) 2) Explain what you want to use those equations for, and if there's a derived form that you're interested in, include that as well. 3) Include your attempts at coding up the equations. People are much more likely to help if you show what you've tried and where you're stuck.
Nov
22
comment Is Mathematica worth it for me?
@MichaelE2 Ah, thanks. Missed that part in the OP. Will delete comment.