LibreOffice-Suite-Math-6.3/C2/Sets,-Factorials-and-Cross-Referencing/English
Title: Sets, Factorials and Cross Referencing
Keywords: LibreOffice Math, LibreOffice Writer, set operations, union, intersection, subset, factorials, cross referencing, font size, spoken tutorial, video tutorial.
Visual Cue | Narration |
Title Slide | Welcome to the spoken tutorial on Sets, Factorials and Cross Referencing. |
Slide:
Learning Objectives |
In this tutorial, we will learn how to:
|
Slide:
System Requirements |
This tutorial is recorded using:
|
Slide:
Prerequisites https:\\spoken-tutorial.org |
To follow this tutorial, learner should be familiar with Math interface.
|
Slide:
Code Files |
|
Open the MathExample1.odt . | Let us first open the MathExample1.odt file. |
Press Control + Enter keys to go to a new page. | Press Ctrl and Enter keys to go to a new page. |
Type Set Operations: in Writer on this fresh page. Press enter twice.
|
Type Set Operations: and press Enter.
Let us now call the Math application. |
Click Format menu >> Font size Increase size to 18 pt. | Before we go ahead, let us increase the font size to 18 point. |
Slide:
Sets |
Let us now learn about Sets.
The elements of a set are enclosed within brackets. Math has a separate markup to represent sets. |
Open and show the Sets-factorials.txt file. | I have written the example sets and factorials in the Sets-factorials.txt file.
I will copy-paste the example sets and factorials from it. This file is provided in the Code Files for the learners to use. |
In FEW, copy and paste:
A ~=~ lbrace 1, 2, 3, 4, 5 rbrace newline B ~=~ lbrace 1, 2 ,3, 6 rbrace newline C ~=~ lbrace 4, 5 rbrace newline D ~=~ lbrace 6, 7 rbrace newline newline |
Let us write 4 example sets in the Formula Editor window.
Set B has 4 elements. Set C and Set D have 2 elements each. |
In FEW, point the mouse over the markup above.
|
To enclose the sets in brackets we have used the markup lbrace and rbrace.
|
In FEW, press enter twice, copy and paste:
C subset A newline newline
|
Notice that set C is a subset of set A.
Every element in set C is available in set A. The markup to write subset is, C subset A. |
In FEW, press enter twice, copy and paste:
Union "Example of Union of sets" newline B union C ~=~ lbrace 1, 2, 3, 4, 5, 6 rbrace newline newline |
Let us write the markup for union operation.
The union set includes all the distinct elements in both the sets. |
In FEW, press enter twice, copy and paste:
“Example of Intersection of sets:” newline B intersection D ~=~ lbrace 6 rbrace newline newline
|
Now let us write the markup for intersection operation.
|
Click and show the Set operations in the Elements window.
Click Save icon in the Standard toolbar. |
You can learn to write more set operations, using the Elements window.
Let us save our work now. |
Slide:
Assignment |
Pause the tutorial and do this assignment.
Using the example Sets,
|
Click outside the Writer gray box. Press press Ctrl and Enter keys.
“Factorials: ” and press Enter key.
|
Let us go to a new page.
Click outside the Writer gray box and press Ctrl and Enter keys. Now let us type Factorials: and press Enter. |
Cursor in the writer window. | We already know how to call Math.
|
Type fn and press F3
|
For this type fn in the Writer document and press F3 key on the keyboard.
We see a new Math object that says E is equal to m c squared. |
Point mouse over (1) on the right in Writer gray box. | This object has number one written within parentheses, on the right.
We can use this number to cross reference a formula within this document. |
Slide:
Cross Referencing |
Cross Referencing
It allows us to navigate to a specific text or object within a document.
|
Double click on E = mc squared in Writer gray box.
Increase size to 18 pt.
|
We will learn how to do this later.
Let us change the Font size to 18 point. |
In FEW, overwrite existing formulas.
Copy and paste: fact 5 = 5 times 4 times 3 times 2 times 1 = 120
|
Let us now write an example to show a factorial.
|
Click outside this Writer gray box.
Type ‘fn’ and press F3 key on the keyboard.
|
Let us write another formula in a new Math object.
For this, click outside this Writer gray box.
Type ‘fn’ and press F3 key to show the second Math object. |
Double click on E = mc squared in Writer gray box. | Double click on E = mc squared in the gray box. |
Click Format menu >> Font size.
Increase size to 18 pt.
|
Change the font size to 18 point using the Format menu. |
In FEW, overwrite existing
formula.
fact n ~=~ prod from k = 1 to n k newline
|
Let’s overwrite the existing formula with the factorial definition.
From k= 1 to n gives the n factorial. |
Click outside this second Writer gray box.
Type ‘fn’ and press F3. |
Similarly, let us introduce a third Math object as before. |
Double click on E = mc squared in Writer gray box
Click Format menu >> Font size. Increase size to 18 pt. |
Let’s open the object in Math.
Change the font size to 18 point. |
In FEW, overwrite existing formula.
Press Ctrl + A to select all the text >> copy and paste: fact n ~=~ left lbrace binom{1 ~ "if n = 0"}{fact(n-1) `times` n ~ " if n > 0 "} right rbrace newline newline
|
Type the markup as shown.
Here the markup binom, helps to displays a vertical stack of two elements.
|
Click outside Writer gray box, press Control + Enter | Let us now see how we can cross reference these formulae.
For this, let us go to a new page. |
Type: An example of a factorial is provided here:
Click Insert menu >> Cross reference. |
Type: An example of a factorial is provided here:
|
Point to the Fields window.
In the Fields window, click on Text , in the Type list
|
Fields window opens.
In the Type list, select Text option.
This denotes the first factorial formula we wrote. |
Click Reference in the ‘Insert reference to’ list.
|
In the Insert reference to list choose Reference.
Then click the Close button to close the window. |
Point mouse over (1)
Click on (1).
|
Number one in parentheses has appeared next to our text.
To test, click on the number. Notice that the cursor has jumped to the location of the first formula. This is how we cross reference Math formulae within a Writer document. |
Ctrl + S | Let us save the file now. |
Only Narration | With this we come to the end of this tutorial.
|
Slide:
Summary |
In this tutorial we have learnt how to:
|
Slide:
Assignment (n+2)!/n!
|
Here is an assignment for you.
Write the markup for the following factorials. |
Slide:
Assignment |
Here is an another assignment for you.
In the Writer document, cross reference the second and third factorial formulae. |
Slide:
About Spoken Tutorial Project |
|
Slide:
|
|
Slide:
Answers for THIS Spoken Tutorial |
Please post your time queries in this forum. |
Slide:
Acknowledgement |
The Spoken Tutorial project is funded by the Ministry of Education, Govt. of India. |
Slide:
Thank You Acknowledgement to DesiCrew |
This tutorial was originally contributed by DesiCrew Solutions Pvt. Ltd. in 2011
This is Madhuri Ganapathi along with the Spoken Tutorial team from IIT Bombay. Thank you for watching. |