LibreOffice-Suite-Math-6.3/C2/Sets,-Factorials-and-Cross-Referencing/English

From Script | Spoken-Tutorial
Jump to: navigation, search

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:
  • Write Set operations
  • Write Factorials
  • Cross reference the formulae using numbers.
Slide:

System Requirements

This tutorial is recorded using:
  • Ubuntu Linux OS version 18.04 and
  • LibreOffice Suite version 6.3.5
Slide:

Prerequisites

https:\\spoken-tutorial.org

To follow this tutorial, learner should be familiar with Math interface.


If not please access the relevant tutorials on this website.

Slide:

Code Files

  • The files used in the tutorial are provided in the Code files link.
  • Please download and extract the files
  • Make a copy and use them for practising
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.


Click Insert >> Object >> Formula.

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.


Set is a collection of distinct elements.

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 A has 5 elements.

Set B has 4 elements.

Set C and Set D have 2 elements each.

In FEW, point the mouse over the markup above.


Point to the sets.

To enclose the sets in brackets we have used the markup lbrace and rbrace.


Now we will write markup for set operations.

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 mark up for B union C is the same as we read it.


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.

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.


The markup for an intersection operation is same as we read it.


The intersection includes only the common elements from both the sets.


So the result of B intersection D is 6.

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,

  • Check if A union ( B union C) is equal to (A union B) union C.
  • Subtract set B from set A and write the result.
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.


There is another way to call the Math object into the Writer window.

Type fn and press F3


Point mouse over E = mc squared in Writer gray box.

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.


We can do this by designating numbers to the formulae that we write.

Double click on E = mc squared in Writer gray box.


Click Format menu >> Font size.

Increase size to 18 pt.


We will learn how to do this later.


For now, double click on the Math object to open the interface.

Let us change the Font size to 18 point.

In FEW, overwrite existing formulas.


In FEW, point mouse over ‘fact’ word in the last line


Press Ctrl + A to select all the text.

Copy and paste:

fact 5 = 5 times 4 times 3 times 2 times 1 = 120


Point to the preview window.

Let us now write an example to show a factorial.


The markup ‘fact’ represents the factorial symbol.


Press Ctrl and A keys to select the existing text.


Type fact 5 = 5 times 4 times 3 times 2 times 1 = 120.


Five factorial is seen in the preview window.

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.


Press Ctrl + A to select all the text, >> copy and paste:

fact n ~=~ prod from k = 1 to n k newline


In FEW, point mouse over ‘prod’ word in the last line

Let’s overwrite the existing formula with the factorial definition.


n factorial is equal to product from k = 1 to n of k.


Notice the markup prod which denotes product.

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


In FEW, point mouse over ‘binom’ word in the last line

Type the markup as shown.


The factorial definition has two conditional formulae as shown on the screen.

Here the markup binom, helps to displays a vertical stack of two elements.


This helps in better alignment.

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:


Let us click on the Insert menu, and then on Cross-reference.

Point to the Fields window.

In the Fields window, click on Text , in the Type list


Click on first item in the Selection list.


Fields window opens.

In the Type list, select Text option.


In the Selection list choose the first item.

This denotes the first factorial formula we wrote.

Click Reference in the ‘Insert reference to’ list.


Click on Insert and click on Close button.

In the Insert reference to list choose Reference.


Click the Insert button at the bottom.

Then click the Close button to close the window.

Point mouse over (1)

Click on (1).


Point mouse over the formula numbered 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.


Let us summarize.

Slide:

Summary

In this tutorial we have learnt how to:
  • Write Set operations
  • Write Factorials and
  • Cross reference the formulae using numbers.
Slide:

Assignment

(n+2)!/n!


6!/(2!x4!)

Here is an assignment for you.


Open Math-assignment.odt file.

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

  • The video at the following link summarises the Spoken Tutorial project
  • Please download and watch it
Slide:


Spoken tutorial workshops

  • We conduct workshops using spoken tutorials and give certificates
  • For more details, please contact us
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.

Contributors and Content Editors

Madhurig, Nancyvarkey