Difference between revisions of "LibreOffice-Suite-Math-6.3/C2/Sets,-Factorials-and-Cross-Referencing/English"
(One intermediate revision by one other user not shown) | |||
Line 16: | Line 16: | ||
'''Learning Objectives''' | '''Learning Objectives''' | ||
|| In this tutorial, we will learn how to: | || In this tutorial, we will learn how to: | ||
− | |||
* Write '''Set '''operations | * Write '''Set '''operations | ||
* Write '''Factorials''' | * Write '''Factorials''' | ||
* '''Cross reference''' the formulae using numbers. | * '''Cross reference''' the formulae using numbers. | ||
− | |||
|- | |- | ||
Line 32: | Line 30: | ||
* '''Ubuntu Linux OS''' version 18.04 and | * '''Ubuntu Linux OS''' version 18.04 and | ||
* '''LibreOffice Suite''' version 6.3.5 | * '''LibreOffice Suite''' version 6.3.5 | ||
− | |||
|- | |- | ||
Line 60: | Line 57: | ||
|| Press ''' Control + Enter keys''' to go to a new page. | || Press ''' Control + Enter keys''' to go to a new page. | ||
|| Press '''Ctrl''' and '''Enter''' keys to go to a new page. | || Press '''Ctrl''' and '''Enter''' keys to go to a new page. | ||
− | |||
|- | |- | ||
Line 68: | Line 64: | ||
Click '''Insert ''' >> '''Object ''' >> '''Formula'''. | Click '''Insert ''' >> '''Object ''' >> '''Formula'''. | ||
|| Type '''Set Operations:''' and press '''Enter'''. | || Type '''Set Operations:''' and press '''Enter'''. | ||
+ | |||
Line 75: | Line 72: | ||
|| Click '''Format '''menu >> '''Font size''' Increase size to '''18''' pt. | || Click '''Format '''menu >> '''Font size''' Increase size to '''18''' pt. | ||
|| Before we go ahead, let us increase the '''font size''' to '''18''' point. | || Before we go ahead, let us increase the '''font size''' to '''18''' point. | ||
− | |||
|- | |- | ||
Line 89: | Line 85: | ||
'''Math ''' has a separate '''markup ''' to represent '''sets'''. | '''Math ''' has a separate '''markup ''' to represent '''sets'''. | ||
− | |||
|- | |- | ||
− | || Open and show the ''' | + | || Open and show the '''Sets-factorials.txt file.''' |
− | || I have written the example sets and factorials in the '''Sets- | + | || I have written the example sets and factorials in the '''Sets-factorials.txt''' file. |
− | I will copy-paste the example sets and | + | I will copy-paste the example sets and factorials from it. |
This file is provided in the '''Code Files''' for the learners to use. | This file is provided in the '''Code Files''' for the learners to use. | ||
Line 109: | Line 104: | ||
'''D ~=~ lbrace 6, 7 rbrace newline newline''' | '''D ~=~ lbrace 6, 7 rbrace newline newline''' | ||
− | || Let us write 4 example sets in the '''Formula Editor window'''. | + | || Let us write 4 example '''sets''' in the '''Formula Editor window'''. |
Line 117: | Line 112: | ||
'''Set C''' and '''Set D ''' have 2 elements each. | '''Set C''' and '''Set D ''' have 2 elements each. | ||
− | |||
|- | |- | ||
Line 137: | Line 131: | ||
|| Notice that set '''C''' is a''' subset''' of ''' set A'''. | || Notice that set '''C''' is a''' subset''' of ''' set A'''. | ||
− | Every element | + | Every element in set '''C '''is available in '''set A'''. |
The markup to write '''subset''' is, '''C subset A'''. | The markup to write '''subset''' is, '''C subset A'''. | ||
− | |||
|- | |- | ||
Line 156: | Line 149: | ||
− | The resulting''' ''' | + | The resulting '''set '''has the elements 1, 2, 3, 4, 5 and 6. |
− | + | ||
− | + | ||
+ | The '''union set''' includes all the distinct elements in both the '''sets'''. | ||
|- | |- | ||
Line 175: | Line 167: | ||
− | The '''intersection '''includes only the common elements from both the sets. | + | The '''intersection '''includes only the common elements from both the '''sets'''. |
Line 213: | Line 205: | ||
− | There is | + | There is another way to call the '''Math '''object into the '''Writer window.''' |
|- | |- | ||
|| Type '''fn ''' and press '''F3''' | || Type '''fn ''' and press '''F3''' | ||
Line 270: | Line 262: | ||
Point to the''' preview''' window. | Point to the''' preview''' window. | ||
|| Let us now write an example to show a factorial. | || Let us now write an example to show a factorial. | ||
+ | |||
The ''' markup ‘fact’''' represents the factorial symbol. | The ''' markup ‘fact’''' represents the factorial symbol. | ||
+ | |||
Press ''' Ctrl ''' and '''A ''' keys to select the existing text. | Press ''' Ctrl ''' and '''A ''' keys to select the existing text. | ||
+ | |||
Type '''fact 5 = 5 times 4 times 3 times 2 times 1 = 120'''. | Type '''fact 5 = 5 times 4 times 3 times 2 times 1 = 120'''. | ||
Line 279: | Line 274: | ||
Five factorial is seen in the preview window. | Five factorial is seen in the preview window. | ||
− | |||
|- | |- | ||
Line 296: | Line 290: | ||
Type '''‘fn’ '''and press '''F3 key '''to show the second '''Math '''object. | Type '''‘fn’ '''and press '''F3 key '''to show the second '''Math '''object. | ||
− | |||
|- | |- | ||
Line 320: | Line 313: | ||
In FEW, point mouse over '''‘prod’ '''word in the last line | In FEW, point mouse over '''‘prod’ '''word in the last line | ||
− | |||
|| Let’s overwrite the existing formula with the '''factorial '''definition. | || Let’s overwrite the existing formula with the '''factorial '''definition. | ||
Line 326: | Line 318: | ||
'''n factorial ''' is equal to product from''' k = 1 '''to''' n '''of '''k'''. | '''n factorial ''' is equal to product from''' k = 1 '''to''' n '''of '''k'''. | ||
+ | |||
Notice the markup '''prod ''' which denotes '''product'''. | Notice the markup '''prod ''' which denotes '''product'''. | ||
Line 341: | Line 334: | ||
Increase size to '''18 pt'''. | Increase size to '''18 pt'''. | ||
− | |||
− | |||
− | |||
|| Let’s open the object in ''' Math'''. | || Let’s open the object in ''' Math'''. | ||
Change the font size to 18 point. | Change the font size to 18 point. | ||
− | |||
|- | |- | ||
Line 369: | Line 358: | ||
|- | |- | ||
|| Click outside '''Writer''' gray box, press '''Control + Enter''' | || Click outside '''Writer''' gray box, press '''Control + Enter''' | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|| Let us now see how we can '''cross reference''' these '''formulae'''. | || Let us now see how we can '''cross reference''' these '''formulae'''. | ||
− | For this, let us go to a new''' ''' | + | For this, let us go to a new page. |
+ | |- | ||
+ | ||Type: '''An example of a factorial is provided here:''' | ||
− | Type:''' An example of a factorial is provided here:''' | + | Click '''Insert '''menu >> '''Cross reference'''. |
+ | ||Type:''' An example of a factorial is provided here:''' | ||
Let us click on the '''Insert '''menu, and then on '''Cross-reference'''. | Let us click on the '''Insert '''menu, and then on '''Cross-reference'''. | ||
− | |||
|- | |- | ||
− | || Point to the Fields window. | + | || Point to the '''Fields''' window. |
− | + | In the '''Fields ''' window, click on '''Text ''', in the '''Type '''list | |
− | |||
− | |||
− | |||
Click on first item in the '''Selection '''list. | Click on first item in the '''Selection '''list. | ||
− | |||
Line 438: | Line 417: | ||
This is how we '''cross reference Math ''' formulae within a '''Writer '''document. | This is how we '''cross reference Math ''' formulae within a '''Writer '''document. | ||
− | |||
− | |||
|- | |- | ||
Line 455: | Line 432: | ||
'''Summary''' | '''Summary''' | ||
|| In this tutorial we have learnt how to: | || In this tutorial we have learnt how to: | ||
− | |||
* Write '''Set '''operations | * Write '''Set '''operations | ||
* Write '''Factorials '''and | * Write '''Factorials '''and | ||
* '''Cross reference''' the formulae using numbers. | * '''Cross reference''' the formulae using numbers. | ||
− | |||
|- | |- | ||
Line 493: | Line 468: | ||
* The video at the following link summarises the Spoken Tutorial project | * The video at the following link summarises the Spoken Tutorial project | ||
* Please download and watch it | * Please download and watch it | ||
− | |||
|- | |- | ||
Line 500: | Line 474: | ||
'''Spoken tutorial workshops''' | '''Spoken tutorial workshops''' | ||
− | |||
− | |||
− | |||
|| | || | ||
* We conduct workshops using '''spoken''' '''tutorials''' and give certificates | * We conduct workshops using '''spoken''' '''tutorials''' and give certificates | ||
* For more details, please contact us | * For more details, please contact us | ||
− | |||
|- | |- |
Latest revision as of 12:52, 6 December 2022
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. |