Essential Java for Scientists and Engineers -  Brian H. Hahn,  Katherine M. Malan

Essential Java for Scientists and Engineers (eBook)

eBook Download: PDF
2002 | 1. Auflage
352 Seiten
Elsevier Science (Verlag)
978-0-08-050591-6 (ISBN)
Systemvoraussetzungen
44,93 inkl. MwSt
  • Download sofort lieferbar
  • Zahlungsarten anzeigen
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/0750659912

A 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
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. - Takes a 'dive-in' approach, getting the reader writing and running programs immediately- Teaches object-oriented programming for problem-solving in engineering and science

Front Cover 1
Essential Java for Scientists and Engineers 4
Copyright Page 5
Contents 6
Preface 14
Acknowledgements 17
Part l: Essentials 18
Chapter 1. Getting going 20
1.1 Introduction to programming 20
1.2 Setting up your computer for programming in Java 21
1.3 Writing your first Java program 23
1.4 Input and output 26
1.5 Comments 28
1.6 Using objects 29
1.7 Java on the WWW (optional) 32
Chapter 2. Java programming basics 37
2.1 Compound interest again 37
2.2 Primitive data types 40
2.3 Names 42
2.4 Vertical motion under gravity 43
2.5 Operators, expressions and assignments 44
2.6 Repeating with for 47
2.7 Deciding with if 55
2.8 Characters 62
2.9 Math methods 63
2.10 Programming style 63
Chapter 3. Solving a problem in Java 72
3.1 Introduction 72
3.2 The class provider, class user and end user 73
3.3 What are objects and classes? 73
3.4 Writing and using a simple class 75
3.5 How memory works 76
3.6 The String class 79
3.7 Understanding methods 80
3.8 Example: simulating a rabbit colony 83
3.9 Access modifiers 87
3.10 Example: simulating the growth of trees 88
3.11 Scope 91
3.12 More on object handles 92
3.13 The static keyword 97
3.14 Naming conventions 100
3.15 Using the Java API 101
3.16 Making your own package (optional) 101
Chapter 4. More on loops 106
4.1 Determinate repetition with for 106
4.2 Indeterminate repetition with while 115
Chapter 5. Debugging 131
5.1 Compilation errors 131
5.2 Run-time errors 134
5.3 Errors in logic 136
5.4 Rounding errors 136
Chapter 6. Arrays and matrices 140
6.1 Introduction 140
6.2 The basics of arrays 142
6.3 Passing arrays to methods 145
6.4 Frequency distributions: a simple bar chart 145
6.5 Multi-dimensional arrays 146
6.6 Arrays of objects 150
6.7 Sorting an array 151
Part II: More advanced topics 158
Chapter 7. Inheritance 160
7.1 Introduction 160
7.2 Inheritance in Java 162
7.3 Constructors and inheritance 167
7.4 The Object class 169
7.5 Abstract classes and interfaces 171
Chapter 8. Graphical user interfaces (GUIs) 177
8.1 Introduction 177
8.2 Building a Swing application 178
8.3 Arranging components 184
8.4 A colour chooser application 187
8.5 Painting 191
8.6 Drawing mathematical graphs 202
8.7 Fractals 206
Chapter 9. Input/output 214
9.1 Introduction 214
9.2 Input through command line parameters 215
9.3 Input from the keyboard without the essential package 215
9.4 Streams 216
9.5 File input/output 218
9.6 Manipulating data 221
9.7 Streams and the Internet 222
Chapter 10. Exceptions 226
10.1 Introduction 226
10.2 Exceptions in Java 226
10.3 Throwing exceptions 228
10.4 Handling exceptions 231
10.5 Exceptions and file input 234
Part III: Some applications 242
Chapter 11. Simulation 244
11.1 Random number generation 244
11.2 Spinning coins 246
11.3 Rolling dice 247
11.4 Bacteria division 247
11.5 Radioactive decay 247
11.6 A random walk 250
11.7 Traffic flow 253
Chapter 12. Modelling with matrices 259
12.1 Using the Matrix class 259
12.2 Networks 261
12.3 Leslie matrices: population growth 265
12.4 Markov processes 269
12.5 Linear equations 273
Chapter 13. Introduction to numerical methods 279
13.1 Equations 279
13.2 Numerical differentiation 287
13.3 Integration 289
13.4 First-order differential equations 291
13.5 Runge–Kutta methods 296
13.6 Driver: a GUI to solve ODEs 301
13.7 A partial differential equation 307
Appendix A: Keywords 315
Appendix B: Operators 316
Appendix C: Syntax quick reference 317
C.1 Primitive type declarations 317
C.2 Methods 317
C.3 Classes 318
C.4 Decisions 318
C.5 Loops 319
Appendix D: Solutions to selected exercises 321
Index 350

Erscheint lt. Verlag 1.5.2003
Sprache englisch
Themenwelt Kinder- / Jugendbuch
Schulbuch / Wörterbuch
Informatik Programmiersprachen / -werkzeuge Java
Mathematik / Informatik Mathematik Computerprogramme / Computeralgebra
ISBN-10 0-08-050591-0 / 0080505910
ISBN-13 978-0-08-050591-6 / 9780080505916
Haben Sie eine Frage zum Produkt?
PDFPDF (Adobe DRM)

Kopierschutz: Adobe-DRM
Adobe-DRM ist ein Kopierschutz, der das eBook vor Mißbrauch schützen soll. Dabei wird das eBook bereits beim Download auf Ihre persönliche Adobe-ID autorisiert. Lesen können Sie das eBook dann nur auf den Geräten, welche ebenfalls auf Ihre Adobe-ID registriert sind.
Details zum Adobe-DRM

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schränkt geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen eine Adobe-ID und die Software Adobe Digital Editions (kostenlos). Von der Benutzung der OverDrive Media Console raten wir Ihnen ab. Erfahrungsgemäß treten hier gehäuft Probleme mit dem Adobe DRM auf.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen eine Adobe-ID sowie eine kostenlose App.
Geräteliste und zusätzliche Hinweise

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Einführung, Ausbildung, Praxis

von Christian Ullenboom

eBook Download (2023)
Rheinwerk Computing (Verlag)
34,93
Moderne GUIs für RIAs und Java-Applikationen

von Ralph Steyer

eBook Download (2022)
Springer Fachmedien Wiesbaden (Verlag)
42,99