1: To Execute Command:
Shift-Return
COMMANDS FOR BASIC ARITHMETIC:
1: Addition: +
2: subtraction: -
3: multiplication: *
4: division: /
5: N[x,d] ← Very useful numerical approx. function.
Gives a decimal approximation of the
argument x to d signiﬁcant digits.
If you don't specify d, the default will be 6
digits.
✦ N can also be applied after the fact by
appending //N to a command. [THIS IS
ENTERING A COMMAND IN A POSTFIX FORM]
REFERRING TO THE OUTPUT OF PREVIOUS CELLS:
✦ The % refers to the contents of the highest out[n]= (Usually the last)
PLOTTING FUNCTIONS OF ONE VARIABLE: ✦ Displaying more than one function in the same plot:
✦ { } encloses a list.
✦ Plot Options
• you can ﬁnd a detailed explanation of commands that enable
your to customize your plot in the Documentation by searching
for plot or clicking on visualization and graphics, then function
visualization.
• Here are a few options:
• AspectRatio:
Is the ratio of the height of the plot to its width. • AxesOrigin:
Changing the origin
ex: AxesOrigin → {0,0}
• PlotRange:
Setting the range of the x to 0,5 and the range of y to 0,3
• Adding axes labels and a title to your pot using AxesLabel
and PlotLabel • Changing font size, font:
Can use BaseStyle → FontFamily → & FontSize →
• Changing the attributes of the curve:
Use PlotStyle →
• Note: the GrayLevel is a number between 0 (black)
and 1 (white)
• Modifying the thickness: • Note: Thickness and Dashing are deﬁned as the
fraction of the width of the plot.
• If you give one argument to Dashing: the
lengths of the dashes and the spaces between
them will be the same.
• You can change this by giving two
arguments to Dashing.
• the ﬁrst: is the length of the
dashes
• The second: is the length of the
spaces between the dashes.
• Frame around your plot:
Frame → True
• To label the axes when you have a frame you use
FrameLabel option. • Adding a legend:
ADDING COMMENTS TO NOTEBOOK:
(* write your comments in this space, will look gray when done *)
ASSIGNING VARIABLES:
a = 2;
b

More
Less