All Questions

Filter by
Sorted by
Tagged with
2
votes
2answers
73 views

Replacing with pattern on built-in symbols?

I have: f[a, b] /. f[x__] -> g[x, 0] // InputForm (* Out: g[a, b, 0] *) Which is what I expect, but when I use a built in symbol instead of ...
1
vote
1answer
66 views

Substitution of expressions for the output

I have a code which gives this kind of output : W = Sum[v[j]*b[j], {j, 1, 3}]; AA = (v[1]*b[1] + v[2]*b[2] + v[3]*b[3])*2 + 3 ; I know that if i want to ...
4
votes
2answers
699 views

Replacing dot by *?

I am unable to replace dot by *. Replace[a.a, .-> *] Is there any solution to get this done?
6
votes
5answers
258 views

First evaluate in place all subexpressions matching pattern before substituting result

ReplaceAll[expr, {patt1:>rhs1, patt2:>rhs2, …}] works by looking for and making all possible replacements of subexpressions in ...
1
vote
1answer
57 views

any possible meaning to a “terminal” slash (/)? [closed]

I've been directed to the web page http://functions.wolfram.com/07.31.16.0001.01 The first statement in the formula is ...
3
votes
1answer
98 views

How to replace the symbol n in DifferenceRoot

I'd like to employ another symbol (say alpha or k) instead of n in the following (type of) ...
1
vote
1answer
144 views

Replace symbols in output without evaluation

I found the Wolfram example for ExpandNCM but I want a more human-readable output form. I want to evaluate ExpandNCM, for example with ...
8
votes
2answers
583 views

Replacing product expressions - named vs. unnamed pattern?

Suppose I have an expression of the form a b c d + x y z The FullForm of this is ...