Skip to main content

Questions tagged [rule]

Questions about transformation rules in Mathematica--constructs that let you set, or programmatically modify, local values for expressions.

1 vote
1 answer
102 views

I am introducing a rule: $Post = # /. x_?NumericQ FiniteField[q_?PrimeQ] [s_] :> FiniteField[q] [x] FiniteField[q] [s] &; But for some reason, upon ...
Anixx's user avatar
  • 3,862
4 votes
1 answer
268 views

My goal is to count cases of {"Yes", _, _} -> "Yes" and {"Yes", _, _} -> "No" in the set below using HoldPattern to treat the rule itself as a pattern. ...
Soon's user avatar
  • 1,484
4 votes
7 answers
543 views

Given ...
user57467's user avatar
  • 3,150
2 votes
0 answers
89 views

I made the following code: L={{1,2},{2,3},{2,4}}; R:=(L=(L/.{x_,y_}:>Splice[{{x,y},{x,x},{y,y}}]/;MemberQ[L,{x,y}])//Union) When I run R three times, I get: <...
Red Banana's user avatar
  • 5,613
7 votes
3 answers
412 views

Given a relation L, we can make the symmetric closure using rules as follows: ...
Red Banana's user avatar
  • 5,613
2 votes
0 answers
169 views

I work with perturbations in FLRW metric with arbitary curvature. I'm following Weinberg's book. In modified gravitation theory there is additional tensor S and I need to find it's perturbation in the ...
Heckfy's user avatar
  • 21
0 votes
1 answer
73 views

I am trying to generalize the condition Derivative[1, 0][ℒp][t, ϕ] -> Derivative[0, 1][ℒp][t, ϕ]/l for $\ell$ a constant, through the following rule ...
hyriusen's user avatar
  • 173
2 votes
1 answer
115 views

Say that I have a huge list (>300.000 elements) of polynomial equations and I want to simplify these by looking for some simple equations of the form x[i] == _ ...
Gert's user avatar
  • 1,783

15 30 50 per page
1
2 3 4 5
25