SlideShare a Scribd company logo
Lower triangular sums
Objectives. Learn to write lower triangular sums (starting with the index 1) in various
manners: by rows, by columns and by diagonals.
Requirements. MATLAB, GNU Octave, Wolfram Mathematica or another program-
ming language working with matrices and starting indices by 1.
Lower triangular summing by rows
1. Consider the sum corresponding to the picture. We are going to write in a short form
the sum of all nodes in the order indicated by arrows.
k
j
j=1
j=2
j=3
j=4
k=1 k=2 k=3 k=4
a1,1
a2,1 a2,2
a3,1 a3,2 a3,3
a4,1 a4,2 a4,3 a4,4
First write all summands in the explicit form (joining summands by rows):
S = a1,1 + a2,1 + a2,2 + + .
Rewrite each one of the little sums using the symbol :
S =
1
k=1
a1,k +
2
k=1
a2,k + + .
Note that all summands have the same form. Pass to a double sum:
S =
j= k=
aj,k.
Lower triangular sums, page 1 of 7
2. Program (summing by rows the entries of a lower triangular matrix). Write
a simple program that creates a random matrix and sums all its entries row by row. Here
is an example of such a program in GNU Octave (substitute ??? by apropiate expressions):
A = tril(1 + round(8 * rand(4, 4)));
disp(A);
s = 0;
for j = 1 : 4
for k = ??? : ???
s = s + A(j, k);
endfor
endfor
disp("My answer:"); disp(s);
disp("Correct answer:"); disp(sum(sum(A)));
3. Lower triangular summing by rows. Generalize the formula to the case of a n×n
matrix:
S =
j= k=
.
Lower triangular sums, page 2 of 7
Lower triangular summing by columns
4. Write the sum corresponding to the picture. Now we are summing by columns.
k
j
j=1
j=2
j=3
j=4
k=1 k=2 k=3 k=4
a1,1
a2,1 a2,2
a3,1 a3,2 a3,3
a4,1 a4,2 a4,3 a4,4
First write all summands in the explicit form (joining them by columns):
S = a1,1 + a2,1 + a3,1 + a4,1 + + + .
Rewrite each one of the little sums using the symbol :
S =
4
j=1
aj,1 + + + .
Note that all summands have the same form. Pass to a double sum:
S =
k= j=
aj,k.
5. Write a program that creates a random lower triangular matrix and sums its entries
by columns.
Lower triangular sums, page 3 of 7
Diagonals of a lower triangular matrix
6. Calculate the difference d := j − k for each entry aj,k of the following lower triangular
matrix:
k
j
j=1
j=2
j=3
j=4
k=1 k=2 k=3 k=4
a1,1
d =
a2,1
d =
a2,2
d =
a3,1
d =
a3,2
d =
a3,3
d =
a4,1
d =
a4,2
d =
a4,3
d =
a4,4
d =
The entries satisfying j = k form the main diagonal (or the zeroth diagonal) of the matrix;
the entries satisfying j − k = 1 are on the first diagonal, and so on.
7. If aj,k belongs to the second diagonal, then j can be expressed through k in the
following manner:
j =
?
.
8. Fix some d ∈ {0, 1, 2, 3}. If aj,k is on the diagonal with index d, then j can be expressed
through k and d in the following manner:
j =
?
.
Lower triangular sums, page 4 of 7
Lower triangular summing by diagonals
9. Write the sum corresponding to the picture. Now we are summing by diagonals.
k
j
j=1
j=2
j=3
j=4
k=1 k=2 k=3 k=4
a1,1
a2,1 a2,2
a3,1 a3,2 a3,3
a4,1 a4,2 a4,3 a4,4
First write all summands in the explicit form (joining them by diagonals):
S = a1,1 + a2,2 + a3,3 + a4,4 + + + .
In each group the first index (“j”) can be expressed through the second (“k”) by a simple
rule, so we can avoid j:
S =
4
k=1
ak,k +
k= a?,k
+
k=
+
k=
.
The first sum corresponds to d = 0, the second to d = 1, and so on:
S =
d= k=
.
Lower triangular sums, page 5 of 7
Double lower triangular sum and formal changes of variables
10. Lower triangular summing by rows (recall). Recall the general formula for the
lower triangular sum (n × n case) in which the terms are collected by rows:
S =
j= k=
aj,k. (1)
11. Summing by columns via an interchange of variables. Write two double
inequalities that must satisfy j and k:
?
≤ j ≤
?
,
?
≤ k ≤
?
.
Separate these two double inequalities in four simple inequalities:
j ≥
?
, j ≤
?
, k ≥
?
, k ≤
?
.
What is the maximum value (independent on j) that can take k?
What is the minimum value (independent on j) that can take k?
In other words, what are global limits of k?
Find the minimum and maximum values of k (independent on j):
?
≤ k ≤
?
.
For each k fixed, find restrictions on j:
?
≤ j ≤
?
.
Rewrite the sum S:
S =
k= j=
aj,k.
Lower triangular sums, page 6 of 7
12. Summing by diagonals via a formal change of variables. Write 4 inequalities
that satisfy j and k in the sum (1):
j ≥
?
, j ≤
?
, k ≥
?
, k ≤
?
.
Find restrictions that satisfy the difference d:
?
≤ d ≤
?
Express j through d and k:
j =
?
.
Substitute this expression into the equalities with j, then solve them for k (treat d as a
parameter):
Rewrite the sum S as a double sum over d and k:
S =
d= k=
a?,k
.
Lower triangular sums, page 7 of 7

