3,084 reputation
21028
bio website
location
age
visits member for 1 year, 4 months
seen 1 hour ago
stats profile views 289

2d
comment Forecast Future Stock Prices - Brownian Motion
The code here mathematica.stackexchange.com/a/3148/66 allows you to simulate stocks and correlated stocks. You can inspire yourself from it for other related models.
May
17
comment How do I evaluate only one step of an expression?
An application of step is here for compiling more functions: mathematica.stackexchange.com/a/24596/66
May
13
comment Can one identify the design patterns of Mathematica?
Yes I agree that some examples are standard language features, but they are still methods often used to solve problems, and not common to other languages, idioms like you said.
May
13
comment Can one identify the design patterns of Mathematica?
Other ideas: nested lists, lazy lists, using UpValues on structures of the form headType[data1,....]
May
13
comment Can one identify the design patterns of Mathematica?
Many examples can be found here mathematica.stackexchange.com/a/8617/66 and could be used in this post.
May
13
comment Can one identify the design patterns of Mathematica?
Some ideas: closures, using Reap and Sow, Options, using Block to temporarily have global variables, With to inject code inside held expressions (Villegas-Gayley trick), use of Compile for speed critical code, use of functional programming, HoldAll attributes, Dispatch, any form of struct (the most simple one is struct["name"]=property)
May
4
comment Compiling more functions that don't call MainEvaluate
Pure functions are fine for simple functions, but don't solve more complex cases, for example if f or g contain calls to other functions.
May
3
comment Compiling more functions that don't call MainEvaluate
It calls MainEvaluate, that's the point of the post. Note that the post is meant for more complex cases than the example of the question.
Apr
16
comment How to program a F::argx message?
@Mr.Wizard, you expose here a great summary of techniques, thank you for this.
Apr
3
comment Stop use of scientific notation when displaying FrameTicks
related question: mathematica.stackexchange.com/q/3436/66
Mar
26
comment Travelling salesman with start and end points for 30 points
Try with an intelligent goo: technologyreview.com/view/512821/…
Mar
24
comment How can I get the right hand side of a delayed expression?
@Mr.Wizard regarding a counter-example, if you do step@f[5+5], you get f[10], whereas with the method of Leonid, you get the right hand side of f applied to 5+5. In order to get the same result with step, f should have a HoldAll attribute.
Mar
20
comment How to implement dual numbers in Mathematica?
This demo is about dual numbers and automatic differentiation demonstrations.wolfram.com/AutomaticDifferentiation
Feb
6
comment Creating a R DataFrame like construct in Mathematica
related question mathematica.stackexchange.com/q/9702/66
Feb
5
comment A debug utility to print or extract intermediate data from a program
Yes but sometimes you want to have the variables available for a step by step debugging in the frontend, and this utility is useful for this.
Feb
5
comment Printing grouped cells
Fyi I have incorporated your answer in my answer here mathematica.stackexchange.com/q/15134/66
Feb
5
comment Printing grouped cells
I found it, FrontEndExecute[FrontEndToken["OpenCloseGroup"]]; before SelectionMove
Feb
5
comment Printing grouped cells
Thanks, this would be perfect if the grouped cells were closed, as the ExpressionCell typically contains big outputs in what I want to do.
Feb
5
comment Printing grouped cells
No I want to print grouped cells in the same notebook as the evaluated cell
Feb
5
comment What are the most common pitfalls awaiting new users?
Surprising from someone of your level !