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 |
Questions on Mathematica's scoping constructs (Block, Module, With, etc.)
4
votes
3
answers
155
views
With function replace rule does not work in
If I define an expression , and evaluate it in With function, replace rule does not work.
sumT = TA + TE;
With[
{TA = 0.1, TE = 0.2},
{TA + TE, sumT}
]
output
{0.3, TA + TE}
1
vote
2
answers
83
views
SortBy does not work correctly when nest in Evaluate in With in Block
I have got some formula in Mathematica, then I want to pass value to verify them.
full code
vb[v_, a_] := v - 1/2*Sign[a]*(a*a)/Jm;
vf[v_, a_] := v + 1/2*Sign[a]*(a*a)/Jm;
Sb[v_, a_] := vb[v, a] RealA …