More Related Content

What's hot

Paper no. 4
Paper no. 4Paper no. 4
Paper no. 4
Rhea Mae Esmaña
 
Catalan number presentation2
Catalan number presentation2Catalan number presentation2
Catalan number presentation2
Pai Sukanya Suksak
 
PMR Form 3 Mathematics Algebraic Fractions
PMR Form 3 Mathematics Algebraic FractionsPMR Form 3 Mathematics Algebraic Fractions
PMR Form 3 Mathematics Algebraic Fractions
Sook Yen Wong
 
02 linear algebra
02 linear algebra02 linear algebra
02 linear algebra
Ronald Teo
 
IIT JEE Maths 2000
IIT JEE Maths   2000IIT JEE Maths   2000
IIT JEE Maths 2000
Vasista Vinuthan
 
Hprec2 4
Hprec2 4Hprec2 4
Hprec2 4
stevenhbills
 
Applications of Linear Algebra
Applications of Linear AlgebraApplications of Linear Algebra
Applications of Linear Algebra
Naveenchandra Halemani
 
4
44
Lesson 1 imaginary and complex numbers p1 8
Lesson 1 imaginary and complex numbers p1 8Lesson 1 imaginary and complex numbers p1 8
Lesson 1 imaginary and complex numbers p1 8
jenniech
 
complex numbers 1
complex numbers 1complex numbers 1
complex numbers 1
youmarks
 
IIT JEE Maths 1999
IIT JEE Maths   1999IIT JEE Maths   1999
IIT JEE Maths 1999
Vasista Vinuthan
 
Complex numbers And Quadratic Equations
Complex numbers And Quadratic EquationsComplex numbers And Quadratic Equations
Complex numbers And Quadratic Equations
Deepanshu Chowdhary
 
Expresiones algebraicas
Expresiones algebraicasExpresiones algebraicas
Expresiones algebraicas
GenesisPerazaSequera
 
1.2 Systems of Linear Equations
1.2 Systems of Linear Equations1.2 Systems of Linear Equations
1.2 Systems of Linear Equations
smiller5
 
Class 11 maths support material
Class 11 maths support materialClass 11 maths support material
Class 11 maths support material
nitishguptamaps
 
1631 the binomial theorem
1631 the binomial theorem1631 the binomial theorem
1631 the binomial theorem
Dr Fereidoun Dejahang
 
Day 03
Day 03Day 03
Takue
TakueTakue

What's hot (18)

Paper no. 4
Paper no. 4Paper no. 4
Paper no. 4
 
Catalan number presentation2
Catalan number presentation2Catalan number presentation2
Catalan number presentation2
 
PMR Form 3 Mathematics Algebraic Fractions
PMR Form 3 Mathematics Algebraic FractionsPMR Form 3 Mathematics Algebraic Fractions
PMR Form 3 Mathematics Algebraic Fractions
 
02 linear algebra
02 linear algebra02 linear algebra
02 linear algebra
 
