Special Input Characters' Reference Table
- To: mathgroup at smc.vnet.net
- Subject: [mg105489] Special Input Characters' Reference Table
- From: BenT <brtubb at pdmusic.org>
- Date: Sat, 5 Dec 2009 05:32:10 -0500 (EST)
I've found this table might useful for reference, so I've decided to post it here. If there are any corrections, or omissions please let me know. ! Not; Factorial !! Get file # Slot; (replacement value for Condition); e.g. sqr[x_]:=x^2 is equal to (#^2)& and thus 5^2 is equal to (#^2)&[5]; another example: 5^3 could be written as (#1^#2)&[5,3] but note that {2^3} must be written as (#[[1]]^#[[2]])&[{2,3}] ## SlotSequence $ global variable prefix & Function && And % UseLastValue %% use the next to last value %n use the Output cell "n" result () parenthesis for evaluation grouping * Times; or string wildcard *= auto multiply x by c; e.g. x*=c means x=x*c + Plus ++ Increment; PreIncrement; e.g. ++v [v+1=v] or v++ [v=v+1] += AddTo; e.g. v+=d, equals, v=v+d . Dot .. Repeated[pattern] , used to separate elements or parameters - Substract -- Decrement; PreDecrement; e.g. --v [v-1=v] or v-- [v=v-1] -= SubstractFrom; e.g. v-=d, equals, v=v-d -> Rule / Divide /= DivideBy; auto divide x by c; e.g. x/=c means x=x/c /. ReplaceAll // postfix notation; e.g. N[Pi] = Pi//N; ApplyHead to previous expression //. ReplaceRepeated /; Condition /: ...= TagSet /: ...:= TagSetdelayed /@ Map : Default, Optional, or Pattern :: range function for Part, e.g. [[2::4]] := SetDelayed [for user functions] :> RuleDelayed ; suppresses Output of expression to display < Less << Get <> StringJoin =!= UnSameQ = Set == Equal =. Unset === SameQ > Greater >> Put >>> PuAppend ? Information; PatternTest (e.g. with MatchQ) @ Prefix; f@expr = f[expr] @@ Apply f to and replace the head of an expr; e.g. f@@expr is equivalent to f[expr] @@@ Apply to level 1 only; e.g. f@@@expr = Apply[f,expr,{1}] [] brackets for Function delimiters [[i]] used with Part, e.g. Part[f,i] ^ Power ^:= UpSetDelayed ^= UpSet ^^ BaseForm _ Blank (for general pattern matching) __ DoubleBlank (for pattern matching of one or more) ___ TripleBlank (for pattern matching, of zero or more) ` NumberMarks or precision {} list braces ~ Infix[f {Subscript[e, 1],Subscript[e, 2],...}] ~~ StringExpression | Alternative (used with patterns) || Or --- Benjamin Tubb