Elementary mathematical and computational tools for electrical and computer engineers using MATLAB 2nd ed Edition Manassah download
Elementary mathematical and computational tools for electrical and computer engineers using MATLAB 2nd ed Edition Manassah download
https://ebookgate.com/product/elementary-mathematical-and-
computational-tools-for-electrical-and-computer-engineers-using-
matlab-2nd-ed-edition-manassah/
https://ebookgate.com/product/matlab-for-engineers-2nd-edition-
holly-moore/
https://ebookgate.com/product/analysis-and-design-of-control-
systems-using-matlab-2nd-ed-edition-dukkipati/
https://ebookgate.com/product/introduction-to-computational-
modeling-using-c-and-open-source-tools-garrido/
https://ebookgate.com/product/computational-colour-science-using-
matlab-1st-edition-professor-stephen-westland/
MATLAB for Control Engineers Katsuhiko Ogata
https://ebookgate.com/product/matlab-for-control-engineers-
katsuhiko-ogata/
https://ebookgate.com/product/essential-matlab-for-scientists-
and-engineers-second-edition-brian-hahn/
https://ebookgate.com/product/mathematical-tools-1st-ed-edition-
franklin-coyle/
https://ebookgate.com/product/mathematical-physics-applied-
mathematics-for-scientists-and-engineers-2nd-edition-bruce-r-
kusse/
https://ebookgate.com/product/matlab-for-control-system-
engineers-second-edition-dukkipati/
7425_C000.qxd 6/9/06 16:53 Page i
ELEMENTARY
MATHEMATICAL and
COMPUTATIONAL TOOLS
for ELECTRICAL and
COMPUTER ENGINEERS
USING MATLAB®
Second Edition
7425_C000.qxd 6/9/06 16:53 Page ii
7425_C000.qxd 6/9/06 16:53 Page iii
ELEMENTARY
MATHEMATICAL and
COMPUTATIONAL TOOLS
for ELECTRICAL and
COMPUTER ENGINEERS
USING MATLAB®
Second Edition
Jamal T. Manassah
MATLAB® is a trademark of The MathWorks, Inc. and is used with permission. The MathWorks does not
warrant the accuracy of the text or exercises in this book. This book’s use or discussion of MATLAB®
software or related products does not constitute endorsement or sponsorship by The MathWorks of a
particular pedagogical approach or particular use of the MATLAB® software.
CRC Press
Taylor & Francis Group
6000 Broken Sound Parkway NW, Suite 300
Boca Raton, FL 33487-2742
This book contains information obtained from authentic and highly regarded sources. Reprinted material
is quoted with permission, and sources are indicated. A wide variety of references are listed. Reasonable
efforts have been made to publish reliable data and information, but the author and the publisher cannot
assume responsibility for the validity of all materials or for the consequences of their use.
No part of this book may be reprinted, reproduced, transmitted, or utilized in any form by any electronic,
mechanical, or other means, now known or hereafter invented, including photocopying, microfilming,
and recording, or in any information storage or retrieval system, without written permission from the
publishers.
For permission to photocopy or use material electronically from this work, please access www.copyright.
com (http://www.copyright.com/) or contact the Copyright Clearance Center, Inc. (CCC) 222 Rosewood
Drive, Danvers, MA 01923, 978-750-8400. CCC is a not-for-profit organization that provides licenses and
registration for a variety of users. For organizations that have been granted a photocopy license by the
CCC, a separate system of payment has been arranged.
Trademark Notice: Product or corporate names may be trademarks or registered trademarks, and are
used only for identification and explanation without intent to infringe.
Manassah, Jamal T.
Elementary mathematical and computational tools for electrical and computer
engineers using MATLAB / Jamal T. Manassah. -- 2nd ed.
p. cm.
Includes bibliographical references and index.
ISBN-13: 978-0-8493-7425-8 (alk. paper)
ISBN-10: 0-8493-7425-1 (alk. paper)
1. Electric engineering--Mathematics. 2. Computer science--Mathematics. 3.
MATLAB. I. Title.
TK153.M362 2007
510.2’46213--dc22 2 006018608
Author
This book is mostly based on a series of notes for a primer course in electrical
and computer engineering that I taught at the City College of New York
School of Engineering. Each week, the class met for an hour of lecture and a
three-hour computer laboratory session where students were divided into
small groups of 12 to 15 students each. The students met in an informal learn-
ing community setting, a computer laboratory, where each student had the
exclusive use of a PC. The small size of the groups permitted a great deal of
individualized instruction, which was a key ingredient to cater successfully
to the needs of students with heterogeneous high school backgrounds.
A student usually takes this course in the second semester of his or her
freshman year. Typically, the student would have completed one semester of
college calculus, and would be enrolled in the second course of the college
calculus sequence and in the first course of the physics sequence for students
in the physical sciences and engineering.
My purpose in developing this book is to help bring the beginner engi-
neering student’s analytical and computational skills to a level of competency
that would permit him or her to participate, enjoy, and succeed in subsequent
electrical and computer engineering courses. My experience indicates that the
lack of mastery of fundamental quantitative tools is the main impediment to
a student’s progress in engineering studies.
The specific goals of this book are:
My experience indicates that you can achieve the above goals through the
following work habits that I usually recommend to my own students:
● Read carefully the material from this book that is assigned to you
by your instructor for the upcoming week, and make sure to solve
7425_C000.qxd 6/9/06 16:53 Page viii
In managing this course, I found it helpful for both students and instructors
to require each student to solve all problems in a bound notebook. The advan-
tage to the student is to have easy access to his or her previous work, personal
notes, and reminders that he or she made as the course progressed. The advan-
tage to the instructor is to enhance his or her ability to assess, more easily and
readily, an individual student’s progress as the semester progresses.
This book may be used for self-study by readers with perhaps a little more
mathematical maturity acquired through a second semester of college calcu-
lus. The advanced reader of this book who is familiar with numerical meth-
ods will note that, in some instances, I did not follow the canonical order for
the sequence of presentation of certain algorithms, thus sacrificing some opti-
mality in the structure of some of the elementary programs included. This
was necessitated by the goal I set for this book, which is to introduce both
analytical and computational tools simultaneously.
The sections of this book that are marked with asterisks include material
that I assigned as projects to students with either strong theoretical interest
or more mathematical maturity than a typical second semester freshman
student. Although incorporated in the text, they can be skipped in a first
reading. I hope that, by their inclusion, I will facilitate to the interested
reader a smooth transition to some new mathematical concepts and compu-
tational tools that are of particular interest to electrical engineers.
This text greatly benefited from course material previously prepared by
my colleagues in the departments of electrical engineering and computer
science at City College of the City University of New York, in particular,
P. Combettes, I. Gladkova, B. Gross, and F. Thau. They provided either the start-
ing point for my subsequent efforts in this course, or the peer critique for the
early versions of this manuscript. I owe them many thanks and, of course, do
not hold them responsible for any of the remaining imperfections in the text.
The preparation of this book also owes a lot to my students. Their ques-
tions and interest in the material contributed to many modifications in the
7425_C000.qxd 6/9/06 16:53 Page ix
order and in the presentation of the different chapters. Their desire for work-
ing out more applications led me to expand the scope of the examples and
exercises included in the text. I am grateful to all of them. I am also grateful
to Erwin Cohen, who introduced me to the fine team at CRC Press, and to
Jerry Papke whose stewardship of the project from start to end at CRC Press
was most supportive and pleasant. The editorial and production teams at
CRC in particular, Samar Haddad, the project editor, deserve credit for the
quality of the final product rendering. Naomi Fernandes and her colleagues
at The MathWorks Inc. kindly provided me with a copy of the new release
of MATLAB for which I am grateful.
I dedicate this book to Azza, Tala, and Nigh whose support and love
always made difficult tasks a lot easier.
Jamal T. Manassah
New York, January 2001
7425_C000.qxd 6/9/06 16:53 Page x
7425_C000.qxd 6/9/06 16:53 Page xi
Contents
6. Complex Numbers....................................................................................191
6.1 Introduction ..................................................................................191
6.2 The Basics ......................................................................................191
6.2.1 Addition ........................................................................192
6.2.2 Multiplication by a Real or Imaginary
Number ........................................................................193
6.2.3 Multiplication of Two Complex Numbers ..............193
6.3 Complex Conjugation and Division ........................................195
6.3.1 Application to Division ..............................................196
6.4 Polar Form of Complex Numbers ............................................197
6.4.1 New Insights into Multiplication and Division
of Complex Numbers ..................................................198
6.4.2 Roots of Complex Numbers ......................................200
6.4.3 The Function y ⫽ e j ....................................................201
6.5 Analytical Solutions of Constant Coefficients ODE ..............204
6.5.1 Transient Solutions ......................................................205
6.5.2 Solution in the Presence of a Source:
Green Function Technique ..........................................207
6.5.3 Steady-State Solutions ................................................210
6.5.4 Applications to Circuit Analysis ................................211
6.6 Phasors ..........................................................................................213
6.6.1 Phasor of Two Added Signals ....................................213
6.6.2 Total Phasor of Many Signals ....................................214
6.7 Interference and Diffraction of Electromagnetic Waves ........216
6.7.1 The Electromagnetic Wave ........................................216
6.7.2 Addition of Two Electromagnetic Waves ................217
6.7.3 Generalization to N-waves ........................................218
6.8 Solving ac Circuits with Phasors: The Impedance
Method ..........................................................................................220
6.8.1 RLC Circuit Phasor Analysis ......................................221
6.8.2 The Infinite LC Ladder ................................................222
6.9 Transfer Function for a Difference Equation with
Constant Coefficients ..................................................................224
6.10 MATLAB Commands Review ..................................................234
7. Vectors ........................................................................................................235
7.1 Vectors in Two Dimensions ........................................................235
7.1.1 Addition ........................................................................235
7.1.2 Multiplication of a Vector by a Real Number ..........235
7.1.3 Cartesian Representation ............................................236
7.1.4 MATLAB Representation of Vectors ........................238
7.2 Dot (or Scalar) Product ..............................................................239
7.2.1 MATLAB Representation of the Dot Product ..........241
7.3 Components, Direction Cosines, and Projections ..................243
7.3.1 Components ..................................................................243
7.3.2 Direction Cosines ........................................................243
7.3.3 Projections ....................................................................244
7425_C000.qxd 6/9/06 16:53 Page xix
8. Matrices ......................................................................................................273
8.1 Setting Up Matrices ....................................................................273
8.1.1 Creating a Matrix by Keying in the Elements ........273
8.1.2 Retrieving Special Matrices from the
MATLAB Library ........................................................275
8.1.3 Functional Construction of Matrices ........................277
8.2 Adding Matrices ..........................................................................280
8.3 Multiplying a Matrix by a Scalar ..............................................280
8.4 Multiplying Matrices ..................................................................281
8.5 Inverse of a Matrix ......................................................................282
8.6 Solving a System of Linear Equations ......................................285
8.7 Application of Matrix Methods ................................................288
8.7.1 dc Circuit Analysis ......................................................288
8.7.2 dc Circuit Design ........................................................289
8.7.3 ac Circuit Analysis ......................................................290
8.7.4 Accuracy of a Truncated Taylor Series ....................291
8.7.5 Reconstructing a Function from Its Fourier
Components ..................................................................294
8.7.6 Interpolating the Coefficients of an (n ⫺ 1)-
Degree Polynomial from n Points ............................296
8.7.7 Least-Squares Fit of Data ............................................297
8.7.8 Numerical Solution of Fredholm Equations ............298
8.8 Eigenvalues and Eigenvectors ..................................................299
8.8.1 Finding the Eigenvalues of a Matrix ........................299
8.8.2 Finding the Eigenvalues and Eigenvectors
Using MATLAB ............................................................302
8.9 The Cayley–Hamilton and Other Analytical Techniques ......305
8.9.1 Cayley–Hamilton Theorem ........................................305
dX
8.9.2 Solution of Equations of the Form ⫽ AX ..........306
dt
8.9.3 Solution of Equations of the Form
dX
= AX ⫹ B(t)..............................................................308
dt
7425_C000.qxd 6/9/06 16:53 Page xx
9. Transformations ........................................................................................343
9.1 Two-Dimensional Geometric Transformations ......................343
9.1.1 Construction of Polygonal Figures ............................343
9.1.2 Inversion about the Origin and Reflection
about the Coordinate Axes ........................................344
9.1.3 Rotation around the Origin ........................................345
9.1.4 Scaling ............................................................................346
9.1.5 Translation ....................................................................347
9.2 Homogeneous Coordinates ........................................................347
9.3 Manipulation of 2-D Images ......................................................351
9.3.1 Geometrical Manipulation of Images ......................351
9.3.2 Digital Image Processing ............................................352
9.3.3 Encrypting an Image ..................................................353
9.4 Lorentz Transformation ..............................................................355
9.4.1 Space–Time Coordinates ............................................355
9.4.2 Addition Theorem for Velocities ..............................357
9.5 Iterative Constructs ....................................................................358
9.5.1 The Koch Curve ..........................................................358
9.5.2 The Serpenski Curve ..................................................361
9.6 MATLAB Commands Review ..................................................363
Index......................................................................................................................447
7425_C000.qxd 6/9/06 16:53 Page xxii
7425_C001.qxd 9/2/06 12:03 PM Page 1
1
Starting with MATLAB and Exploring Its
Graphics Capabilities
MATLAB can be thought of as a library of programs that will prove very use-
ful in solving many electrical engineering computational problems. MATLAB
is an ideal tool for numerically assisting you in obtaining answers, which is a
major goal of engineering analysis and design. This program is very useful in
research on circuit analysis, device design, signal processing, filter design,
control system analysis, antenna design, microwave engineering, photonics
engineering, computer engineering, and every other subfields of electrical
engineering. It is also a powerful graphic and visualization tool of beneficial
use for both quantitative courses and in your future career. In this chapter, we
start our exploration of MATLAB; in subsequent chapters, we will add to our
knowledge about this powerful tool of the modern engineer.
>>clear all
1
7425_C001.qxd 9/2/06 12:03 PM Page 2
This command removes all variables from the workspace. Also type and
enter (we shall henceforth say just enter):
>>clf
This command creates a graph window (if one does not already exist) or
clears an existing graph window. The command figure creates a new fig-
ure window, leaving the existing ones unaltered.
The command quit stops MATLAB.
Because it is not the purpose of this text to explain the function of every
MATLAB command, how would you get information on a particular syntax?
The MATLAB program has extensive help documentation available with
simple commands. For example, if you wanted help on a function called
roots (we will use this function often), you would type help roots.
Note that the help facility cross-references other functions that may have
related uses. This requires that you know the function name. If you want an
idea of the available help files in MATLAB, type help. This gives you a list
of topics included in MATLAB.
To get help on a particular topic such as elementary matrices and matrix
manipulation, type matlab\elmat. This gives you a list of all relevant
functions pertaining to that area. Now you may type help for any function
listed there. For example, try help size.
EXAMPLE 1.1
29.7025
>> ceil(7.58)
ans =
8
>> 2*sin(pi/4)
ans =
1.4142
The % symbol is used so that one can type comments in a program. (Comments
following the % symbol are ignored by the MATLAB interpreter.) Then enter:
The last command gave twice the sine of /4. Note that the argument of the
function was enclosed in parentheses directly following the name of the
function. Therefore, if you wanted to find sin3(x), the proper MATLAB syn-
tax would be
>>sin(pi/4)^3
To facilitate its widespread use, MATLAB has all the standard elementary
mathematical functions as built-in functions. Type help elfun to obtain a
listing of these functions. Remember that this is just a subset of the available
functions in the MATLAB library.
>>help elfun
The response to the last command will give you a list of these elementary
functions, some of which may be new to you, but all of which will be used
in your future engineering studies. Many of these functions will also be used
in later chapters of this book.
In the following table, the MATLAB expressions for the most common
mathematical functions are given:
sqrt(x) squareroot 兹x
exp(x) exponential exp(x) ex
log(x) natural logarithm ln(x)
log10(x) base10 logarithm log(x) (ln(x)/ln(10))
sin(x) sine sin(x)
cos(x) cosine cos(x)
sec(x) secant sec(x)
tan(x) tangent tan(x) (sin(x)/cos(x))
cot(x) cotangent cot(x) (1/tan(x))
asin(x) inverse sine sin1(x) arcsin(x)
acos(x) inverse cosine cos1(x)
asec(x) inverse secant sec1(x)
atan(x) inverse tangent tan1(x)
acot(x) inverse cotangent cot1(x)
sinh(x) hyperbolic sine sinh(x) (ex ex)/2
cosh(x) hyperbolic cosine cosh(x) (ex ex)/2
sech(x) hyperbolic secant sech(x) 1/cosh(x)
tanh(x) hyperbolic tangent tanh(x) sinh(x)/cosh(x)
coth(x) hyperbolic cotangent coth(x) 1/tanh(x)
asinh(x) inverse hyperbolic sine (
sinh1 ( x) ln x x 2 1 )
where x
1 x 1
acoth(x) inverse hyperbolic cotangent coth1 ( x)
ln
2 x 1
where x 1 or x 1
7425_C001.qxd 9/2/06 12:03 PM Page 5
EXAMPLE 1.2
If we desire at any point to know the list of the current variables in a MATLAB
session, we enter:
>>who
Note on variable names: Variable names must begin with a letter, contains
letters, digits, and underscore characters, and must contain less than 32 char-
acters. MATLAB is case-sensitive.
Question: From the above, can you deduce the order in which MATLAB
performs the basic algebraic operations?
IN-CLASS EXERCISE
Pb. 1.1 Using the values, a 0.875 and b 1.5786, find the values of the fol-
lowing expressions (give your answers in the engineering short format):
h sin(a) sin3/2(b)
j a1/3 b3/7
k (sin1(a/b))2/3
l sinh(a) ab
>>help plot
>>help plot3
EXAMPLE 1.3
Plot the point P(3, 4). Mark this point with a red asterisk.
Solution: Enter the following:
>> x1=3;
y1=4;
plot(x1,y1,'*r') ⵧ
Note that the semicolon is used in the above commands to suppress the
echoing of the values of the inputs. The '*r' is used to mark the location and
the color of the point that we are plotting.
The symbols for the most common markers and colors for display in
MATLAB plot-functions are:
Circle o Blue b
Cross x Cyan c
Diamond d Green g
Dot ⴢ Magenta m
Pentagram p Yellow y
Plus sign ⴙ Red r
Square s White w
Star * Black k
EXAMPLE 1.4
Plot the second point, R(2.5, 4), on the graph while keeping point P of the
previous example on the same graph. Mark the new point with a small green
circle.
NOTES
1. There is no limit to the number of plot commands you can type
before the hold is turned off.
2. An alternative method for viewing multiple points on the same
graph is available: we may instead, following the entering of the
values of x1, y1, x2, y2, enter:
>>plot(x1,y1,'*r',x2,y2,'og')
Make sure that the minimum axis value is less than the maximum axis value
or an error will result.
In addition to being able to adjust the scale of a graph, you can also change
the aspect ratio of the graphics window. This is useful when you wish to see
the correct x to y scaling. For example, without this command, a circle will look
more like an ellipse, even if we have chosen ymax ymin xmax xmin.
EXAMPLE 1.5
Plot the vertices of the square, formed by the points (1, 1), (1, 1),
(1, 1), (1, 1), keeping the same aspect ratio as in a graph paper, i.e., 1.
>>x1=-1;y1=-1;
>>x2=1;y2=-1;
>>x3=-1;y3=1;
>>x4=1;y4=1;
>>plot(x1,y1,'o',x2,y2,'o',x3,y3,'o',x4,y4,'o')
>>axis([-2 2 -2 2])
>>axis square %makes the aspect ratio 1 ⵧ
Note that prior to the axis square command, the square looked like a rect-
angle. If you want to go back to the default aspect ratio, type axis normal.
In specific instances, you may need to choose other than the default
tick marks chosen by MATLAB, you can achieve this by adding the
7425_C001.qxd 9/2/06 12:03 PM Page 9
following command:
set(gca,'Xtick',[xmin:dx:xmax],'Ytick',[ymin:dy:ymax])
Here gca stands for get current axes, and dx and dy are respectively the spac-
ings between tick marks that you desire in the x- and y-directions.
You can also make the graph easier to read, by using the command:
>>grid
>>x1=-1;y1=-1;x2=1;y2=-1;x3=-1;y3=1;x4=1;y4=1;
>>plot(x1,y1,'o',x2,y2,'o',x3,y3,'o',x4,y4,'o')
>>axis([-2 2 -2 2])
>>axis square
>>set(gca,'Xtick',[-2:0.5:2],'Ytick',[-2:0.5:2])
>>grid
The tick marks were chosen in this instance to be separated by –12 units in both
the x- and y-directions.
>>xlabel('x-axis')
>>ylabel('y-axis')
>>title('points in a plane')
If you desire to also add a caption anywhere in the graph, you can use the
MATLAB command
>>gtext('caption')
and place it at the location on the graph of your choice, by clicking the mouse
on the desired location when the crosshair is properly centered there.
Different fonts and symbols can be used in labeling MATLAB graphs.
LaTeX symbols are used by MATLAB for this purpose (see Appendix E).
EXAMPLE 1.6
Plot the points P(1, 1, 1), Q(4, 5, 6) and R(2, 5, 3). Show a grid in your graph.
Solution: Enter the following commands:
>>x1=1;x2=4;x3=2;
>>y1=1;y2=5;y3=5;
>>z1=1;z2=6;z3=3;
>>plot3(x1,y1,z1,'o',x2,y2,z2,'*',x3,y3,z3,'d')
>>axis([0 6 0 6 0 6])
>>grid ⵧ
NOTE You can also plot multiple points in a 3-D space in exactly the same
way as you did on a plane. Axis adjustment can still be used, but the vector
input into the axis command must now have six entries, as follows:
You can similarly label your 3-D figure using xlabel, ylabel, zlabel, and
title.
The grid command is also valid in conjunction with the plot3 command.
1.4 M-files
In the last section, we found that to complete a figure with a caption, we had
to enter several commands one by one in the command window. Typing
errors will be time-consuming to fix because if you are working in the com-
mand window, and if you make an error, you will need to retype all or part
of the program. Even if you do not make any mistakes (!), all of your work
may be lost if you inadvertently quit MATLAB and have not taken the nec-
essary steps to save the contents of the important program that you just fin-
ished developing. This will be time-consuming. Especially, if you are
simulating a process, and all that you want to change in successive runs are
the parameters of the problem. To preserve large sets of commands, you can
store them in a special type of file called an M-file.
MATLAB supports two types of M-files: script and function M-files. To hold
a large collection of commands, we use a script M-file. The function M-file is
discussed in Chapter 3. To make a script M-file, you need to open a file using
the built-in MATLAB Menu. First select New from the File menu. Then select
the M-file entry from the pull-down menu. After typing the M-file contents,
you need to save the file. For this purpose, use the save as command from the
File window. A field will pop up in which you can type in the name you have
chosen for this file. In the pop-up lower window, indicate that it is an .m file.
7425_C001.qxd 9/2/06 12:03 PM Page 11
NOTES
1. Avoid naming a file by a mathematical abbreviation, the name of a
mathematical function, a MATLAB command, or a number.
2. To run your script M-file, just enter in the command window the
filename omitting the .m extension in the file name at its end at the
MATLAB prompt. To be able to access this file from the command
window, make sure that the folder in which you saved this file is in
the MATLAB Path. If this is not the case use the Set Path in the File
pull-down menu and follow the screen prompts.
EXAMPLE 1.7
For practice, go to the File pull-down menu, select New and M-file to create
the following file that you will name myfile_17.
Enter in the editor window, the following set of instructions:
x1=1;y1=.5;x2=2;y2=1.5;x3=3;y3=2;
plot(x1,y1,'o',x2,y2,'+',x3,y3,'*')
axis([0 4 0 4])
xlabel('xaxis')
ylabel('yaxis')
title('3points in a plane')
After creating and saving this file as myfile_17 in your work folder, go to the
MATLAB command window and enter myfile_17. MATLAB will execute the
instructions in the same sequence as the statements stored in that file. ⵧ
EXAMPLE 1.8
for m=1:10
x(m)=m^2;
end ⵧ
>>x(3)
>>x
Question: What do you get if you enter m, following the execution of the
above program?
Answer: The value 10, which is the last value of m read by the counter.
Homework Problem
Pb. 1.2 A couple establishes a college savings account for their newly
born baby girl, deposit $2000 in this account, and commit themselves to
deposit an equal amount at each future birthday of the new born. They
chose to invest this money with an investment firm that guarantees a
minimum annual return of 5%. What will be the minimum balance of the
account when the young lady turns 18? (Include in your calculation the
amount deposited on her 18th birthday.)
NOTES
1. The commands between the if and else statements are evaluated
for all elements in the expression which are true.
2. The conditional expression uses the Boolean logical symbols &
(AND), | (OR), and ⬃ (NOT) to connect different propositions.
EXAMPLE 1.9
ab for a 5
C 3
ab for a 5
2
and b 15.
>>b=15;
for a=1:10
if a>5
C(a)=a*b;
else
C(a)=(a*b)*(3/2);
end
end
Check that the values of C that you will obtain by typing C are:
B. When there are three or more alternatives for the conditional, the
if-else-end structure takes the form:
if expression 1
Commands 1 evaluated if expression 1 is True
elseif expression 2
Commands 2 evaluated if expression 2 is True
7425_C001.qxd 9/2/06 12:03 PM Page 14
elseif expression 3
Commands 3 evaluated if expression 3 is True
...
....
else
Commands evaluated if no other expression is True
end
In this form, only the commands associated with the first True expression
encountered are evaluated, ensuing relational expressions are not tested.
EXAMPLE 1.10
a3 for a 5
D 2a for 5 a 10
a 7 for 10 a 15
for a=1:15
if a<=5
D(a)=a^3;
elseif a>5 & a<10
D(a)=2*a;
else
D(a)=7+a;
end
end
D ⵧ
Homework Problem
Pb. 1.3 For the values of integer a going from 1 to 10, find the values of
C such that
a2 if a is even
C
a
3
if a is odd
Use the stem command to graphically show C. (Hint: Look up in the help
file the function mod.)
7425_C001.qxd 9/2/06 12:03 PM Page 15
Initial assignment
while relational condition
expression
end
NOTE Special care should be exercised when using the while loop, as in
some cases the looping may never stop.
EXAMPLE 1.11
The unknown quantity x has the form 2n, where n is an integer. We desire to
find the largest such number subject to the condition that x 75,345.
Solution: Using the above syntax of the while loop, we enter:
>>x=2;
while 2*x<75345
x=2*x;
end
x
The unknown variable is initially assigned the value 2, it has this value until
it encounters the statement x=2*x, which should be read that x(n 1)
2*x(n), the value of x is then changed to xnew. Before each pass through the
loop, the value of x is checked to see whether x 75,345. If this condition is
satisfied, the next iteration is carried through; otherwise the looping is
stopped. The final result to our problem is the value of x before any more
loop is executed.
If the statement of the problem is changed, and we had asked instead the
question to list all x’s that satisfied the condition x 75,345. We would have
entered instead of the above the following instructions:
>>x=2;
while x<75345
disp(x)
x=2*x;
end
The disp (display) command displays the results of all iterations satisfying
the desired condition. ⵧ
7425_C001.qxd 9/2/06 12:03 PM Page 16
Homework Problem
Pb. 1.4 Using while, find the largest number x which can be written in
the form
x 3n 2n 3
1.6 Arrays
As mentioned earlier, think of an array as a string of ordered numbers, i.e.,
to determine an array, we need to specify the value and position of each ele-
ment in this string.
As pointed out earlier, an element in the array is addressed by writing the
name of the array followed by the position of the element within parenthe-
ses. For example, x(3) will be the value of the third element in the array x.
The basic array functions are:
EXAMPLE 1.12
Enter the array x [0 3 6 2 11 0 7 9], and find its third element, length,
nonzero elements, value of its largest and smallest elements, and sum of all
its elements.
Solution:
ans =
2 3 4 5 7 8
>> max(x)
ans =
11
>> min(x)
ans =
-2
>> sum(x)
ans =
34 ⵧ
= = equal to
~ = not equal to
< smaller than
<= smaller or equal to
> larger than
>= larger than or equal
If we combine within parentheses the symbols for two arrays with a rela-
tional operator, the result will be a new array consisting of 0’s and 1’s, where
the 1’s are in the positions where the relation between the two elements in
the same position from the two arrays is satisfied, and 0’s otherwise.
EXAMPLE 1.13
x = [1 4 7 5 11 2];
y = [3 -2 7 2 12 -4];
>> z1=(x==y)
z1 =
0 0 1 0 0 0
>> z2=(x~=y)
z2 =
1 1 0 1 1 1
>> z3=(x<y)
z3 =
1 0 0 0 1 0
>> z4=(x<=y)
7425_C001.qxd 9/2/06 12:03 PM Page 18
z4 =
1 0 1 0 1 0
>> z5=(x>y)
z5 =
0 1 0 1 0 1
>> z6=(x>=y)
z6 =
0 1 1 1 0 1
>> z7=(z1==z2)
z7 =
0 0 0 0 0 0
>> z8=(z3==z6)
z8 =
0 0 0 0 0 0
>> z9=(z4==z5)
z9 =
0 0 0 0 0 0
Comments: The values of z7, z8, and z9 are identically zeros. This means that
no corresponding elements of z1 and z2, z3 and z6, z4 and z5, respectively are
ever equal, i.e., each pair represents mutually exclusive conditions. ⵧ
d=a.^b
e=a./b
7425_C001.qxd 9/2/06 12:03 PM Page 19
If you try to use the regular scalar operations symbols, you will get an error
message.
Note that array operations such as the above require the two arrays to
have the same length (i.e., the same number of elements). To verify that two
arrays have the same number of elements (dimension), use the length com-
mand. The exception to the equal length arrays rule is when one of the
arrays is a scalar constant.
EXAMPLE 1.14
Using array operations, find for integers a, 1 a 15, the value of D defined by
a4 for a 5
D 2a for 5 a 10
a 7 for 10 a 15
Solution:
>>a=1:15;
D=(a.^4).*(a<=5)+2*a.*(5<a).*(a<10)+(a+7).*(10<=a)...
.*(a<=15) ⵧ
NOTE We have used in the above the property that the logical AND link-
ing two separate relational operations can be represented by the array prod-
uct of these relations.
Homework Problem
Pb. 1.5 The array n is all integers from 1 to 110. The array y is defined by
n
1/ 2
if n divisible by 3, 5, or 7
y=
0 otherwise
Solid line –
Dashed line ––
Dash-dot line –.
Dotted line :
If the points are close together, the points will look connected by a continu-
ous line making a smooth curve; we say that the program graphically inter-
polated the discrete points into a continuous curve.
The commands for labeling, axis and tick marks used in plotting points are
also valid here. We can zoom to a particular region of the graph by using the
command zoom, And we can read off the coordinates of particular point(s)
in the graph, by using
[x,y]=ginput(n)
This command serves to read the values of the coordinates of points off a dis-
played graph (n is the number of points). The command pops out the
crosshair. The operator manually zeros on the points of interest and clicks. As
a result, MATLAB prints the coordinates of the points in the same order as
those of the clicks of the mouse.
EXAMPLE 1.15
x 0:0.1:10; y x 2 6x 20; z 3x 5
Solution:
>>x=0:0.1:10;
y=x.^2-6*x-20;
z=2*x-5;
plot(x,y,'r:',x,z,'b-')
xlabel('x axis')
7425_C001.qxd 9/2/06 12:03 PM Page 21
ylabel('y-z axis')
title('Figure of Example 1.15')
grid
In the above solution, we plotted both curves on the same graph. Often, it may
be required to plot the two curves in separate graphs but in the same figure
window. This can be achieved using the subplot command. The arguments
of the subplot command subplot(m,n,p) specify m the number of rows par-
titioning the graph, n the number of columns, and p the number of the partic-
ular subgraph chosen (enumerated through the left to right, top to bottom
convention). The program to plot the above arrays in two graphs in a column
would read
>>x=0:0.1:10;
y=x.^2-6*x-20;
z=2*x-5;
subplot(2,1,1)
plot(x,y,'r:')
xlabel('x axis')
ylabel('y axis')
title('Figure of Example 1.14-a')
subplot(2,1,2)
plot(x,z,'b-')
xlabel('x axis')
ylabel('z axis')
title('Figure of Example 1.14-b') ⵧ
All the plotting that we did so far has been using the linear scale in both the
horizontal and vertical axes. Sometimes when the elements of an array can
change values by several decades over the range of interest, it is well advised
to use the different kinds of the log-plots. As the need arises we can, instead
of the plot command, use one of the following alternatives:
Homework Problem
Pb. 1.6 The arrays y and z are generated from the array of positive inte-
gers x 1:20, such that:
y 2x and z 51/x
Plot the array z as function of the array y. (You should be able to read off
the value of the coordinates of any point on the plot over the entire range
of the graph.)
7425_C001.qxd 9/2/06 12:03 PM Page 22
length(y) gives the length of the array (i.e., the number of data points)
y(i) gives the value of the element of y in the ith position
y(i:j) gives a new array, consisting of all elements of y between and
including the locations i and j
find(y) computes a new array where the successive elements indicate
the positions where the components of the array y are nonzero
max(y) gives the value of the largest element in the array
min(y) gives the value of the smallest element in the array
sort(y) sorts the elements of y in ascending order and gives a new
array of the same size as y
sum(y) sums the elements of y. The answer is a scalar
mean(y) gives the mean value of the elements of y
std(y) computes the standard deviation of the elements of y
The definitions of the mean and of the standard deviation are, respectively,
given by
N
1
y
N
∑ y(i)
i1
N
( y(i) y )2
∑
i1 ( N 1)
EXAMPLE 1.16
In an Indian paper, received by to-day’s mail (29 Nov., 1891), I find the
following paragraph: “Col. A. G. Durand, British Agent at Gilgit, has received
definite orders to bring the robber tribes of Hunza and Nagar under control.
These tribes are the pirates of Central Asia, whose chief occupation is
plundering caravans on the Yarkand and Kashgar. Any prisoners they take on
these expeditions are sold into slavery. Colonel Durand has established an
outpost at Chalt, about thirty miles beyond Gilgit, on the Hunza river, and
intends making a road to Aliabad, the capital of the Hunza chief, at once. That
he will meet with armed opposition in doing so is not improbable.”
For some months past the mot d’ordre appears to have been given to the
Anglo-Indian Press, to excite public feeling against Hunza and Nagyr, two
States which have been independent for fourteen centuries. The cause of
offence is not stated, nor, as far as I know, does one exist of sufficient validity
to justify invasion. In the Pioneer and the Civil and Military Gazette I find
vague allusions to the disloyalty or recalcitrance of the above-mentioned
tribes, and to the necessity of punishing them. As Nagyr is extremely well-
disposed towards the British, and is only driven into making common cause
with its hereditary foe and rival of Hunza by fear of a common danger,—the
loss of their independence,—I venture to point out the impolicy and injustice
of interfering with these principalities.
I have already referred to a letter from the venerable chief of Nagyr, in
which he strongly commends to my care one of his sons, Raja Habibulla, as a
well-wisher of the English Government. Indeed, he has absolutely done
nothing to justify any attack on the integrity of his country; and before we
invade it other means to secure peace should be tried. I have no doubt that I,
for one, could induce him to comply with everything in reason, if reason, and
not an excuse for taking his country, is desired. Nagyr has never joined Hunza
in kidnapping expeditions, as is alleged in the above-quoted paragraph.
Indeed, slavery is an abomination to the pious and peaceful agriculturist of
that interesting country. The Nagyris are musical and were fond of dances,
polo, ibex battue-hunting, archery and shooting from horseback, and other
manly exercises; but the growing piety of the race has latterly proscribed
music and dancing. The accompanying drawing of a Nagyri dance in the
neighbouring Gilgit gives a good idea of similar performances at Nagyr.
The country is full of legendary lore, but less so than Hunza, where Grimm’s
fairy tales appear to be translated into actual life. No war is undertaken except
at the supposed command of an unseen fairy, whose drum is on such
occasions sounded in the mountains. Ecstatic women, inhaling the smoke of a
cedar-branch, announce the future, tell the past, and describe the state of
things in neighbouring valleys. They are thus alike the prophets, the
historians, and the journalists of the tribe. They probably now tell their
indignant hearers how, under the pretext of shooting or of commerce,
Europeans have visited their country, which they now threaten to destroy with
strange and murderous weapons; but Hunza is “ayeshó,” or “heaven-born,”
and the fairies, if not the inaccessible nature of the country, will continue to
protect it.
The folly of invading Hunza and Nagyr is even greater than the physical
obstacles to which I have already referred. Here, between the Russian and
the British spheres of influence in Central Asia, we have not only the series of
Pamirs, or plateaux and high valleys, which I first brought to notice on
linguistic grounds, in the map accompanying my tour in Dardistan in 1866
(the country between Kashmir and Kabul), and which have been recently
confirmed topographically; but we have also a large series of mountainous
countries, which, if left alone, or only assured of our help against a foreign
invader, would guarantee for ever the peace alike of the Russian, the British,
and the Chinese frontiers. Unfortunately, we have allowed Afghanistan to
annex Badakhshan, Raushan, Shignan, and Wakhan, at much loss of life to
their inhabitants; and Russia has similarly endorsed the shadowy and recent
claims of Bokhara on neighbouring provinces, like Darwáz and Karategin.
It is untrue that Hunza and Nagyr were ever tributaries of Kashmîr, except
in the sense that they occasionally sent a handful of gold dust to its Maharaja,
and received substantial presents in return. It is to China or Kitái that Hunza
considers itself bound by an ancient, but vague, allegiance. Hunza and Nagyr,
that will only unite against a foreign common foe, have more than once
punished Kashmîr when attempting invasion; but they are not hostile to
Kashmîr, and Nagyr even sends one of the princes to Srinagar as a guarantee
of its peaceful intentions. At the same time, it is not very many months ago
that they gave us trouble at Chalt, when we sought to establish an outpost,
threatening the road to Hunza and the independence alike of Hunza and
Nagyr.
Just as Nagyr is pious, so Hunza is impious. Its religion is a perversion even
of the heterodox Mulái faith, which is Shiah Muhammadan only in name, but
pantheistic in substance. It prevails in Punyál, Zebak, Darwáz, etc. The Tham,
or Raja, of Hunza used to dance in a Mosque and hold revels in it. Wine is
largely drunk in Hunza, and like the Druses of the Lebanon, the “initiated”
Muláis may consider nothing a crime that is not found out. Indeed, an
interesting connection can be established between the doctrines of the so-
called “Assassins” of the Crusaders, which have been handed down to the
Druses, and those of the Muláis in various parts of the Hindukush. Their
spiritual chief gave me a few pages of their hitherto mysterious Bible, the
“Kelám-i-Pir,” in 1886, which I have translated, and shortly intend to publish.
All I can now say is, that, whatever the theory of their faith, the practice
depends, as elsewhere, on circumstances and the character of the race.
The language of Hunza and Nagyr solves many philological puzzles. It is a
prehistoric remnant, in which a series of simple consonantal or vowel sounds
stands for various groups of ideas, relationships, etc. It establishes the great
fact, that customs and the historical and other associations of a race are the
basis of the so-called rules of grammar. The cradle, therefore, of human
thought as expressed in language, whether of the Aryan, the Turanian, or the
Shemitic groups, is to be found in the speech of Hunza-Nagyr; and to destroy
this by foreign intervention, which has already brought new diseases into the
Hindukush, as also a general linguistic deterioration, would be a greater act of
barbarism than to permit the continuance of Hunza raiding on the Yarkand
road. Besides, that raiding can be stopped again, by closing the slave-markets
of Badakhshan, Bokhara, and Yarkand, or by paying a subsidy, say of £1,000
per annum, to the Hunza chief.
Indeed, as has already been pointed out, the recrudescence of kidnapping
is largely due to the state of insecurity and confusion caused by our desire to
render the Afghan and the Chinese frontiers conterminous with our own, in
the vain belief that the outposts of three large and distant kingdoms, acting in
concert, will keep Russia more effectively out of India than a number of small
independent republics or principalities. Afghanistan may now be big, but every
so-called subject in her outlying districts is her inveterate foe. As stated in a
letter from Nevsky to the Calcutta Englishman, in connection with Colonel
Grambcheffsky’s recent explorations:
“One and all, these devastated tribes are firm in their conviction that the
raids of their Afghan enemies were prompted and supported by the gold of
Abdur Rahman’s English protectors. They will remember this on the plateau of
Pamir, and among the tribes of Kaffiristan.”
However colourable this statement may be as regards Shignán, Raushan,
and perhaps even Wakhan, I believe that the Kafirs are still our friends. At the
same time it should not be forgotten that, owing to the closing of the slave-
markets in Central Asia, the sale of Shiah subjects had temporarily stopped in
Chitrál. The Kafirs were being less molested by kidnapping Muhammadan
neighbours; the Hunzas went back to agriculture, which the Nagyris had
never abandoned; Kashmîr, India, and the Russian side of Central Asia
afforded no opening for the sale of human beings. The insensate ambition of
officials, British and Russian, the gift of arms to marauding tribes and the
destruction of Kashmîr influence, have changed all this, and it is only by a
return to “masterly inactivity,” which does not mean the continuance of the
Cimmerian darkness that now exists as to the languages and histories of the
most interesting races of the world, that the peace and pockets of three
mighty empires can be saved.
In the meanwhile, it is to the interest of Russia to force us into heavy
military expenditure by false alarms; to create distrust between ourselves and
China by pretending that Russia and England alone have civilizing missions in
Central Asia, with which Chinese tyranny would interfere; to hold up before us
the Will-o’-the-wisp of an impossible demarcation of the Pamirs, and finally, to
ally itself with China against India. For let it not be forgotten, that once the
Trans-Siberian railway is completed, China will be like wax in her hand; and
that she will be compelled to place her immense material in men and food at
the disposal of an overawing, but, as far as the personnel is concerned, not
unamiable neighbour. The tribes, emasculated by our overwhelming
civilization, and driven into three large camps, will no longer have the power
of resistance that they now possess separately.
Let us therefore leave intact the two great belts of territories that Nature
has raised for the preservation of peace in Asia—the Pamir with its adjacent
regions to the east and west, and the zone of the Hindukush with its hives of
independent tribes, intervening between Afghanistan on the one side and
Kashmîr on the other, till India proper is reached. This will never be the case
by a foreign invader, unless diplomatists “meddle and muddle,” and try to put
together what Nature has put asunder. What we require is the cultivation of
greater sympathy in our relations with natives; and, comparing big things with
small, it is to this feeling that I myself owed my safety, when I put off the
disguise in which I crossed the Kashmîr frontier in 1866 into countries then
wrongly supposed by our Government to be inhabited by cannibals. This
charge was also made, with equal error, by one tribe against the other. Then
too, as in 1886, the Indian Press spoke of Russian intrigues; but then, as in
1886, I found the very name of Russia to be unknown, except where it had
been learnt from a Kashmîr Munshi, who had no business to be there at all, as
the treaty of 1846, by which we sold Kashmîr to Ghulab Singh, assigned the
Indus as his boundary on the west. Now, as to the question as to “What and
where are the Pamirs?” I have already stated my view in a letter to the Editor
of the Morning Post, which I trust I may be allowed to quote:
“As some of the statements made at the Royal Geographical Society are
likely to cause a sense of false security, as dangerous to peace as a false
alarm, I write to say that ‘Pamirs’ do not mean ‘deserts,’ or ‘broken valleys,’
and that they are not uninhabitable or useless for movements of large bodies
of men. They may be all this in certain places, at certain periods of the year,
and under certain conditions; but had our explorers or statesmen paid
attention to the languages of this part of the world, as they should in regard
to every other with which they deal, they would have avoided many idle
conjectures and the complications that may follow therefrom. I do not wish
them to refer to philologists who have never been to the East, and who
interpret ‘Pamir’ as meaning the ‘Upa-Meru’ Mountain of Indian mythology,
but to the people who frequent the Pamirs during the summer months, year
after year, for purposes of pasturage, starting from various points, and who in
their own languages (Yarkandi, Turki, and Kirghiz) call the high plain, elevated
valley, table-land, or plateau which they come across ‘Pamir.’ There are,
therefore, in one sense many ‘Pamirs,’ and as a tout-ensemble, one ‘Pamir,’ or
geographically, the ‘Pamir.’ The legend of the two brothers, ‘Alichur and Pamir,’
is merely a personification of two plateaux. Indeed, the obvious and popular
idea which has always attached to the word ‘Pamir,’ is the correct one,
whether it is the geographical ‘roof of the world,’ the ‘Bám-i-dunya’ of the
poet, or the ‘Pamir-dunya’ of the modern journalist. We have, therefore, to
deal with a series of plateaux, the topographical limits of which coincide with
linguistic, ethnographical, and political limits. To the North, the Pamirs have
the Trans-Altaic Mountain range marking the Turki element, under Russian
influence; the Panja river, by whatever name, on the West is a Tadjik or
Iranian Frontier [Affghan]. The Sarikol on the East is a Tibetan, Mongolian, or
Chinese Wall, and the South is our natural frontier, the Hindukush, to go
beyond which is physical death to the Hindu, and political ruin to the holder of
India, as it also is certain destruction to the invader, except by one pass,
which I need not name, and which is accessible from a Pamir. That the Pamirs
are not uninhabitable may be inferred from Colonel Grambcheffsky’s account
[which is published at length elsewhere in this issue of the Asiatic Quarterly
Review]. A few passages from it must now suffice:—‘The Pamir is far from
being a wilderness. It contains a permanent population, residing in it both
summer and winter.’ ‘The population is increasing to a marked extent.’ ‘Slavery
on the Pamir is flourishing: moreover, the principal contingents of slaves are
obtained from Chatrar, Jasen, and Kanshoot, chanates under the protectorate
of England.’ ‘On descending into Pamir we found ourselves between the
cordons of the Chinese and Affghan armies.’ ‘The population of Shoognan,
numbering 2,000 families, had fled to Pamir, hoping to find a refuge in the
Russian Provinces’ (from ‘the untold atrocities which the Affghans were
committing in the conquered provinces of Shoognan,’ etc.). ‘I term the whole
of the tableland “Pamir,” in view of the resemblance of the valleys to each
other.’
“The climate of the Pamirs is variable, from more than tropical heat in the
sun to arctic cold in the shade, and in consequence, is alike provocative and
destructive of life. Dr. G. Capus, who crossed them from north to south,
exactly as Mr. Littledale has done, but several months in the year before him,
says in his ‘Observations Météorologiques sur le Pamir,’ which he sent to the
last Oriental Congress,—‘The first general fact is the inconstancy of severe
cold. The nights are generally coldest just before sunrise.’ ‘We found an
extreme amplitude of 61 deg. between the absolute minimum and maximum,
and of 41 deg. between the minimum and the maximum in the shade during
the same day.’ ‘The thermometer rises and falls rapidly with the height of the
sun.’ ‘Great cold is less frequent and persistent than was believed to be the
case at the period of the year dealt with’ (March 13 to April 19), ‘and is
compensated by daily intervals of elevation of temperature, which permit
animal life, represented by a fairly large number of species, and including
man, to keep up throughout the winter under endurable conditions.’ Yet ‘the
water-streak of snow, which has melted in contact with a dark object, freezes
immediately when put into the shadow of the very same object.’ ... The
solution of political difficulties in Central Asia is not in a practically impossible,
and certainly unmaintainable, demarcation of the Pamirs, but in the
strengthening of the autonomy of the most interesting races that inhabit the
series of Circassias that already guard the safety alike of British, Chinese, and
of Russian dominion or spheres of influence in Central Asia.”
The Times of the 30th November publishes a map of the Pamirs and an
account of the questions connected with them that, like many other
statements in its articles on “Indian affairs,” are incorrect and misleading.
Having been on a special mission by the Panjab Government, in 1866, when I
discovered the races and languages of “Dardistan,” and gave the country that
name, and again having been on special duty with the Foreign Department of
the Government of India in 1886 in connection with the Boorishki language
and race of Hunza, Nagyr, and a part of Yasin, regarding which I have recently
completed Part I. of a large work, I may claim to speak with some authority
as regards these districts, even if I had no other claim. The point which I wish
to specially contradict at present, is the one relating to the Russians bringing
themselves into almost direct contact with “the Hunza and other tribes subject
to Kashmîr and, as such, entitled to British protection and under British
control.”
Dr. Leitner as a Bukhara Maulvi, when crossing the Frontier in 1866
during the Kashmîr War with the Dard Tribes.
APPENDIX II.
NOTES ON RECENT EVENTS IN CHILÁS AND CHITRÁL.
Although the period may be past in which a great English Journal could ask,
“what is Gilgit?” the contradictory telegrams and newspaper accounts which
we receive regarding the countries adjoining Gilgit show that the Press has
still much to learn. Names of places, as far apart as Edinburgh and London,
are put within a day’s march on foot. Names of men figure on maps as places
and the relationships of the Chiefs of the region in question are invented or
confounded as may suit the politics of the moment, if not the capacity of the
printer. The injunctions of the Decalogue are applied or misapplied, extended
or curtailed, to suit immediate convenience, and a different standard of
morality is constantly being found for our friends of to-day or our foes of to-
morrow. The youth Afzul-ul-Mulk was credited with all human virtues and with
even more than British manliness, as he was supposed to be friendly to us. He
had given his country into our hands in order to receive our support against
his elder brother, the acknowledged heir of the late Aman-ul-Mulk of Chitrál,
but that elder brother, Nizám-ul-Mulk, was no less friendly to English interests,
although he has the advantage of being a man of capacity and independence.
The sudden death of Aman-ul-Mulk coincided with the presence of our
protégé at Chitrál, and the first thing that the virtuous Afzul-ul-Mulk did, was
to invite as many brothers as were within reach to a banquet when he
murdered them. No doubt, as a single-minded potentate, he did not wish to
be diverted from the task of governing his country by the performance of
social duties to the large circle of acquaintances in brothers and their families
which Providence bestows on a native ruler or claimant in Chitrál and Yasin. A
member of the Khush-waqtia dynasty of Yasin, which is a branch of the Chitrál
dynasty, told me when I expressed my astonishment at the constant murders
in his family: “A real relative in a high family is a person whom God points out
to one to kill as an obstacle in one’s way, whereas a foster-relative (generally
of a lower class) is a true friend who rises and falls with one’s own fortune” (it
being the custom for a scion of a noble house to be given out to a nurse.)
Dec. 7th.—As for the wanton aggression on Chilás which never gave us the
least trouble, as all our Deputy Commissioners of Abbottabad can testify, it is
a sequel of our interference last year with Hunza-Nagyr. The Gilgit Residency
has disturbed a peace that has existed since 1856 and now continues in its
Welcome to Our Bookstore - The Ultimate Destination for Book Lovers
Are you passionate about books and eager to explore new worlds of
knowledge? At our website, we offer a vast collection of books that
cater to every interest and age group. From classic literature to
specialized publications, self-help books, and children’s stories, we
have it all! Each book is a gateway to new adventures, helping you
expand your knowledge and nourish your soul
Experience Convenient and Enjoyable Book Shopping Our website is more
than just an online bookstore—it’s a bridge connecting readers to the
timeless values of culture and wisdom. With a sleek and user-friendly
interface and a smart search system, you can find your favorite books
quickly and easily. Enjoy special promotions, fast home delivery, and
a seamless shopping experience that saves you time and enhances your
love for reading.
Let us accompany you on the journey of exploring knowledge and
personal growth!
ebookgate.com