IIT JEE Maths 2000
IIT JEE Maths   2000IIT JEE Maths   2000
IIT JEE Maths 2000
 
Hprec2 4
Hprec2 4Hprec2 4
Hprec2 4
 
Applications of Linear Algebra
Applications of Linear AlgebraApplications of Linear Algebra
Applications of Linear Algebra
 
4
44
4
 
Lesson 1 imaginary and complex numbers p1 8
Lesson 1 imaginary and complex numbers p1 8Lesson 1 imaginary and complex numbers p1 8
Lesson 1 imaginary and complex numbers p1 8
 
complex numbers 1
complex numbers 1complex numbers 1
complex numbers 1
 
IIT JEE Maths 1999
IIT JEE Maths   1999IIT JEE Maths   1999
IIT JEE Maths 1999
 
Complex numbers And Quadratic Equations
Complex numbers And Quadratic EquationsComplex numbers And Quadratic Equations
Complex numbers And Quadratic Equations
 
Expresiones algebraicas
Expresiones algebraicasExpresiones algebraicas
Expresiones algebraicas
 
1.2 Systems of Linear Equations
1.2 Systems of Linear Equations1.2 Systems of Linear Equations
1.2 Systems of Linear Equations
 
Class 11 maths support material
Class 11 maths support materialClass 11 maths support material
Class 11 maths support material
 
1631 the binomial theorem
1631 the binomial theorem1631 the binomial theorem
1631 the binomial theorem
 
Day 03
Day 03Day 03
Day 03
 
Takue
TakueTakue
Takue
 

Viewers also liked

my trip to ecudador
my trip to ecudadormy trip to ecudador
my trip to ecudador
kristenfisher2906
 
Installing license server
Installing license serverInstalling license server
Installing license server
Kang YAyan
 
Mobile Applications for Business
Mobile Applications for BusinessMobile Applications for Business
Mobile Applications for BusinesseMobiApp
 
The ilex
The ilexThe ilex
The ilex
hor265
 
Cmac final report
Cmac final reportCmac final report
Cmac final report
DhaarnaChopra
 
infra-as-code
infra-as-codeinfra-as-code
infra-as-code
Itamar Hassin
 
Presentación informe de gestion l2013
Presentación informe de gestion l2013Presentación informe de gestion l2013
Presentación informe de gestion l2013
sarebravo
 
Sap gui scripting api with guixt
Sap gui scripting api with guixtSap gui scripting api with guixt
Sap gui scripting api with guixt
Kang YAyan
 
Modern UX, UI, and front-end tools
Modern UX, UI, and front-end toolsModern UX, UI, and front-end tools
Modern UX, UI, and front-end tools
Alan Roy
 
Developing Listening and Speaking Skills with Technology
Developing Listening and Speaking Skills with TechnologyDeveloping Listening and Speaking Skills with Technology
Developing Listening and Speaking Skills with Technology
Fer De Vega
 
Monitor-Driven Development Using Ansible
Monitor-Driven Development Using AnsibleMonitor-Driven Development Using Ansible
Monitor-Driven Development Using Ansible
Itamar Hassin
 
Embedded software development using BDD
Embedded software development using BDDEmbedded software development using BDD
Embedded software development using BDD
Itamar Hassin
 
Mobile Applications for Restaurants
Mobile Applications for RestaurantsMobile Applications for Restaurants
Mobile Applications for RestaurantseMobiApp
 
Let start with GUIXT
Let start with GUIXTLet start with GUIXT
Let start with GUIXT
Kang YAyan
 

Viewers also liked (15)

my trip to ecudador
my trip to ecudadormy trip to ecudador
my trip to ecudador
 
Digital Footprint
Digital FootprintDigital Footprint
Digital Footprint
 
Installing license server
Installing license serverInstalling license server
Installing license server
 
Mobile Applications for Business
Mobile Applications for BusinessMobile Applications for Business
Mobile Applications for Business
 
The ilex
The ilexThe ilex
The ilex
 
Cmac final report
Cmac final reportCmac final report
Cmac final report
 
infra-as-code
infra-as-codeinfra-as-code
infra-as-code
 
Presentación informe de gestion l2013
Presentación informe de gestion l2013Presentación informe de gestion l2013
Presentación informe de gestion l2013
 
