13.07.2015 Views

Mathematica Tutorial: Notebooks And Documents - Wolfram Research

Mathematica Tutorial: Notebooks And Documents - Wolfram Research

Mathematica Tutorial: Notebooks And Documents - Wolfram Research

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Notebooks</strong> and <strong>Documents</strong> 205You can mix î[Wedge] and î[<strong>And</strong>] operators. Each has a definite precedence.In[17]:= a Ô b Ï c Ô d êê FullFormOut[17]//FullForm= <strong>And</strong>@Wedge@a, bD, Wedge@c, dDDSome of the special characters commonly used as operators in mathematical notation looksimilar to ordinary keyboard characters. Thus, for example, Ô or î[Wedge] looks similar to the ^character on a standard keyboard.<strong>Mathematica</strong> interprets a raw ^ as a power. But it interprets Ô as a generic Wedge function. Incases such as this where there is a special character that looks similar to an ordinary keyboardcharacter, the convention is to use the ordinary keyboard character as the alias for the specialcharacter. Thus, for example, Esc ^ Esc is the alias for \@WedgeD.The raw ^ is interpreted as a power, but the Esc ^ Esc is a generic wedge operator.In[18]:= {x ^ y, x Esc ^ Esc y}Out[18]= 9x y , x Ô y=A related convention is that when a special character is used to represent an operator that canbe typed using ordinary keyboard characters, those characters are used in the alias for thespecial character. Thus, for example, Esc -> Esc is the alias for Ø or \@RuleD, while Esc && Escis the alias for fl or \@<strong>And</strong>D.In[19]:=Esc -> Esc is the alias for \@RuleD, and Esc && Esc for \@<strong>And</strong>D.{x Esc -> Esc y, x Esc && Esc y} // FullFormOut[19]//FullForm= List@Rule@x, yD, <strong>And</strong>@x, yDDThe most extreme case of characters that look alike but work differently occurs with verticalbars.form character name alias interpretationx yAlternatives@x,yDx y \@VerticalSeparatorD Esc Esc VerticalSeparator@x,yDx˝y \@VerticalBarD Esc â Esc VerticalBar@x,yD†x§ \@LeftBracketingBarD Esc l Esc BracketingBar@xD\@RightBracketingBarD Esc r EscDifferent types of vertical bars.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!