Essentials of MATLAB Programming 3rd Edition Chapman Solutions Manualdownload
Essentials of MATLAB Programming 3rd Edition Chapman Solutions Manualdownload
https://testbankdeal.com/product/essentials-of-matlab-
programming-3rd-edition-chapman-solutions-manual/
https://testbankdeal.com/product/matlab-programming-for-engineers-5th-
edition-chapman-solutions-manual/
https://testbankdeal.com/product/matlab-programming-with-applications-
for-engineers-1st-edition-chapman-solutions-manual/
https://testbankdeal.com/product/introduction-to-matlab-3rd-edition-
etter-solutions-manual/
https://testbankdeal.com/product/microeconomics-canada-in-the-global-
environment-10th-edition-parkin-solutions-manual/
Advanced Accounting 11th Edition Hoyle Test Bank
https://testbankdeal.com/product/advanced-accounting-11th-edition-
hoyle-test-bank/
https://testbankdeal.com/product/investments-an-introduction-12th-
edition-mayo-solutions-manual/
https://testbankdeal.com/product/college-algebra-12th-edition-lial-
test-bank/
https://testbankdeal.com/product/essentials-of-marketing-research-1st-
edition-zikmund-test-bank/
https://testbankdeal.com/product/matlab-a-practical-introduction-to-
programming-and-problem-solving-4th-edition-attaway-solutions-manual/
Texas Politics 12th Edition Newell Test Bank
https://testbankdeal.com/product/texas-politics-12th-edition-newell-
test-bank/
6. Basic User-Defined Functions
6.1 Script files are just collections of MATLAB statements that are stored in a file. When a script file is
executed, the result is the same as it would be if all of the commands had been typed directly into
the Command Window. Script files share the Command Window’s workspace, so any variables that
were defined before the script file starts are visible to the script file, and any variables created by the
script file remain in the workspace after the script file finishes executing. A script file has no input
arguments and returns no results, but script files can communicate with other script files through the
data left behind in the workspace.
In contrast, MATLAB functions are a special type of M-file that run in their own independent
workspace. They receive input data through an input argument list, and return results to the caller
through an output argument list.
6.2 MATLAB programs communicate with their functions using a pass-by-value scheme. When a
function call occurs, MATLAB makes a copy of the actual arguments and passes them to the
function. This copying is very significant, because it means that even if the function modifies the
input arguments, it won’t affect the original data in the caller. Similarly, the returned values are
calculated by the function and copied into the return variables in the calling program.
6.3 The principal advantage of the pass-by-value scheme is that any changes to input arguments within a
function will not affect the input arguments in the calling program. This, along with the separate
workspace for the function, eliminates unintended side effects. The disadvantage is that copying
arguments, especially large arrays, can take time and memory.
6.4 A function to sort arrays in ascending or descending order, depending on the second calling
parameter, is shown below:
% Define variables:
% a -- Input array to sort
% ii -- Index variable
% iptr -- Pointer to min value
% jj -- Index variable
% nvals -- Number of values in "a"
% out -- Sorted output array
% temp -- Temp variable for swapping
129
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
% Record of revisions:
% Date Programmer Description of change
% ==== ========== =====================
% 04/03/15 S. J. Chapman Original code
if sort_up
else
end
130
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
% iptr now points to the min/max value, so swap a(iptr)
% with a(ii) if ii ~= iptr.
if ii ~= iptr
temp = a(ii);
a(ii) = a(iptr);
a(iptr) = temp;
end
end
% Preallocate array
array = zeros(1,nvals);
end
131
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
% Display the sorted result.
fprintf('\nSorted data in ascending order:\n');
for ii = 1:nvals
fprintf(' %8.4f\n',sorted1(ii));
end
» test_ssort1
Enter number of values to sort: 6
Enter value 1: -3
Enter value 2: 5
Enter value 3: 2
Enter value 4: 2
Enter value 5: 0
Enter value 6: 1
132
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
2.0000
5.0000
% Record of revisions:
% Date Programmer Description of change
% ==== ========== =====================
% 04/03/15 S. J. Chapman Original code
% Calculate value
out = sin(pi/180*x);
% Record of revisions:
% Date Programmer Description of change
% ==== ========== =====================
% 04/03/15 S. J. Chapman Original code
133
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
% Calculate value
out = cos(pi/180*x);
% Record of revisions:
% Date Programmer Description of change
% ==== ========== =====================
% 04/03/15 S. J. Chapman Original code
% Calculate value
out = tan(pi/180*x);
% Record of revisions:
% Date Programmer Description of change
% ==== ========== =====================
% 04/03/15 S. J. Chapman Original code
% Calculate value
out = 180/pi * asin(x);
% Record of revisions:
134
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
% Date Programmer Description of change
% ==== ========== =====================
% 04/03/15 S. J. Chapman Original code
% Calculate value
out = 180/pi * acos(x);
% Record of revisions:
% Date Programmer Description of change
% ==== ========== =====================
% 04/03/15 S. J. Chapman Original code
% Calculate value
out = 180/pi * atan(x);
% Record of revisions:
% Date Programmer Description of change
% ==== ========== =====================
% 04/03/15 S. J. Chapman Original code
% Calculate value
out = 180/pi * atan2(y,x);
135
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
% Script file: test_functions.m
%
% Purpose:
% To perform a median filter on an input data set.
%
% Record of revisions:
% Date Programmer Description of change
% ==== ========== =====================
% 04/03/15 S. J. Chapman Original code
%
% Define variables:
% ii -- Loop index
% filename -- Input data file
% n_ave -- Number of points to average
% n_per_side -- Number of points to average per side
% n_points -- Number of points in data set
% slope -- Slope of the line
% x -- Array of input values
% y -- Array of filtered values
% Set the angle theta = 30 degrees, and try the forward trig functions
disp(' ');
disp(['Testing forward trig functions:']);
disp(['sind(30) = ' num2str(sind(30))]);
disp(['cosd(30) = ' num2str(cosd(30))]);
disp(['tand(30) = ' num2str(tand(30))]);
disp(['sind(45) = ' num2str(sind(45))]);
disp(['cosd(45) = ' num2str(cosd(45))]);
disp(['tand(45) = ' num2str(tand(45))]);
% Test atan2d
disp(' ');
disp(['Testing atan2d:']);
disp(['atan2d(4,3) = ' num2str(atan2d(4,3))]);
>> test_functions
136
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
This program tests the trig functions that return answers in degrees.
Testing atan2d:
atan2d(4,3) = 53.1301
% Define variables:
% deg_f -- Input in degrees Fahrenheit
% deg_c -- Output in degrees Celsius
% Record of revisions:
% Date Programmer Description of change
% ==== ========== =====================
% 04/05/15 S. J. Chapman Original code
% Calculate value
deg_c = 5/9 * (deg_f - 32);
We can test this function using the freezing and boiling points of water:
>> f_to_c(32)
ans =
0
>> f_to_c(212)
137
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
ans =
100
% Define variables:
% deg_c -- Input in degrees Celsius
% deg_f -- Output in degrees Fahrenheit
% Record of revisions:
% Date Programmer Description of change
% ==== ========== =====================
% 04/05/15 S. J. Chapman Original code
% Calculate value
deg_f = 9/5 * deg_c + 32;
We can test this function using the freezing and boiling points of water:
>> f_to_f(0)
ans =
100
>> c_to_f(100)
ans =
0
We can also show that c_to_f and f_to_c are the inverses of each other:
>> f_to_c(c_to_f(30))
ans =
30
6.8 A function to calculate the area of a triangle specified by the locations of its three vertices is shown
below:
138
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Visit https://testbankdead.com
now to explore a rich
collection of testbank,
solution manual and enjoy
exciting offers!
% Define variables:
% x1, y1 -- Location of vertex 1
% x2, y2 -- Location of vertex 2
% x3, y3 -- Location of vertex 3
% area -- Area of triangle
% Record of revisions:
% Date Programmer Description of change
% ==== ========== =====================
% 04/05/15 S. J. Chapman Original code
% Calculate value
area = 0.5 * (x1*(y2-y3) - x2*(y1-y3) + x3*(y1-y2));
6.9 At this point in our studies, there is no general way to support an arbitrary number of arguments in a
function. Function nargin allows a developer to know how many arguments are used in a
function call, but only up to the number of arguments in the calling sequence1. We will design this
function to support up to 6 vertices. The corresponding function is shown below:
function area = area_polygon(x1, y1, x2, y2, x3, y3, x4, y4, x5, y5, x6, y6)
%AREA_POLYGON Calculate the area of a polygon specified by its vertices
% Function AREA_POLYGON calculates the area of a polygon specified by
% its vertices
%
% Calling sequence:
% area = area_polygon(x1, y1, x2, y2, x3, y3, x4, y4, x5, y5, x6, y6)
% Define variables:
% ii -- Loop index
% n_vertices -- Number of vetices in polygon
% x1, y1 -- Location of vertex 1
% x2, y2 -- Location of vertex 2
% x3, y3 -- Location of vertex 3
% x4, y4 -- Location of vertex 4
% x5, y5 -- Location of vertex 5
% x6, y6 -- Location of vertex 6
% area -- Area of polygon
% Record of revisions:
% Date Programmer Description of change
1 Later we will learn about function varargin, which can support any number of arguments.
139
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
% ==== ========== =====================
% 04/05/15 S. J. Chapman Original code
% Save values
x(1) = x1;
y(1) = y1;
x(2) = x2;
y(2) = y2;
x(3) = x3;
y(3) = y3;
if n_vertices >= 4
x(4) = x4;
y(4) = y4;
end
if n_vertices >= 5
x(5) = x5;
y(5) = y5;
end
if n_vertices >= 6
x(6) = x6;
y(6) = y6;
end
We can test this function using the specified point (0,0), (10,0), (10,10), and (0, 10), which
corresponds to a square with all sides having length 10:
We can test this function using the points specified in the problem:
140
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
area =
100.00
>> area = area_polygon(10,0,8,8,2,10,-4,5)
area =
43.00
6.10 A function to calculate the inductance of a single-phase two-wire transmission line is shown below:
% Define variables:
% ind_per_m -- Inductance per meter
% Record of revisions:
% Date Programmer Description of change
% ==== ========== =====================
% 04/05/15 S. J. Chapman Original code
% Constants
mu0 = pi * 4e-7; % H/m
We can test this function using the points specified in the problem:
6.11 If the diameter of a transmission line’s conductors increase, the inductance of the line will decrease.
If the diameter of the conductors are doubled, the inductance will fall to:
141
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
0.1550
6.12 A function to calculate the capacitance of a single-phase two-wire transmission line is shown below:
% Define variables:
% cap_per_m -- Capacitance per meter
% Record of revisions:
% Date Programmer Description of change
% ==== ========== =====================
% 04/05/15 S. J. Chapman Original code
% Constants
e0 = pi * 4e-7; % F/m
We can test this function using the points specified in the problem:
6.13 If the distance between the two conductors increases, the inductance of the transmission line
increases and the capacitance of the transmission line decreases.
6.14 A program to compare the sorting times using the selection sort of Example 6.2 and MATLAB’s
built-in sort is shown below:
142
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
% To compare the sort function from Example 6.2 and the
% built-in MATLAB sort
%
% Record of revisions:
% Date Programmer Description of change
% ==== ========== =====================
% 04/05/15 S. J. Chapman Original code
%
% Define variables:
% data1 -- Array to sort
% data2 -- Copy of array to sort
% elapsed_time1 -- Elapsed time for ssort
% elapsed_time2 -- Elapsed time for sort
% Constants
SIZE = 100000; % Number of values to sort
% Set seed
seed(123456);
>> compare_sorts
Sort time using ssort = 71.2407
Sort time using sort = 0.0060984
The built-in sorting function is dramatically faster than the selection sort of Example 6.2.
6.15 A program to compare the sorting times using the selection sort of Example 6.2 and MATLAB’s
built-in sort is shown below.
143
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Other documents randomly have
different content
The Project Gutenberg eBook of The Principles of Chemistry, Volume
II
This ebook is for the use of anyone anywhere in the United States and most other parts of the
world at no cost and with almost no restrictions whatsoever. You may copy it, give it away or re-use
it under the terms of the Project Gutenberg License included with this ebook or online at
www.gutenberg.org. If you are not located in the United States, you will have to check the laws of
the country where you are located before using this eBook.
Editor: T. A. Lawson
Language: English
*** START OF THE PROJECT GUTENBERG EBOOK THE PRINCIPLES OF CHEMISTRY, VOLUME II ***
THE
PRINCIPLES OF CHEMISTRY
By D. MENDELÉEFF
EDITED BY
IN TWO VOLUMES
VOLUME II.
Table III.
The periodic dependence of the composition of the simplest compounds and
properties of the simple bodies upon the atomic weights of the elements.
Molecular
composition of the
higher hydrogen Atomic weights of the
Composition of the saline com
and elements
metallo-organic
compounds
Br, (NO3), ½O, ½(SO4), OH, (OM
½Ca, ⅓Al, &c.
E=CH3, C2H5, &c. Form RX RX2 RX3 RX4 RX5
Oxides R2O RO R2O3 RO2 R2O5
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]
HX
HH H (mean) or
1,005
H2 O
CHAPTER XV
It is seen from the examples given in the preceding chapters that the sum of
the data concerning the chemical transformations proper to the elements (for
instance, with respect to the formation of acids, salts, and other compounds
having definite properties) is insufficient for accurately determining the
relationship of the elements, inasmuch as this may be many-sided. Thus, lithium
and barium are in some respects analogous to sodium and potassium, and in
others to magnesium and calcium. It is evident, therefore, that for a complete
judgment it is necessary to have, not only qualitative, but also quantitative,
exact and measurable, data. When a property can be measured it ceases to be
vague, and becomes quantitative instead of merely qualitative.
Among these measurable properties of the elements, or of their corresponding
compounds, are: (a) isomorphism, or the analogy of crystalline forms; and,
connected with it, the power to form crystalline mixtures which are
isomorphous; (b) the relation of the volumes of analogous compounds of the
elements; (c) the composition of their saline compounds; and (d) the relation of
the atomic weights of the elements. In this chapter we shall briefly consider
these four aspects of the matter, which are exceedingly important for a natural
and fruitful grouping of the elements, facilitating, not only a general
acquaintance with them, but also their detailed study.
Historically the first, and an important and convincing, method for finding a
relationship between the compounds of two different elements is by
isomorphism. This conception was introduced into chemistry by Mitscherlich (in
1820), who demonstrated that the corresponding salts of arsenic acid, H3AsO4,
and phosphoric acid, H3PO4, crystallise with an equal quantity of water, show an
exceedingly close resemblance in crystalline form (as regards the angles of their
faces and axes), and are able to crystallise together from solutions, forming
crystals containing a mixture of the isomorphous compounds. Isomorphous
substances are those which, with an equal number of atoms in their molecules,
present an analogy in their chemical reactions, a close resemblance in their
properties, and a similar or very nearly similar crystalline form: they often
contain certain elements in common, from which it is to be concluded that the
remaining elements (as in the preceding example of As and P) are analogous to
each other. And inasmuch as crystalline forms are capable of exact
measurement, the external form, or the relation of the molecules which causes
their grouping into a crystalline form, is evidently as great a help in judging of
the internal forces acting between the atoms as a comparison of reactions,
vapour densities, and other like relations. We have already seen examples of this
in the preceding pages.[1] It will be sufficient to call to mind that the compounds
of the alkali metals with the halogens RX, in a crystalline form, all belong to the
cubic system and crystallise in octahedra or cubes—for example, sodium
chloride, potassium chloride, potassium iodide, rubidium chloride, &c. The
nitrates of rubidium and cæsium appear in anhydrous crystals of the same form
as potassium nitrate. The carbonates of the metals of the alkaline earths are
isomorphous with calcium carbonate—that is, they either appear in forms like
calc spar or in the rhombic system in crystals analogous to aragonite.[1 bis]
Furthermore, sodium nitrate crystallises in rhombohedra, closely resembling the
rhombohedra of calc spar (calcium carbonate), CaCO3, whilst potassium nitrate
appears in the same form as aragonite, CaCO3, and the number of atoms in
both kinds of salts is the same: they all contain one atom of a metal (K, Na, Ca),
one atom of a non-metal (C, N), and three atoms of oxygen. The analogy of
form evidently coincides with an analogy of atomic composition. But, as we have
learnt from the previous description of these salts, there is not any close
resemblance in their properties. It is evident that calcium carbonate approaches
more nearly to magnesium carbonate than to sodium nitrate, although their
crystalline forms are all equally alike. Isomorphous substances which are
perfectly analogous to each other are not only characterised by a close
resemblance of form (homeomorphism), but also by the faculty of entering into
analogous reactions, which is not the case with RNO3 and RCO3. The most
important and direct method of recognising perfect isomorphism—that is, the
absolute analogy of two compounds—is given by that property of analogous
compounds of separating from solutions in homogeneous crystals, containing
the most varied proportions of the analogous substances which enter into their
composition. These quantities do not seem to be in dependence on the
molecular or atomic weights, and if they are governed by any laws they must be
analogous to those which apply to indefinite chemical compounds.[2] This will be
clear from the following examples. Potassium chloride and potassium nitrate are
not isomorphous with each other, and are in an atomic sense composed in a
different manner. If these salts be mixed in a solution and the solution be
evaporated, independent crystals of the two salts will separate, each in that
crystalline form which is proper to it. The crystals will not contain a mixture of
the two salts. But if we mix the solutions of two isomorphous salts together,
then, under certain circumstances, crystals will be obtained which contain both
these substances. However, this cannot be taken as an absolute rule, for if we
take a solution saturated at a high temperature with a mixture of potassium and
sodium chlorides, then on evaporation sodium chloride only will separate, and
on cooling only potassium chloride. The first will contain very little potassium
chloride, and the latter very little sodium chloride.[3] But if we take, for example,
a mixture of solutions of magnesium sulphate and zinc sulphate, they cannot be
separated from each other by evaporating the mixture, notwithstanding the
rather considerable difference in the solubility of these salts. Again, the
isomorphous salts, magnesium carbonate, and calcium carbonate are found
together—that is, in one crystal—in nature. The angle of the rhombohedron of
these magnesia-lime spars is intermediate between the angles proper to the two
spars individually (for calcium carbonate, the angle of the rhombohedron is 105°
8′; magnesium carbonate, 107° 30′; CaMg(CO3)2, 106° 10′). Certain of these
isomorphous mixtures of calc and magnesia spars appear in well-formed
crystals, and in this case there not unfrequently exists a simple molecular
proportion of strictly definite chemical combination between the component salts
—for instance, CaCO3,MgCO3—whilst in other cases, especially in the absence of
distinct crystallisation (in dolomites), no such simple molecular proportion is
observable: this is also the case in many artificially prepared isomorphous
mixtures. The microscopical and crystallo-optical researches of Professor
Inostrantzoff and others show that in many cases there is really a mechanical,
although microscopically minute, juxtaposition in one whole of the
heterogeneous crystals of calcium carbonate (double refracting) and of the
compound CaMgC2O6. If we suppose the adjacent parts to be microscopically
small (on the basis of the researches of Mallard, Weruboff, and others), we
obtain an idea of isomorphous mixtures. A formula of the following kind is given
to isomorphous mixtures: for instance, for spars, RCO3, where R = Mg, Ca, and
where it may be Fe,Mn …, &c. This means that the Ca is partially replaced by Mg
or another metal. Alums form a common example of the separation of
isomorphous mixtures from solutions. They are double sulphates (or seleniates)
of alumina (or oxides isomorphous with it) and the alkalis, which crystallise in
well-formed crystals. If aluminium sulphate be mixed with potassium sulphate,
an alum separates, having the composition KAlS2O8,12H2O. If sodium sulphate
or ammonium sulphate, or rubidium (or thallium) sulphate be used, we obtain
alums having the composition RAlS2O8,12H2O. Not only do they all crystallise in
the cubic system, but they also contain an equal atomic quantity of water of
crystallisation (12H2O). Besides which, if we mix solutions of the potassium and
ammonium (NH4AlS2O8,12H2O) alums together, then the crystals which separate
will contain various proportions of the alkalis taken, and separate crystals of the
alums of one or the other kind will not be obtained, but each separate crystal
will contain both potassium and ammonium. Nor is this all; if we take a crystal
of a potassium alum and immerse it in a solution capable of yielding ammonia
alum, the crystal of the potash alum will continue to grow and increase in size in
this solution—that is, a layer of the ammonia or other alum will deposit itself
upon the planes bounding the crystal of the potash alum. This is very distinctly
seen if a colourless crystal of a common alum be immersed in a saturated violet
solution of chrome alum, KCrS2O8,12H2O, which then deposits itself in a violet
layer over the colourless crystal of the alumina alum, as was observed even
before Mitscherlich noticed it. If this crystal be then immersed in a solution of an
alumina alum, a layer of this salt will form over the layer of chrome alum, so
that one alum is able to incite the growth of the other. If the deposition proceed
simultaneously, the resultant intermixture may be minute and inseparable, but
its nature is understood from the preceding experiments; the attractive force of
crystallisation of isomorphous substances is so nearly equal that the attractive
power of an isomorphous substance induces a crystalline superstructure exactly
the same as would be produced by the attractive force of like crystalline
particles. From this it is evident that one isomorphous substance may induce the
crystallisation[4] of another. Such a phenomenon explains, on the one hand, the
aggregation of different isomorphous substances in one crystal, whilst, on the
other hand, it serves as a most exact indication of the nearness both of the
molecular composition of isomorphous substances and of those forces which are
proper to the elements which distinguish the isomorphous substances. Thus, for
example, ferrous sulphate or green vitriol crystallises in the monoclinic system
and contains seven molecules of water, FeSO4,7H2O, whilst copper vitriol
crystallises with five molecules of water in the triclinic system, CuSO4,5H2O;
nevertheless, it may be easily proved that both salts are perfectly isomorphous;
that they are able to appear in identically the same forms and with an equal
molecular amount of water. For instance, Marignac, by evaporating a mixture of
sulphuric acid and ferrous sulphate under the receiver of an air-pump, first
obtained crystals of the hepta-hydrated salt, and then of the penta-hydrated salt
FeSO4,5H2O, which were perfectly similar to the crystals of copper sulphate.
Furthermore, Lecoq de Boisbaudran, by immersing crystals of FeSO4,7H2O in a
supersaturated solution of copper sulphate, caused the latter to deposit in the
same form as ferrous sulphate, in crystals of the monoclinic system,
CuSO4,7H2O.
Hence it is evident that isomorphism—that is, the analogy of forms and the
property of inducing crystallisation—may serve as a means for the discovery of
analogies in molecular composition. We will take an example in order to render
this clear. If, instead of aluminium sulphate, we add magnesium sulphate to
potassium sulphate, then, on evaporating the solution, the double salt
K2MgS2O8,6H2O (Chapter XIV., Note 28) separates instead of an alum, and the
ratio of the component parts (in alums one atom of potassium per 2SO4, and
here two atoms) and the amount of water of crystallisation (in alums 12, and
here 6 equivalents per 2SO4) are quite different; nor is this double salt in any
way isomorphous with the alums, nor capable of forming an isomorphous
crystalline mixture with them, nor does the one salt provoke the crystallisation
of the other. From this we must conclude that although alumina and magnesia,
or aluminium and magnesium, resemble each other, they are not isomorphous,
and that although they give partially similar double salts, these salts are not
analogous to each other. And this is expressed in their chemical formulæ by the
fact that the number of atoms in alumina or aluminium oxide, Al2O3, is different
from the number in magnesia, MgO. Aluminium is trivalent and magnesium
bivalent. Thus, having obtained a double salt from a given metal, it is possible to
judge of the analogy of the given metal with aluminium or with magnesium, or
of the absence of such an analogy, from the composition and form of this salt.
Thus zinc, for example, does not form alums, but forms a double salt with
potassium sulphate, which has a composition exactly like that of the
corresponding salt of magnesium. It is often possible to distinguish the bivalent
metals analogous to magnesium or calcium from the trivalent metals, like
aluminium, by such a method. Furthermore, the specific heat and vapour density
serve as guides. There are also indirect proofs. Thus iron gives ferrous
compounds, FeX2, which are isomorphous with the compounds of magnesium,
and ferric compounds, FeX3, which are isomorphous with the compounds of
aluminium; in this instance the relative composition is directly determined by
analysis, because, for a given amount of iron, FeCl2 only contains two-thirds of
the amount of chlorine which occurs in FeCl3, and the composition of the
corresponding oxygen compounds, i.e. of ferrous oxide, FeO, and ferric oxide,
Fe2O3, clearly indicates the analogy of the ferrous oxide with MgO and of the
ferric oxide with Al2O3.
Thus in the building up of similar molecules in crystalline forms we see one of
the numerous means for judging of the internal world of molecules and atoms,
and one of the weapons for conquests in the invisible world of molecular
mechanics which forms the main object of physico-chemical knowledge. This
method[5] has more than once been employed for discovering the analogy of
elements and of their compounds; and as crystals are measurable, and the
capacity to form crystalline mixtures can be experimentally verified, this method
is a numerical and measurable one, and in no sense arbitrary.
The regularity and simplicity expressed by the exact laws of crystalline form
repeat themselves in the aggregation of the atoms to form molecules. Here, as
there, there are but few forms which are essentially different, and their apparent
diversity reduces itself to a few fundamental differences of type. There the
molecules aggregate themselves into crystalline forms; here, the atoms
aggregate themselves into molecular forms or into the types of compounds. In
both cases the fundamental crystalline or molecular forms are liable to
variations, conjunctions, and combinations. If we know that potassium gives
compounds of the fundamental type KX, where X is a univalent element (which
combines with one atom of hydrogen, and is, according to the law of
substitution, able to replace it), then we know the composition of its
compounds: K2O, KHO, KCl, NH2K, KNO3, K2SO4, KHSO4, K2Mg(SO4)2,6H2O, &c.
All the possible derivative crystalline forms are not known. So also all the atomic
combinations are not known for every element. Thus in the case of potassium,
KCH3, K3P, K2Pt, and other like compounds which exist for hydrogen or chlorine,
are unknown.
Only a few fundamental types exist for the building up of atoms into
molecules, and the majority of them are already known to us. If X stand for a
univalent element, and R for an element combined with it, then eight atomic
types may be observed:—
RX, RX2, RX3, RX4, RX5, RX6, RX7, RX8.
Let X be chlorine or hydrogen. Then as examples of the first type we have: H2,
Cl2, HCl, KCl, NaCl, &c. The compounds of oxygen or calcium may serve as
examples of the type RX2: OH2, OCl2, OHCl, CaO, Ca(OH)2, CaCl2, &c. For the
third type RX3 we know the representative NH3 and the corresponding
compounds N2O3, NO(OH), NO(OK), PCl3, P2O3, PH3, SbH3, Sb2O3, B2O3, BCl3,
Al2O3, &c. The type RX4 is known among the hydrogen compounds. Marsh gas,
CH4, and its corresponding saturated hydrocarbons, CnH2n+2, are the best
representatives. Also CH3Cl, CCl4, SiCl4, SnCl4, SnO2, CO2, SiO2, and a whole
series of other compounds come under this class. The type RX5 is also already
familiar to us, but there are no purely hydrogen compounds among its
representatives. Sal-ammoniac, NH4Cl, and the corresponding NH4(OH),
NO2(OH), ClO2(OK), as well as PCl5, POCl3, &c., are representatives of this type.
In the higher types also there are no hydrogen compounds, but in the type RX6
there is the chlorine compound WCl6. However, there are many oxygen
compounds, and among them SO3 is the best known representative. To this
class also belong SO2(OH)2, SO2Cl2, SO2(OH)Cl, CrO3, &c., all of an acid
character. Of the higher types there are in general only oxygen and acid
representatives. The type RX7 we know in perchloric acid, ClO3(OH), and
potassium permanganate, MnO3(OK), is also a member. The type RX8 in a free
state is very rare; osmic anhydride, OsO4, is the best known representative of it.
[6]
The four lower types RX, RX2, RX3, and RX4 are met with in compounds of the
elements R with chlorine and oxygen, and also in their compounds with
hydrogen, whilst the four higher types only appear for such acid compounds as
are formed by chlorine, oxygen, and similar elements.
Among the oxygen compounds the saline oxides which are capable of forming
salts either through the function of a base or through the function of an acid
anhydride attract the greatest interest in every respect. Certain elements, like
calcium and magnesium, only give one saline oxide—for example, MgO,
corresponding with the type MgX2. But the majority of the elements appear in
several such forms. Thus copper gives CuX and CuX2, or Cu2O and CuO. If an
element R gives a higher type RXn, then there often also exist, as if by
symmetry, lower types, RXn-2, RXn-4, and in general such types as differ from RXn
by an even number of X. Thus in the case of sulphur the types SX2, SX4, and SX6
are known—for example SH2, SO2, and SO3. The last type is the highest, SX6.
The types SX5 and SX3 do not exist. But even and uneven types sometimes
appear for one and the same element. Thus the types RX and RX2 are known for
copper and mercury.
Among the saline oxides only the eight types enumerated below are known to
exist. They determine the possible formulæ of the compounds of the elements,
if it be taken into consideration that an element which gives a certain type of
combination may also give lower types. For this reason the rare type of the
suboxides or quaternary oxides R4O (for instance, Ag4O, Ag2Cl) is not
characteristic; it is always accompanied by one of the higher grades of oxidation,
and the compounds of this type are distinguished by their great chemical
instability, and split up into an element and the higher compound (for instance,
Ag4O = 2Ag + Ag2O). Many elements, moreover, form transition oxides whose
composition is intermediate, which are able, like N2O4, to split up into the lower
and higher oxides. Thus iron gives magnetic oxide, Fe3O4, which is in all respects
(by its reactions) a compound of the suboxide FeO with the oxide Fe2O3. The
independent and more or less stable saline compounds correspond with the
following eight types :—
R2O; salts RX, hydroxides ROH. Generally basic like K2O, Na2O, Hg2O, Ag2O,
Cu2O; if there are acid oxides of this composition they are very rare, are only
formed by distinctly acid elements, and even then have only feeble acid
properties; for example, Cl2O and N2O.
R2O2 or RO; salts RX2, hydroxides R(OH)2. The most simple basic salts R2OX2 or
R(OH)X; for instance, the chloride Zn2OCl2; also an almost exclusively basic
type; but the basic properties are more feebly developed than in the preceding
type. For example, CaO, MgO, BaO, PbO, FeO, MnO, &c.
R2O3; salts RX3, hydroxides R(OH)3, RO(OH), the most simple basic salts ROX,
R(OH)X3. The bases are feeble, like Al2O3, Fe2O3, Tl2O3, Sb2O3. The acid
properties are also feebly developed; for instance, in B2O3; but with the non-
metals the properties of acids are already clear; for instance, P2O3, P(OH)3.
R2O4 or RO2; salts RX4 or ROX2, hydroxides R(OH)4, RO(OH)2. Rarely bases
(feeble), like ZrO2, PtO2; more often acid oxides; but the acid properties are in
general feeble, as in CO2, SO2, SnO2. Many intermediate oxides appear in this
and the preceding and following types.
R2O5; salts principally of the types ROX3, RO2X, RO(OH)3, RO2(OH), rarely RX5.
The basic character (X, a halogen, simple or complex; for instance, NO3, Cl,
&c.) is feeble; the acid character predominates, as is seen in N2O5, P2O5,
Cl2O5; then X = OH, OK, &c., for example NO2(OK).
R2O6 or RO3; salts and hydroxides generally of the type RO2X2, RO2(OH)2. Oxides
of an acid character, as SO3, CrO3, MnO3. Basic properties rare and feebly
developed as in UO3.
R2O7; salts of the form RO3X, RO3(OH), acid oxides; for instance, Cl2O7, Mn2O7.
Basic properties as feebly developed as the acid properties in the oxides R2O.
R2O8 or RO4. A very rare type, and only known in OsO4 and RuO4.
It is evident from the circumstance that in all the higher types the acid
hydroxides (for example, HClO4, H2SO4, H3PO4) and salts with a single atom of
one element contain, like the higher saline type RO4, not more than four atoms
of oxygen; that the formation of the saline oxides is governed by a certain
common principle which is best looked for in the fundamental properties of
oxygen, and in general of the most simple compounds. The hydrate of the oxide
RO2 is of the higher type RO22H2O = RH4O4 = R(HO)4. Such, for example, is the
hydrate of silica and the salts (orthosilicates) corresponding with it, Si(MO)4. The
oxide R2O5, corresponds with the hydrate R2O53H2O = 2RH3O4 = 2RO(OH)3.
Such is orthophosphoric acid, PH3O3. The hydrate of the oxide RO3 is RO3H2O =
RH2O4 = RO2(OH)2—for instance, sulphuric acid. The hydrate corresponding to
R2O7 is evidently RHO = RO3(OH)—for example, perchloric acid. Here, besides
containing O4, it must further be remarked that the amount of hydrogen in the
hydrate is equal to the amount of hydrogen in the hydrogen compound. Thus
silicon gives SiH4 and SiH4O4, phosphorus PH3 and PH3O4, sulphur SH2 and
SH2O4, chlorine ClH and ClHO4. This, if it does not explain, at least connects in a
harmonious and general system the fact that the elements are capable of
combining with a greater amount of oxygen, the less the amount of hydrogen
which they are able to retain. In this the key to the comprehension of all further
deductions must be looked for, and we will therefore formulate this rule in
general terms. An element R gives a hydrogen compound RHn, the hydrate of its
higher oxide will be RHnO4, and therefore the higher oxide will contain 2RHnO4 -
nH2O = R2O8 - n. For example, chlorine gives ClH, hydrate ClHO4, and the higher
oxide Cl2O7. Carbon gives CH4 and CO2. So also, SiO2 and SiH4 are the higher
compounds of silicon with hydrogen and oxygen, like CO2 and CH4. Here the
amounts of oxygen and hydrogen are equivalent. Nitrogen combines with a
large amount of oxygen, forming N2O5, but, on the other hand, with a small
quantity of hydrogen in NH3. The sum of the equivalents of hydrogen and
oxygen, occurring in combination with an atom of nitrogen, is, as always in the
higher types, equal to eight. It is the same with the other elements which
combine with hydrogen and oxygen. Thus sulphur gives SO3; consequently, six
equivalents of oxygen fall to an atom of sulphur, and in SH2 two equivalents of
hydrogen. The sum is again equal to eight. The relation between Cl2O7 and ClH
is the same. This shows that the property of elements of combining with such
different elements as oxygen and hydrogen is subject to one common law,
which is also formulated in the system of the elements presently to be
described.[7]
In the preceding we see not only the regularity and simplicity which govern
the formation and properties of the oxides and of all the compounds of the
elements, but also a fresh and exact means for recognising the analogy of
elements. Analogous elements give compounds of analogous types, both higher
and lower. If CO2 and SO2 are two gases which closely resemble each other both
in their physical and chemical properties, the reason of this must be looked for
not in an analogy of sulphur and carbon, but in that identity of the type of
combination, RX4, which both oxides assume, and in that influence which a large
mass of oxygen always exerts on the properties of its compounds. In fact, there
is little resemblance between carbon and sulphur, as is seen not only from the
fact that CO2 is the higher form of oxidation, whilst SO2 is able to further oxidise
into SO3, but also from the fact that all the other compounds—for example, SH2
and CH4, SCl2 and CCl4, &c.—are entirely unlike both in type and in chemical
properties. This absence of analogy in carbon and sulphur is especially clearly
seen in the fact that the highest saline oxides are of different composition, CO2
for carbon, and SO3 for sulphur. In Chapter VIII. we considered the limit to
which carbon tends in its compounds, and in a similar manner there is for every
element in its compounds a tendency to attain a certain highest limit RXn. This
view was particularly developed in the middle of the present century by
Frankland in studying the metallo-organic compounds, i.e. those in which X is
wholly or partially a hydrocarbon radicle; for instance, X = CH3 or C2H5 &c. Thus,
for example, antimony, Sb (Chapter XIX.) gives, with chlorine, compounds SbCl3
and SbCl5 and corresponding oxygen compounds Sb2O3 and Sb2O5, whilst under
the action of CH3I, C2H5I, or in general EI (where E is a hydrocarbon radicle of
the paraffin series), upon antimony or its alloy with sodium there are formed
SbE3 (for example, Sb(CH3)3, boiling at about 81°), which, corresponding to the
lower form of combination SbX3, are able to combine further with EI, or Cl2, or
O, and to form compounds of the limiting type SbX5; for example, SbE4Cl
corresponding to NH4Cl with the substitution of nitrogen by antimony, and of
hydrogen by the hydrocarbon radicle. The elements which are most chemically
analogous are characterised by the fact of their giving compounds of similar
form RXn. The halogens which are analogous give both higher and lower
compounds. So also do the metals of the alkalis and of the alkaline earths. And
we saw that this analogy extends to the composition and properties of the
nitrogen and hydrogen compounds of these metals, which is best seen in the
salts. Many such groups of analogous elements have long been known. Thus
there are analogues of oxygen, nitrogen, and carbon, and we shall meet with
many such groups. But an acquaintance with them inevitably leads to the
questions, what is the cause of analogy and what is the relation of one group to
another? If these questions remain unanswered, it is easy to fall into error in the
formation of the groups, because the notions of the degree of analogy will
always be relative, and will not present any accuracy or distinctness Thus lithium
is analogous in some respects to potassium and in others to magnesium;
beryllium is analogous to both aluminium and magnesium. Thallium, as we shall
afterwards see and as was observed on its discovery, has much kinship with lead
and mercury, but some of its properties appertain to lithium and potassium.
Naturally, where it is impossible to make measurements one is reluctantly
obliged to limit oneself to approximate comparisons, founded on apparent signs
which are not distinct and are wanting in exactitude. But in the elements there
is one accurately measurable property, which is subject to no doubt—namely,
that property which is expressed in their atomic weights. Its magnitude indicates
the relative mass of the atom, or, if we avoid the conception of the atom, its
magnitude shows the relation between the masses forming the chemical and
independent individuals or elements. And according to the teaching of all exact
data about the phenomena of nature, the mass of a substance is that property
on which all its remaining properties must be dependent, because they are all
determined by similar conditions or by those forces which act in the weight of a
substance, and this is directly proportional to its mass. Therefore it is most
natural to seek for a dependence between the properties and analogies of the
elements on the one hand and their atomic weights on the other.
This is the fundamental idea which leads to arranging all the elements
according to their atomic weights. A periodic repetition of properties is then
immediately observed in the elements. We are already familiar with examples of
this:—
F =19,Cl =35·5,Br =80,I =127,
Na =23,K =39, Rb=85,Cs =133,
Mg=24,Ca=340, Sr =87, Ba=137.
The essence of the matter is seen in these groups. The halogens have smaller
atomic weights than the alkali metals, and the latter than the metals of the
alkaline earths. Therefore, if all the elements be arranged in the order of their
atomic weights, a periodic repetition of properties is obtained. This is expressed
by the law of periodicity, the properties of the elements, as well as the forms
and properties of their compounds, are in periodic dependence or (expressing
ourselves algebraically) form a periodic function of the atomic weights of the
elements.[8] Table I. of the periodic system of the elements, which is placed at
the very beginning of this book, is designed to illustrate this law. It is arranged
in conformity with the eight types of oxides described in the preceding pages,
and those elements which give the oxides, R2O and consequently salts RX, form
the 1st group; the elements giving R2O2 or RO as their highest grade of
oxidation belong to the 2nd group; those giving R2O3 as their highest oxides
form the 3rd group, and so on; whilst the elements of all the groups which are
nearest in their atomic weights are arranged in series from 1 to 12. The even
and uneven series of the same groups present the same forms and limits, but
differ in their properties, and therefore two contiguous series, one even and the
other uneven—for instance, the 4th and 5th—form a period. Hence the elements
of the 4th, 6th, 8th, 10th, and 12th, or of the 3rd, 5th, 7th, 9th, and 11th, series
form analogues, like the halogens, the alkali metals, &c. The conjunction of two
series, one even and one contiguous uneven series, thus forms one large period.
These periods, beginning with the alkali metals, end with the halogens. The
elements of the first two series have the lowest atomic weights, and in
consequence of this very circumstance, although they bear the general
properties of a group, they still show many peculiar and independent properties.
[9]
Thus fluorine, as we know, differs in many points from the other halogens,
and lithium from the other alkali metals, and so on. These lightest elements may
be termed typical elements. They include—
H.
Li, Be, B, C, N, O, F.
Na, Mg....
In the annexed table all the remaining elements are arranged, not in groups
and series, but according to periods. In order to understand the essence of the
matter, it must be remembered that here the atomic weight gradually increases
along a given line; for instance, in the line commencing with K = 39 and ending
with Br = 80, the intermediate elements have intermediate atomic weights, as is
clearly seen in Table III., where the elements stand in the order of their atomic
weights.
I. II. III.IV. V. VI.VII. I. II. III. IV. V. VI.VII.
Even Series.
MgAl Si P S Cl
K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br
Rb Sr Y Zr Nb Mo — RuRhPdAg Cd In Sn Sb Te I
Cs Ba La CeDi? — — — — — — — — — — — —
— — Yb — Ta W — Os Ir Pt Au Hg Tl Pb Bi — —
— — — Th— U
Uneven Series.
The same degree of analogy that we know to exist between potassium,
rubidium, and cæsium; or chlorine, bromine, and iodine; or calcium, strontium,
and barium, also exists between the elements of the other vertical columns.
Thus, for example, zinc, cadmium, and mercury, which are described in the
following chapter, present a very close analogy with magnesium. For a true
comprehension of the matter[10] it is very important to see that all the aspects of
the distribution of the elements according to their atomic weights essentially
express one and the same fundamental dependence—periodic properties.[11] The
following points then must be remarked in it.
1. The composition of the higher oxygen compounds is determined by the
groups: the first group gives R2O, the second R2O2 or RO, the third R2O3, &c.
There are eight types of oxides and therefore eight groups. Two groups give a
period, and the same type of oxide is met with twice in a period. For example, in
the period beginning with potassium, oxides of the composition RO are formed
by calcium and zinc, and of the composition RO3 by molybdenum and tellurium.
The oxides of the even series, of the same type, have stronger basic properties
than the oxides of the uneven series, and the latter as a rule are endowed with
an acid character. Therefore the elements which exclusively give bases, like the
alkali metals, will be found at the commencement of the period, whilst such
purely acid elements as the halogens will be at the end of the period. The
interval will be occupied by intermediate elements, whose character and
properties we shall afterwards describe. It must be observed that the acid
character is chiefly proper to the elements with small atomic weights in the
uneven series, whilst the basic character is exhibited by the heavier elements in
the even series. Hence elements which give acids chiefly predominate among
the lightest (typical) elements, especially in the last groups; whilst the heaviest
elements, even in the last groups (for instance, thallium, uranium) have a basic
character. Thus the basic and acid characters of the higher oxides are
determined (a) by the type of oxide, (b) by the even or uneven series, and (c)
by the atomic weight.[11 bis] The groups are indicated by Roman numerals from I.
to VIII.
2. The hydrogen compounds being volatile or gaseous substances which are
prone to reaction—such as HCl, H2O, H3N, and H4C[12]—are only formed by the
elements of the uneven series and higher groups giving oxides of the forms
R2On, RO3, R2O5, and RO2.
3. If an element gives a hydrogen compound, RXm, it forms an organo-
metallic compound of the same composition, where X = CnH2n+1; that is, X is the
radicle of a saturated hydrocarbon. The elements of the uneven series, which
are incapable of giving hydrogen compounds, and give oxides of the forms RX,
RX2, RX3, also give organo-metallic compounds of this form proper to the higher
oxides. Thus zinc forms the oxide ZnO, salts ZnX2 and zinc ethyl Zn(C2H5)2. The
elements of the even series do not seem to form organo-metallic compounds at
all; at least all efforts for their preparation have as yet been fruitless—for
instance, in the case of titanium, zirconium, or iron.
4. The atomic weights of elements belonging to contiguous periods differ
approximately by 45; for example, K<Rb, Cr<Mo, Br<I. But the elements of the
typical series show much smaller differences. Thus the difference between the
atomic weights of Li, Na, and K, between Ca, Mg, and Be, between Si and C,
between S and O, and between Cl and F, is 16. As a rule, there is a greater
difference between the atomic weights of two elements of one group and
belonging to two neighbouring series (Ti-Si = V-P = Cr-S = Mn-Cl = Nb-As, &c.
= 20); and this difference attains a maximum with the heaviest elements (for
example, Th-Pb = 26, Bi-Ta = 26, Ba-Cd = 25, &c.). Furthermore, the difference
between the atomic weights of the elements of even and uneven series also
increases. In fact, the differences between Na and K, Mg and Ca, Si and Ti, are
less abrupt than those between Pb and Th, Ta and Bi, Cd and Ba, &c. Thus even
in the magnitude of the differences of the atomic weights of analogous elements
there is observable a certain connection with the gradation of their properties.[12
bis]
testbankdeal.com