A First Encounter with Scientific Notebook

by

Don Allen

Department of Mathematics

Texas A&M University

and

with liberal assistance from the

Scientific Notebook Help Menus



Abstract. We study the capabilities of a scientific software package to produce clean, clear, typeset mathematics with a minimum of effort.

Introduction

To enter the heading Introduction, type the word ``introduction'' on a new line. Then with the insertion point on that line, choose the Heading 2 from the Section/Body Tag list on the Tag Toolbar (at the bottom of the window).

snbworkshop__1.png
Tagbar (bottom of SNB screen)

Now lets's make a few points. \underline{First press enter} at least once. From the Item Tag list on the Tag Toolbar, choose the Numbered List selection. You should see ``1.'' on the line.

  1. Type your name: S. N. Book. Make your last name bold. Choose Bold from the Text Tag list on the Tag Toolbar. S. N. Book. Now press enter.

  2. You should see the number ``2.'' on the current line. \underline{Enter your address}. Now press enter again.

  3. Do you see the number ``3.'' ? \underline{Enter your office phone}. By the way the left quote mark is made with the symbol `. Press it twice.

  4. Finally, if you'd rather have lettered item rather than numbered, you can change the setting in the Edit/Properties menu. (at top)

  5. You can apply the Emphasized, Strongly Emphasized, Keyboard Input, Sample Text, Bold, Italics, Typed Code, Bigger, and Smaller tags by selecting text, then choosing the Text Tag from the Tag Toolbar at the bottom of the Scientific Notebook screen.

  6. Turn off the numbering in the Item Tag list or by choosing the Remove Item Tag from the Tag Toolbar.

.

Toolbars

Make sure that all your toolbars are displayed. We assume that in the following lessons. From the View menu select the Toolbars option. Check all the boxes. This will eat up some screen real estate, but by-and-by you can decide which of them you really don't need or want.


Entering Math

Easy to produce, great appearing math is the forte of SNB. You can make fractions, radicals, integrals, subscripts, superscripts, almost anything you can conceive of with just a few keystrokes. Let's try it. The most important thing to remember here is that there is Math Mode and Text Mode. At the top of the SNB screen you should see that you are in Text Mode by the snbworkshop__2.pngbutton. Choosing it gives MATH and you're in Math Mode.


A quadratic. Superscripts and subscripts.

So choose the math mode now. Enter some math, just by typing it in. For instance: $\ 2x^{2}+3x+2=0$ How did we get $x^{2}$??? To get that you need to type the $x$ and then the superscript button snbworkshop__8.pngat the top. So, you type $x$ snbworkshop__10.png $2$ and then $\rightarrow $ from your keyboard to get out of superscript mode. Choose MATH to get out of math mode. Now type in some math using a subscript.(Don't forget to use the subscript button snbworkshop__15.png For example: $a_{ij\text{ }}$or a$_{i_{j}.}$ Even subscripts of subscripts are possible.


Exercise

Try typing the following:

Fractions and Radicals.

Fractions and radicals are easy to make. You need to spot the Fraction button snbworkshop__21.png and the Radical button at the top of your screen. Try to type the expression.
MATH

Here are some directions for fractions. Directions for radicals are similar.

  1. Choose snbworkshop__23.png. Type the numerator.

  2. Move to the denominator by pressing the down arrow or the Tab key, or by clicking on the denominator input box.

  3. Type the denominator.

  4. Press the right arrow or the spacebar to leave the fraction.

The following example is more complex. Can you get it?
MATH
Notice in this expression there is a fraction in a fraction. Just use the Fraction button anytime you need it, no matter where you are. Also you see the cube root, not square root. $\ $To get it, just place the insertion point where the root should be and type the root you want. $\ $Here's one. $\ $ MATH Try to get it.


Displaying mathematics.

Just above you see the functions MATH and $H\left( x\right) $ displayed. This is easy to achieve using the Display button snbworkshop__31.png Choose snbworkshop__32.pngnow. Type a mathematical expression in the display, or select a piece of mathematics and drag it into the display. Note the following:

Inserting enter immediately before a display will add extra vertical space. If you do not want this space, place the insertion point immediately before the display and press backspace. Inserting enter immediately after a display will add extra vertical space and cause the next line to start a new paragraph. If you do not want this space, place the insertion point at the start of the next line and press backspace.

Now enter some mathematics of your own choosing in a displayed format. Examples:
MATH
Here, we've used Greek letters for the first time. Find them by choosing the lowercase Greek button snbworkshop__34.pngor the uppercase Greek button snbworkshop__35.pngon the Symbol toolbar Notice also the different appearance of the trig functions. SNB knows these functions and changes the font to normal, just like in textbooks. Finally, by choosing Enter within Display mode, you get a new line. \underline{Equality signs automatically line up}.

More on Lists

Besides numbered lists, you can create bulleted, and description lists using the tag popup at the bottom left of the screen.

  1. List item 1

  2. List item 2

Description List

Each description list item has a term followed by the description of that term. Double click the term box to enter the term, or to change it.

Bunyip

Mythical beast of Australian Aboriginal legends.

$\vspace{1pt}$

MATH

More Math (Making Graphs)

Making a graph is one of the most powerful of the SNB options. From the simplest display of straight line to a complex multiplot, making graphs is remarkable simple.

Example

(A simple graph) In Math mode, type an function (or even equation), say $x+1.$ Place the insertion point anywhere in the expression and press the Plot Rectangular button snbworkshop__39.png


snbworkshop__40.png

What I did here was select Example from the Item tag list on the Tag Toolbar and then choosing Center from the Section/Body Tag list on the Tag Toolbar. So, we have a simple plot.

Example

2. (Using Plot Options) Make a label on the plot which says, ``My first plot'' ; remove the box around the plot; make the plot thicker and red; and finally restrict the horizontal axis to MATH

Four things to do; four steps are required. Click anywhere in the plot. There should appear six ``handles'' around the plot and a small blue box in the lower right corner. Click the small blue box. This opens the Plot Properties dialogue box. To make the label, choose from it the Labeling tab and enter the caption ``My first plot'' in the Caption box. Press OK. For the second task, open again the Plot Properties dialogue box. Selecting the Frame tab, choose the Content only button. For the third task, open again the Plot Properties dialogue box. From the Plot Components tab select Line Color as red and Thickness as medium. For the last task, select the View tab and (un)check the Default box. Then, enter the new range for the $x$-components. Click inside the respective boxes. Striking the Tab key takes you from the left limit to the right limit. Your new graph should be just as below.


snbworkshop__43.png
My first plot

Exercise

Make a plot of the function $\sin x^{2},$ with a label ``$\sin x^{2}'.$ Make the horizontal range MATH the vertical range MATH the color blue, and the thickness medium. Change the number of $x$-axis ticks to 7 and $y$-axis ticks to 5. (For this one you need to select the Axes tab in plot properties.) Center the graph on the page. You should get the graph below.

snbworkshop__51.png
$\sin x^{2}$

MATH

There are often multiple ways to access various menus. The help manual is the best source of these. For example by selecting Edit/Properties, you can also access the Plot Properties dialogue box

Example

3. (A complicated graph.) Use Plot 2D + Rectangular to plot the graph of

$x\sin \dfrac{1}{x}$

MATH To add an expression to a 2D plot

MATH Plot 2D + Rectangular

$x\sin \frac{1}{x}$

MATH Select and drag to the frame (one at a time)

$x$ and $-x$

MATH Revise Plot Components page, Item Number : 2, Line Color: Red, Item Number: 3, Line Color: Blue


snbworkshop__67.png
MATH $y=x,$ $y=-x$




You can also add expressions with Add Item in the Plot Properties tabbed dialogs, as described earlier.

Making a hypertext link.

Making hyperlinks is a easy as typing in what it is. For example if you want your students to read the headlines from the on-line newspaper USA Today, you can hyperlink it

    1. With the mouse choose what you want hyper linked.

    2. Select the Hyperlink button. snbworkshop__68.png

    3. Type into the target box the link: http://www.usatoday.com.

    4. You have USA Today

    5. Finally, if you choose some linked text, copy it, and then paste it somewhere else in your document, the link comes along.

Exercise

On your worksheet enter a hyperlink to your own home page or some other URL.

Making hypertext links to a point within a file is also easy. For such links you need a marker tag at the URL. For illustration purposes, use the document you have been creating.

MATH To create a marker

  1. Place the insertion point in the item you wish to mark.

  2. Click snbworkshop__70.png, or from the Insert menu, choose Field, and then choose Marker.

  3. Enter the key for the item.

    Use only letters, numbers and the following characters: : ; , . ? ! \lbrack \rbrack ( ) `` $\sim $ - / *

  4. If you want to display a list of the keys defined for your document, click the arrow next to the Key box, then scroll the list.

  5. Choose OK.

      Example
      Example

      Place the marker ``Firstgraph'' just above the first graph you created. Make a hypertext link to that position from here by choosing the word ``choosing'' selecting snbworkshop__72.pngand typing ``Firstgraph'' in the target box.

Making hypertext links (general case).

MATH To create a hypertext link

  1. Click snbworkshop__74.png, or from the Insert menu, choose Field and then choose Hypertext Link.

  2. In the Screen Text box, enter the text of the link as you want to see it on the screen and in print.

  3. In the Target box, enter the address of the targeted item. The format of the address varies with the target, as shown in these examples:

    The address Links to
    here the marker here in the current document
    yourdoc.tex the document yourdoc.tex in the current directory
    c:\other\yourdoc.tex the document yourdoc.tex in the other directory
    yourdoc.tex#here the marker here in the document yourdoc.tex
    http://www.site/doc.html the information at the web address http://www.site/doc.html
    http://www.site/doc.html#here the marker here at the web address http://www.site/doc.html

  4. Choose OK.

Doing Math with Maple

You and your students will be delighted with how simple routine mathematical calculations, symbolic or not, can be when you use the Maple engine contained in Scientific Notebook. For doing mathematics the Computebar contains the basic buttons to do most jobs.
snbworkshop__75.png

Example

Let's evaluate a number. MATH Place the insertion point in the expression and choose the Evaluate button to get MATH Notice that the exact answer is given, not some decimal approximate.





Example

Expand the expression MATH Place the insertion point in the expression and choose the Expand button we get MATH

Exercise

Expand the following:

Note what happens to the numerical coefficients. You get the full expansion.

A little calculus --- derivatives

Example

Find MATH Just type MATH in Math mode (of course),place the insertion point within the expression, and choose the Evaluate button. We get
MATH
Note if you evaluate an expression in display mode, the answer will appear on the next line. You will have to move it into the display if that is where you wish it to be.

Exercise

Find the following derivatives:

A little calculus --- integrals


MATH

Defining Generic Functions

Exercise

Define the functions MATH and MATH Do the following examples;

MATH Define + New Definition

$f(x)$

$g(x)=x^{2}-3x$

MATH Evaluate

MATH

MATH

Defining Generic Constants

You can use Define + New Definition to declare any valid expression name to be a constant. Scientific Notebook will then ignore such names when identifying dependent and independent variables.




Making tables and matrices.

Example

Make a $4x3$ table on a displayed line. Line the boxes. First select the Display button. Then choose the Table button.
MATH
To line the boxes choose the table you've just made and choose Edit+Properties+Lines. Choose the Single button and the All button.

Typing Cases

Typing an expression using cases is a little tricky. A cases-type expression is of this form:


MATH

The right side of the expression is a matrix surrounded by brackets. The right bracket is an empty bracket.

MATH To enter an empty left or right bracket

  1. Click the Bracket button snbworkshop__173.png, or from the File menu, choose Brackets.

  2. If you want an empty left bracket, locate the empty bracket snbworkshop__174.pngin the top row of brackets.

  3. If you want an empty right bracket, locate the empty bracket in the bottom row of brackets.

  4. Complete the bracket pair.

  5. Choose OK.

MATH To enter a case expression

  1. Enter the expression to the left of the =.

  2. Enter the =.

  3. Create a matrix.

  4. Enclose the matrix in brackets with an empty right bracket. The empty bracket is shown in the Brackets dialog box as snbworkshop__176.png.

  5. Enter the case expression in the matrix.

MATH To align the case expression

Using the help menus

We have only touched on the thousands of features of Scientific Notebook. The help menus contain much more information than you can absorb in any reasonable time. Go to Help+Search or Help+Index+... Learn to use and depend on them. You can also find a great reference library on calculus, physics, and chemistry. Go to Help+Contents+Reference Library.

snbworkshop__178.png Chemistry
snbworkshop__179.png Mathematics
snbworkshop__180.png Physics

This document created by Scientific Notebook 4.1.