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 about transformation rules in Mathematica--constructs that let you set, or programmatically modify, local values for expressions.
0
votes
1
answer
146
views
Problem with replacement rules
:= Subscript[Style[x, Italic, Bold], y]
Then I defined a function Sprod which is:
Sprod[x_String, y_String] := Vec[q, x]\[CenterDot]Vec[q, y]
Now I would like to apply the following substitution rule … I have tried the explicit rule
Sprod["1", "2"] /. Sprod["1", "2"] -> whatever
which works just fine. However, I'd like to write something a bit more general. …