Sap gui scripting api with guixt
Sap gui scripting api with guixtSap gui scripting api with guixt
Sap gui scripting api with guixt
 
Modern UX, UI, and front-end tools
Modern UX, UI, and front-end toolsModern UX, UI, and front-end tools
Modern UX, UI, and front-end tools
 
Developing Listening and Speaking Skills with Technology
Developing Listening and Speaking Skills with TechnologyDeveloping Listening and Speaking Skills with Technology
Developing Listening and Speaking Skills with Technology
 
Monitor-Driven Development Using Ansible
Monitor-Driven Development Using AnsibleMonitor-Driven Development Using Ansible
Monitor-Driven Development Using Ansible
 
Embedded software development using BDD
Embedded software development using BDDEmbedded software development using BDD
Embedded software development using BDD
 
Mobile Applications for Restaurants
Mobile Applications for RestaurantsMobile Applications for Restaurants
Mobile Applications for Restaurants
 
Let start with GUIXT
Let start with GUIXTLet start with GUIXT
Let start with GUIXT
 

Similar to Lower triangular sums_1

Jacobi iterative method
Jacobi iterative methodJacobi iterative method
Jacobi iterative method
Luckshay Batra
 
Precalculus 1 chapter 1
Precalculus 1 chapter 1Precalculus 1 chapter 1
Precalculus 1 chapter 1
oreves
 
Linear Equations in Two Variables.pptx
Linear Equations in Two Variables.pptxLinear Equations in Two Variables.pptx
Linear Equations in Two Variables.pptx
Camiling Catholic School
 
Basic%20Cal%20Final.docx.docx
Basic%20Cal%20Final.docx.docxBasic%20Cal%20Final.docx.docx
Basic%20Cal%20Final.docx.docx
SalwaAbdulkarim1
 
2021 noveno guia en casa matematicas periodo 3
2021 noveno guia en casa matematicas periodo 32021 noveno guia en casa matematicas periodo 3
2021 noveno guia en casa matematicas periodo 3
Ximena Zuluaga
 
Quadratic equations
Quadratic equationsQuadratic equations
Quadratic equations
Mervin Dayrit
 
Ib math slsummerassignment2014
Ib math slsummerassignment2014Ib math slsummerassignment2014
Ib math slsummerassignment2014
Michelle Eff
 
Applied Algorithms and Structures week999
Applied Algorithms and Structures week999Applied Algorithms and Structures week999
Applied Algorithms and Structures week999
fashiontrendzz20
 
Dynamic1
Dynamic1Dynamic1
Dynamic1
MyAlome
 
Index notation
Index notationIndex notation
Index notation
MERTEKMEN
 
Stochastic Processes Homework Help
Stochastic Processes Homework HelpStochastic Processes Homework Help
Stochastic Processes Homework Help
Excel Homework Help
 
1.  Write an equation in standard form of the parabola that has th.docx
1.  Write an equation in standard form of the parabola that has th.docx1.  Write an equation in standard form of the parabola that has th.docx
1.  Write an equation in standard form of the parabola that has th.docx
KiyokoSlagleis
 
Nbhm m. a. and m.sc. scholarship test 2007
Nbhm m. a. and m.sc. scholarship test 2007 Nbhm m. a. and m.sc. scholarship test 2007
Nbhm m. a. and m.sc. scholarship test 2007
MD Kutubuddin Sardar
 
Proof of Kraft Mc-Millan theorem - nguyen vu hung
Proof of Kraft Mc-Millan theorem - nguyen vu hungProof of Kraft Mc-Millan theorem - nguyen vu hung
Proof of Kraft Mc-Millan theorem - nguyen vu hung
Vu Hung Nguyen
 
Cse41
Cse41Cse41
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
1. Graph the exponential function by hand. Identify any asymptotes.docx
1. Graph the exponential function by hand. Identify any asymptotes.docx1. Graph the exponential function by hand. Identify any asymptotes.docx
1. Graph the exponential function by hand. Identify any asymptotes.docx
jackiewalcutt
 
Algebra part 2
Algebra part 2Algebra part 2
Algebra part 2
Nadrah Afiati
 
Algebra
AlgebraAlgebra
Algebra
Nadrah Afiati
 
