Essential Java for Scientists and Engineers

Free Download

Authors:

Edition: 1st

ISBN: 9780750654227, 0-7506-5422-8

Size: 2 MB (2232308 bytes)

Pages: 347/347

File format:

Language:

Publishing Year:

Category: Tags: , ,

Brian D. Hahn, Katherine M. Malan9780750654227, 0-7506-5422-8

Essential Java serves as an introduction to the programming language, Java, for scientists and engineers, and can also be used by experienced programmers wishing to learn Java as an additional language. The book focuses on how Java, and object-oriented programming, can be used to solve science and engineering problems.Many examples are included from a number of different scientific and engineering areas, as well as from business and everyday life. Pre-written packages of code are provided to help in such areas as input/output, matrix manipulation and scientific graphing.Java source code and solutions to selected exercises are available at: www.bh.com/companions/0750659912A free solutions manual is available to lecturers at: http://textbooks.elsevier.com* Takes a ‘dive-in’ approach, getting the reader writing and running programs immediately* Teaches object-oriented programming for problem-solving in engineering and science* Fully supported with online resources and listings to download

Table of contents :
Part I Essentials 1……Page 4
Part II More advanced topics 141……Page 7
Part III Some applications 225……Page 9
Index 333……Page 10
Preface……Page 11
Acknowledgements……Page 14
Part I Essentials……Page 15
1.1 Introduction to programming……Page 16
1.2 Setting up your computer for programming in Java……Page 17
1.3 Writing your first Java program……Page 19
1.4 Input and output……Page 22
1.5 Comments……Page 24
1.6 Using objects……Page 25
1.7 Java on the WWW (optional)……Page 28
2.1 Compound interest again……Page 33
2.2 Primitive data types……Page 36
2.3 Names……Page 38
2.4 Vertical motion under gravity……Page 39
2.5 Operators, expressions and assignments……Page 40
2.6 Repeating with for……Page 43
2.7 Deciding with if……Page 51
2.8 Characters……Page 58
2.10 Programming style……Page 59
3.1 Introduction……Page 68
3.3 What are objects and classes?……Page 69
3.4 Writing and using a simple class……Page 71
3.5 How memory works……Page 72
3.6 The String class……Page 75
3.7 Understanding methods……Page 76
3.8 Example: simulating a rabbit colony……Page 79
3.9 Access modifiers……Page 83
3.10 Example: simulating the growth of trees……Page 84
3.11 Scope……Page 87
3.12 More on object handles……Page 88
3.13 The static keyword……Page 93
3.14 Naming conventions……Page 96
3.16 Making your own package (optional)……Page 97
4.1 Determinate repetition with for……Page 102
4.2 Indeterminate repetition with while……Page 111
5.1 Compilation errors……Page 127
5.2 Run-time errors……Page 130
5.4 Rounding errors……Page 132
6.1 Introduction……Page 136
6.2 The basics of arrays……Page 138
6.4 Frequency distributions: a simple bar chart……Page 141
6.5 Multi-dimensional arrays……Page 142
6.6 Arrays of objects……Page 146
6.7 Sorting an array……Page 147
Part II More advanced topics……Page 154
7.1 Introduction……Page 155
7.2 Inheritance in Java……Page 157
7.3 Constructors and inheritance……Page 162
7.4 The Object class……Page 164
7.5 Abstract classes and interfaces……Page 166
8.1 Introduction……Page 172
8.2 Building a Swing application……Page 173
8.3 Arranging components……Page 179
8.4 A colour chooser application……Page 182
8.5 Painting……Page 186
8.6 Drawing mathematical graphs……Page 197
8.7 Fractals……Page 201
9.1 Introduction……Page 209
9.3 Input from the keyboard without the essential package……Page 210
9.4 Streams……Page 211
9.5 File input/output……Page 213
9.6 Manipulating data……Page 216
9.7 Streams and the Internet……Page 217
10.2 Exceptions in Java……Page 221
10.3 Throwing exceptions……Page 223
10.4 Handling exceptions……Page 226
10.5 Exceptions and file input……Page 229
Part III Some applications……Page 236
11.1 Random number generation……Page 237
11.2 Spinning coins……Page 239
11.5 Radioactive decay……Page 240
11.6 A random walk……Page 243
11.7 Traffic flow……Page 246
12.1 Using the Matrix class……Page 252
12.2 Networks……Page 254
12.3 Leslie matrices: population growth……Page 258
12.4 Markov processes……Page 262
12.5 Linear equations……Page 266
13.1 Equations……Page 272
13.2 Numerical differentiation……Page 280
13.3 Integration……Page 282
13.4 First-order differential equations……Page 284
13.5 Runge–Kutta methods……Page 0
13.6 Driver: a GUI to solve ODEs……Page 294
13.7 A partial differential equation……Page 300
A Keywords……Page 308
B Operators……Page 309
C.2 Methods……Page 310
C.4 Decisions……Page 311
C.5 Loops……Page 312
D Solutions to selected exercises……Page 314
Index……Page 342

Reviews

There are no reviews yet.

Be the first to review “Essential Java for Scientists and Engineers”
Shopping Cart
Scroll to Top