7,640 reputation
1031
bio website 12000.org
location the great state of Wisconsin
age
visits member for 1 year, 4 months
seen Mar 12 at 19:57
stats profile views 531

Mar
5
comment Evaluate Numerator and Denominator Separately
+1 good answer. Better than user having to use Hold in the call. Will delete my answer. Yours is much better.
Mar
5
comment Evaluate Numerator and Denominator Separately
The ComplexInfinity is coming from M evaluating 1/x to ComplexInfinity BEFORE it even reaches your function. When you write foo[1/0] then M simplifies 1/0 to ComplexInfinity right away.
Mar
5
answered Piecewise linear Interpolation between data points
Mar
4
comment How is the Mathematica kernel structured internally, and how does evaluation work?
@belisarius True. But it describes the main kernel loop. Which I assume remain the same all these years? I would not know ofcourse, only someone who works inside WRI would know for sure. Just thought it was interesting read. I know I enjoyed reading it (even though a lot of it was over my head ;)
Mar
4
comment How is the Mathematica kernel structured internally, and how does evaluation work?
see "Mathematica Internals: A Tutorial " by Daivd Withoff library.wolfram.com/infocenter/Demos/4683
Mar
4
accepted Wrapper for inexact numeric complex numbers that maintains polar form
Mar
4
comment Vertical “fractions” with more than 2 parts
It will help to say, what is it you are trying to actually accomplish. What is the purpose of this? Just for formatting expressions on the screen?
Mar
4
answered Strange behavior of PlotMarkers with ListLinePlot[] and InterpolationOrder->0
Mar
4
answered Control maximum value of a slider with another control
Mar
3
comment Construct a sum that evaluates its arguments but doesn't evaluate further
.. !Mathematica graphics notice the use of Sum and not sum and also it took the variable body. I wish M has something like these. I think Inert functions in Maple are much easier to use than Mathematica Defer Hold and its family of functions. I always get confused by which of those Hold functions to use and when and where to use them.
Mar
3
comment Construct a sum that evaluates its arguments but doesn't evaluate further
Nice. But this has limitations I found. For example, if I write the body as separate variable outside, then use that variable body inside the sum, it will not evaluate body . Here is screen shot of what I mean: !Mathematica graphics So it forces one to put everything in that expression. Maple actually does all this sort of thing a little better than M. Maple has what is called Inert functions. There are Sum and sum. The Sum is for display. Then one calls value to evaluate it. Here is an example of same problem in Maple....
Mar
3
asked Wrapper for inexact numeric complex numbers that maintains polar form
Mar
3
comment Variable substitution in sum's index
It seems the Sum will either evaluates to something and if not, then it remain as is. i.e if M can't evaluate it, then it will leave it as is. It will not look inside it to see it it can simplify the internal for specific index. No point. The sum does not evaluate. Since Sum[1/Sqrt[n!], {n, 1, Infinity]}] does not evaluate. I tried this on Maple and Maxima, and they both do the same as M. So, this will require special function to handle this specific case.
Mar
3
comment The built-in function If behaves strangely in a procedure/function
I could not follow your code. But you say ` program to generate sequences of "1", "2" and "3" with no equal consecutive pairs.` Is this sort of what you mean? lst = {1, 2, 3}; Permutations[#] & /@ Subsets[lst] This gives !Mathematica graphics if this is not what you want, then may be give small example of input/output needed. (ps. not good idea to use procedural coding in M, no goto, etc...)
Mar
3
comment The built-in function If behaves strangely in a procedure/function
example? If should behave the same way inside a Module or outside. If you find that If does not do so, this would qualify as a huge bug and should be submitted to supprt@wolfram.com for more investigation. But again, you should provide an example of what you mean as this could be a user error.
Mar
2
comment How to write a differential operator in Mathematica
@acl, I changed the order. I assumed you meant it should be Function[f,x] vs, Function[x,f] just to make it look better. @jens, sorry I am not following your suggestion. First I would never use global thing. I hate global variables, anything global, I will never ever use global variables, ever ever will do that. As for your second suggestion to use the first slot in f, but the argument to f is used inside the cos and sin functions as well? Why make it complicated? Why not simply pass the function and its argument separate? May be I am missing what you mean, an example will help?
Mar
2
revised How to write a differential operator in Mathematica
changed order of f and its argument
Mar
2
answered How to write a differential operator in Mathematica
Mar
2
comment How can I change the color of the bar in a ProgressIndicator?
I do not think this is possible. This control uses platform native widget, color is whatever the OS decides on it.
Feb
24
revised Color plot markers using If statement
make code show as code