Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
15
votes
3
answers
1k
views
substitution rules excluding subscripted variables
Suppose I have an expression containing p,Subscript[p,1],Subscript[p,2],etc. I want to replace p with a numerical value while keeping the other two variables intact. How can I do it?
If I naively use …
1
vote
0
answers
54
views
plot[] with subsititution rule [duplicate]
I encounter this problem in Mathematica 9.0.1, I'm not sure if it ever happens in other version.
Plot[{x, x + 1}, {x, 0, 10}, PlotStyle -> {Red, Green}]
This will show a red curve and a green curve …
3
votes
1
answer
197
views
obtaining real roots of negative numbers in a long expression [duplicate]
I only need the real root after replacement, but Power[] function in Mathematica most of the time gives me a complex number instead. … (it seems that realPower only work with numerical values) What should I do to get only the real root after replacement? …
10
votes
1
answer
728
views
error when defining a compiled function with ReplacePart
I always have difficulty in writing a non-trivial compiled function. I'm using Mathematica 9. Please see the following code
Clear[longtermCompiled];
longtermCompiled =
Compile[{{M, _Real, 2}},
…