Dynamic Programming.pptx
Dynamic Programming.pptxDynamic Programming.pptx
Dynamic Programming.pptx
Thanga Ramya S
 

Similar to Lower triangular sums_1 (20)

Jacobi iterative method
Jacobi iterative methodJacobi iterative method
Jacobi iterative method
 
Precalculus 1 chapter 1
Precalculus 1 chapter 1Precalculus 1 chapter 1
Precalculus 1 chapter 1
 
Linear Equations in Two Variables.pptx
Linear Equations in Two Variables.pptxLinear Equations in Two Variables.pptx
Linear Equations in Two Variables.pptx
 
Basic%20Cal%20Final.docx.docx
Basic%20Cal%20Final.docx.docxBasic%20Cal%20Final.docx.docx
Basic%20Cal%20Final.docx.docx
 
2021 noveno guia en casa matematicas periodo 3
2021 noveno guia en casa matematicas periodo 32021 noveno guia en casa matematicas periodo 3
2021 noveno guia en casa matematicas periodo 3
 
Quadratic equations
Quadratic equationsQuadratic equations
Quadratic equations
 
Ib math slsummerassignment2014
Ib math slsummerassignment2014Ib math slsummerassignment2014
Ib math slsummerassignment2014
 
Applied Algorithms and Structures week999
Applied Algorithms and Structures week999Applied Algorithms and Structures week999
Applied Algorithms and Structures week999
 
Dynamic1
Dynamic1Dynamic1
Dynamic1
 
Index notation
Index notationIndex notation
Index notation
 
Stochastic Processes Homework Help
Stochastic Processes Homework HelpStochastic Processes Homework Help
Stochastic Processes Homework Help
 
1.  Write an equation in standard form of the parabola that has th.docx
1.  Write an equation in standard form of the parabola that has th.docx1.  Write an equation in standard form of the parabola that has th.docx
1.  Write an equation in standard form of the parabola that has th.docx
 
Nbhm m. a. and m.sc. scholarship test 2007
Nbhm m. a. and m.sc. scholarship test 2007 Nbhm m. a. and m.sc. scholarship test 2007
Nbhm m. a. and m.sc. scholarship test 2007
 
Proof of Kraft Mc-Millan theorem - nguyen vu hung
Proof of Kraft Mc-Millan theorem - nguyen vu hungProof of Kraft Mc-Millan theorem - nguyen vu hung
Proof of Kraft Mc-Millan theorem - nguyen vu hung
 
Cse41
Cse41Cse41
Cse41
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
1. Graph the exponential function by hand. Identify any asymptotes.docx
1. Graph the exponential function by hand. Identify any asymptotes.docx1. Graph the exponential function by hand. Identify any asymptotes.docx
1. Graph the exponential function by hand. Identify any asymptotes.docx
 
Algebra part 2
Algebra part 2Algebra part 2
Algebra part 2
 
Algebra
AlgebraAlgebra
Algebra
 
Dynamic Programming.pptx
Dynamic Programming.pptxDynamic Programming.pptx
Dynamic Programming.pptx
 

Recently uploaded

How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 

Recently uploaded (20)

How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 

