1. Trang chủ
  2. » Kinh Doanh - Tiếp Thị

Solution manual for FORTRAN for scientists and engineers 4th edition by chapman

5 191 4
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 5
Dung lượng 81,07 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Instructor’s Manual to accompany Chapman Fortran for Scientists and Engineers Fourth Edition Stephen J.. Instructor’s Manual to accompany Fortran for Scientists and Engineers, Fourt

Trang 1

Copyright © McGraw-Hill Education All rights reserved No reproduction or distribution without the prior written consent of McGraw-Hill Education

Instructor’s Manual

to accompany

Chapman

Fortran for Scientists and Engineers

Fourth Edition

Stephen J Chapman BAE Systems Australia

Trang 2

Instructor’s Manual to accompany Fortran for Scientists and Engineers, Fourth Edition, ISBN ???

Copyright © 2018 McGraw-Hill, Inc

All rights reserved Printed in the United States of America No part of this book may be used or reproduced in any manner whatsoever without written permission, with the following exception: homework solutions may be copied for classroom use

Trang 3

Table of Contents

Preface iv

Chapter 1 Introduction to Computers and the Fortran Language 5

Chapter 2 Basic Elements of Fortran 6

Chapter 3 Program Design and Branching Structures 20

Chapter 4 Loops and Character Manipulation 31

Chapter 5 Basic I/O Concepts 70

Chapter 6 Introduction to Arrays 115

Chapter 7 Introduction to Procedures 133

Chapter 8 Additional Features of Arrays 182

Chapter 9 Additional Features of Procedures 200

Chapter 10 More About Character Variables 248

Chapter 11 Additional Intrinsic Data Types 272

Chapter 12 Additional Data Types 288

Chapter 13 Advanced Features of Procedures and Modules 318

Chapter 14 Advanced I/O Concepts 335

Chapter 15 Pointers and Dynamic Data Structures 350

Chapter 16 Object Oriented Programming in Fortran 376

Chapter 17 Coarrays and Parallel Processing 406

Trang 4

Preface

This Solutions Manual accompanies Fortran for Scientists and Engineers 4/e, which is published by

McGraw-Hill Higher Education It provides answers to all of the end-of-chapter exercises in the text, and the source files created when solving these exercises are in a zip file available from the same source as this manual (Please note that the source files in the zip file are in PC format, with CRLF at the end of each line Unix users

of this text may wish to convert the files to the Unix-standard LF line terminations.)

Supplements

A number of supplemental items are available for use with this text A PDF version of this manual, a zip file containing all of the Fortran files files used in the body of this book, and a separate zip file containing the Fortran files for all of the end-of-chapter solutions can be found on the McGraw-Hill Higher Education Web site (http:// http://www.mheducation.com) Note that the PDF version of the manual and the Fortran files for the solutions are password protected, and so only available to authorized instructors The Fortran files for the text may be freely downloaded by anyone

Finally, if you find any errors in the text, please notify me via McGraw-Hill Higher Education I will try to get them corrected, and I will add them to a list of errata posted at the Web site for everyone’s benefit

Stephen J Chapman Melbourne, Australia

Trang 5

Chapter 1 Introduction to Computers and the Fortran Language

1-1 (a) 10102 (b) 1000002 (c) 10011012 (d) 1111112

1-2 (a) 7210 (b) 13710 (b) 25510 (d) 510

1-3 (a) 1273618 and AEF116 (b) 5128 and 14A16 (c) 1578 and 6F16 (d) 37558 and 7ED16

1-4 (a) 111111112 and 25510 (b) 1101010002 and 42410 (c) 10010012 and 7310 (d) 1111111112 and 51110

1-5 A 23-bit mantissa can represent approximately ±222 numbers, or about six significant decimal digits A 9-bit

exponent can represent multipliers between 2-255 and 2255, so the range is from about 10-76 to 1076 1-6 46-bit integer: From -245 to -245-1, or -35,184,372,088,832 to 35,184,372,088,831 64-bit integer: From -263 to

-263-1, or -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

1-7 (a) 1101112 (b) 11111111111110112 (c) 100000000002 (d) 11111100000000002

1-8 The sum of the two’s complement numbers is:

00100001100011102 = 936210

11111100111111002 = -77210

00100001100011102 = 859010

The two answers agree with each other

1-9 011111112 = 12710, and 100000002 = -12810 These results agree with Equations (1-1) and (1-2)

1-10 A 53-bit mantissa can represent approximately ±252 numbers, or about fifteen significant decimal digits An 11-bit

exponent can represent multipliers between 2-1023 and 21023, so the range of double precision numbers is from about

10-307 to 10307

Ngày đăng: 20/08/2020, 11:45

TỪ KHÓA LIÊN QUAN