chapter_6 Module

Arrays



Contents


Subroutines

public subroutine p6_1()

DISCUSSION QUESTION How may arrays be declared?

Arguments

None

public subroutine p6_3()

DISCUSSION QUESTION Execute this subroutine on your computer with both bounds checking turned on and bounds checking turned off. What happens?

Arguments

None

public subroutine p6_4()

DISCUSSION QUESTION Determine the shape and size of the arrays specified by the following statements:

Arguments

None

public subroutine p6_5()

DISCUSSION QUESTION Determine which of the following Fortran program fragments are valid. For each valid statement, specify what will happen in the program. (Assume default typing for any variables that are not explicitly typed within the program fragments.)

Arguments

None

public subroutine p6_6()

DISCUSSION QUESTION What is meant by each of the following array terms? Size, shape, extent, rank, conformable.

Arguments

None

public subroutine p6_7()

DISCUSSION QUESTION Given an array my_array defined as shown, determine whether each of the following array sections is valid

Arguments

None

public subroutine p6_8()

DISCUSSION QUESTION What will the output from each of the WRITE statements in the following subroutine be? Why is the output of the two statements different?

Arguments

None

public subroutine p6_10()

Polar to Rectangular Conversion

Read more…

Arguments

None

public subroutine p6_11()

Rectangular to Polar Conversion

Read more…

Arguments

None