Lower triangular sums_1

  • 1. Lower triangular sums Objectives. Learn to write lower triangular sums (starting with the index 1) in various manners: by rows, by columns and by diagonals. Requirements. MATLAB, GNU Octave, Wolfram Mathematica or another program- ming language working with matrices and starting indices by 1. Lower triangular summing by rows 1. Consider the sum corresponding to the picture. We are going to write in a short form the sum of all nodes in the order indicated by arrows. k j j=1 j=2 j=3 j=4 k=1 k=2 k=3 k=4 a1,1 a2,1 a2,2 a3,1 a3,2 a3,3 a4,1 a4,2 a4,3 a4,4 First write all summands in the explicit form (joining summands by rows): S = a1,1 + a2,1 + a2,2 + + . Rewrite each one of the little sums using the symbol : S = 1 k=1 a1,k + 2 k=1 a2,k + + . Note that all summands have the same form. Pass to a double sum: S = j= k= aj,k. Lower triangular sums, page 1 of 7
  • 2. 2. Program (summing by rows the entries of a lower triangular matrix). Write a simple program that creates a random matrix and sums all its entries row by row. Here is an example of such a program in GNU Octave (substitute ??? by apropiate expressions): A = tril(1 + round(8 * rand(4, 4))); disp(A); s = 0; for j = 1 : 4 for k = ??? : ??? s = s + A(j, k); endfor endfor disp("My answer:"); disp(s); disp("Correct answer:"); disp(sum(sum(A))); 3. Lower triangular summing by rows. Generalize the formula to the case of a n×n matrix: S = j= k= . Lower triangular sums, page 2 of 7
  • 3. Lower triangular summing by columns 4. Write the sum corresponding to the picture. Now we are summing by columns. k j j=1 j=2 j=3 j=4 k=1 k=2 k=3 k=4 a1,1 a2,1 a2,2 a3,1 a3,2 a3,3 a4,1 a4,2 a4,3 a4,4 First write all summands in the explicit form (joining them by columns): S = a1,1 + a2,1 + a3,1 + a4,1 + + + . Rewrite each one of the little sums using the symbol : S = 4 j=1 aj,1 + + + . Note that all summands have the same form. Pass to a double sum: S = k= j= aj,k. 5. Write a program that creates a random lower triangular matrix and sums its entries by columns. Lower triangular sums, page 3 of 7
  • 4. Diagonals of a lower triangular matrix 6. Calculate the difference d := j − k for each entry aj,k of the following lower triangular matrix: k j j=1 j=2 j=3 j=4 k=1 k=2 k=3 k=4 a1,1 d = a2,1 d = a2,2 d = a3,1 d = a3,2 d = a3,3 d = a4,1 d = a4,2 d = a4,3 d = a4,4 d = The entries satisfying j = k form the main diagonal (or the zeroth diagonal) of the matrix; the entries satisfying j − k = 1 are on the first diagonal, and so on. 7. If aj,k belongs to the second diagonal, then j can be expressed through k in the following manner: j = ? . 8. Fix some d ∈ {0, 1, 2, 3}. If aj,k is on the diagonal with index d, then j can be expressed through k and d in the following manner: j = ? . Lower triangular sums, page 4 of 7
  • 5. Lower triangular summing by diagonals 9. Write the sum corresponding to the picture. Now we are summing by diagonals. k j j=1 j=2 j=3 j=4 k=1 k=2 k=3 k=4 a1,1 a2,1 a2,2 a3,1 a3,2 a3,3 a4,1 a4,2 a4,3 a4,4 First write all summands in the explicit form (joining them by diagonals): S = a1,1 + a2,2 + a3,3 + a4,4 + + + . In each group the first index (“j”) can be expressed through the second (“k”) by a simple rule, so we can avoid j: S = 4 k=1 ak,k + k= a?,k + k= + k= . The first sum corresponds to d = 0, the second to d = 1, and so on: S = d= k= . Lower triangular sums, page 5 of 7
  • 6. Double lower triangular sum and formal changes of variables 10. Lower triangular summing by rows (recall). Recall the general formula for the lower triangular sum (n × n case) in which the terms are collected by rows: S = j= k= aj,k. (1) 11. Summing by columns via an interchange of variables. Write two double inequalities that must satisfy j and k: ? ≤ j ≤ ? , ? ≤ k ≤ ? . Separate these two double inequalities in four simple inequalities: j ≥ ? , j ≤ ? , k ≥ ? , k ≤ ? . What is the maximum value (independent on j) that can take k? What is the minimum value (independent on j) that can take k? In other words, what are global limits of k? Find the minimum and maximum values of k (independent on j): ? ≤ k ≤ ? . For each k fixed, find restrictions on j: ? ≤ j ≤ ? . Rewrite the sum S: S = k= j= aj,k. Lower triangular sums, page 6 of 7
  • 7. 12. Summing by diagonals via a formal change of variables. Write 4 inequalities that satisfy j and k in the sum (1): j ≥ ? , j ≤ ? , k ≥ ? , k ≤ ? . Find restrictions that satisfy the difference d: ? ≤ d ≤ ? Express j through d and k: j = ? . Substitute this expression into the equalities with j, then solve them for k (treat d as a parameter): Rewrite the sum S as a double sum over d and k: S = d= k= a?,k . Lower triangular sums, page 7 of 7