Reputation
46,709
Next tag badge:
102/100 score
17/20 answers
Badges
9 115 238
Newest
 Nice Answer
Impact
~691k people reached

1d
comment Symbolic vs numerical integration
@Farhad use the Insert Graphics button or use the Mathematica upload tool
1d
comment How to generate a random flow graph?
@belisarius it doesn't seem to answer the follow-up question that was added later (and which I didn't notice until now).
1d
comment Export a .NOFF file without color information
The NOFF help page says it will output CNOF is color information present. What happens if you export something like SphericalPlot3D[ 1 + Sin[4 \[Phi]]/2, {\[Theta], 0, Pi}, {\[Phi], 0, 2 Pi}, Lighting -> "Neutral", Mesh -> False, Axes -> False, Boxed -> False] /. RGBColor[__] -> Sequence[]?
2d
comment How to solve this recursive system?
Not that it helps with your problem but I'd like to point out that you have used a few reserved keywords as variables in your code (E and D). In order to prevent conflicts you better refrain from using variables with an initial uppercase character.
2d
comment Need Help with solve function
You're welcome. Note that IE11 seems to have problems with the add-in.
2d
comment Need Help with solve function
meta.mathematica.stackexchange.com/questions/1043/…
2d
comment Need Help with solve function
And now the square brackets...
2d
comment Need Help with solve function
You also forgot to write sqrt(t) as Sqrt[t].
2d
comment Need Help with solve function
My guess is that the OP meant e to be E (wolfram alpha assumes that much)
2d
comment How to calculate the value of financial derivatives
Your latest changes do still not make sense. GatherBy needs a test, not a pattern. You still seem to confuse derivatives and stocks, as your pattern seems to be about indices. The calls to FinancialDirective are still wrong. and you still forget that you already have your greeks in the first two calls.
2d
comment Different Results from Simplify, dependent on explicit vs computed rules
@AlexDB What about #2 -> #1 & @@@ {eq3, eq4}?
Feb
3
comment Different Results from Simplify, dependent on explicit vs computed rules
Map produces a single list, but you have put two of them in a list, so, as I said in my answer, you have to use Flatten to make it a single one.
Feb
3
comment Exponential fitting - isn't actually a BUG there?
@simplex are you sure that you have converted all numbers to exact numbers? I find it surprising that there should be a difference between our computers in this regard as the arbitrary precision routines are supposedly machine independent.
Feb
2
comment How can we draw a stencil for discretization of PDEs?
All you have to do is look-up the following functions in the documentation: Graphics, Line, Point, Text, Arrow and the work is almost done.
Feb
2
comment What are the time and space complexities of Classify/Predict?
Yeah, I forgot about that. I actually tested it myself. But of course, what BenchmarkPlot does (timing executions with various amount of data) is not that hard to do yourself. Just a Table and AbsoluteTiming should do the trick.
Feb
1
comment Different Results from Simplify, dependent on explicit vs computed rules
I am sorry, but you have to specify eq1 and eq2 as well. Otherwise you're asking us why one expression replacement differs from another one with unknown replacements.
Feb
1
comment Different Results from Simplify, dependent on explicit vs computed rules
what are the definitions of eq3 and eq4?
Feb
1
comment How to calculate the value of financial derivatives
Frankly, this code looks like nonsense. You probably copied and pasted parts of it from someone else without understanding what's going on. You find currentPrice and historicalPrice of a stock but never use them. All of the FinancialDerivative calls are incorrect. The Greeks = line does not follow the FinancialDerivative syntax and besides, you already have the greeks from the previous two lines. Given all this, I vote to close this question until you have clarified your intentions and the code.
Feb
1
comment How to calculate the value of financial derivatives
Also, you cannot put the name of a stock in FinancialDerivative. You're supposed to enter the option type there and provide all the parameters of the option and the underlying as function options to FinancialDerivative.
Feb
1
comment How to calculate the value of financial derivatives
I guess FinancialData[stock, "Price"] won't work because what you put in stock aren't stocks but option types. You should use FinancialData[] in the Select call in the beginning instead of FinancialDerivative[].