Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.netlib.util
Class StrictUtil

    java.lang.Object
      org.netlib.util.Util
          org.netlib.util.StrictUtil

    public class StrictUtil

extends Util

StrictMath versions of various math related Fortran intrinsic functions.

This file is part of the Fortran-to-Java (f2j) system, developed at the University of Tennessee.

This class contains Strict versions of the math related utilities in `Util`.

Author:
  Keith Seymour (seymour@cs.utk.edu)

Constructor Summary
`StrictUtil()`

Method Summary
`static double` | `cosh(double a)` Fortran hyperbolic cosine (COSH) intrinsic function.
`static double` | `ddim(double a1, double a2)` Fortran double precision positive difference (DDIM) intrinsic function.
`static float` | `dim(float a1, float a2)` Fortran floating point positive difference (DIM) intrinsic function.
`static double` | `dsign(double a1, double a2)` Fortran double precision transfer of sign (DSIGN) intrinsic function.
`static int` | `idim(int a1, int a2)` Fortran integer positive difference (IDIM) intrinsic function.
`static int` | `idnint(double x)` Fortran nearest integer (IDNINT) intrinsic function.
`static int` | `isign(int a1, int a2)` Fortran integer transfer of sign (ISIGN) intrinsic function.
`static double` | `log10(double x)` Base-10 logarithm function.
`static float` | `log10(float x)` Base-10 logarithm function.
`static double` | `max(double x, double y, double z)` Three argument double precision max function.
`static float` | `max(float x, float y, float z)` Three argument single precision max function.
`static int` | `max(int x, int y, int z)` Three argument integer max function.
`static double` | `min(double x, double y, double z)` Three argument double precision min function.
`static float` | `min(float x, float y, float z)` Three argument single precision min function.
`static int` | `min(int x, int y, int z)` Three argument integer min function.
`static int` | `nint(float x)` Fortran nearest integer (NINT) intrinsic function.
`static float` | `sign(float a1, float a2)` Fortran floating point transfer of sign (SIGN) intrinsic function.
`static double` | `sinh(double a)` Fortran hyperbolic sine (SINH) intrinsic function.
`static double` | `tanh(double a)` Fortran hyperbolic tangent (TANH) intrinsic function.

Methods inherited from class org.netlib.util.Util
`f77read, f77write, f77write, pause, pause, strCharAt, stringInsert, stringInsert`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### StrictUtil

    public StrictUtil()

Method Detail

### max

    public static int max(int x,
                          int y,
                          int z)

  Three argument integer max function.

  This function uses Java's StrictMath package.

  Parameters:
    `x` - value 1
    `y` - value 2
    `z` - value 3
  Returns:
    the largest of x, y, or z

### max

    public static float max(float x,
                            float y,
                            float z)

  Three argument single precision max function.

  This function uses Java's StrictMath package.

  Parameters:
    `x` - value 1
    `y` - value 2
    `z` - value 3
  Returns:
    the largest of x, y, or z

### max

    public static double max(double x,
                             double y,
                             double z)

  Three argument double precision max function.

  This function uses Java's StrictMath package.

  Parameters:
    `x` - value 1
    `y` - value 2
    `z` - value 3
  Returns:
    the largest of x, y, or z

### min

    public static int min(int x,
                          int y,
                          int z)

  Three argument integer min function.

  This function uses Java's StrictMath package.

  Parameters:
    `x` - value 1
    `y` - value 2
    `z` - value 3
  Returns:
    the smallest of x, y, or z

### min

    public static float min(float x,
                            float y,
                            float z)

  Three argument single precision min function.

  This function uses Java's StrictMath package.

  Parameters:
    `x` - value 1
    `y` - value 2
    `z` - value 3
  Returns:
    the smallest of x, y, or z

### min

    public static double min(double x,
                             double y,
                             double z)

  Three argument double precision min function.

  This function uses Java's StrictMath package.

  Parameters:
    `x` - value 1
    `y` - value 2
    `z` - value 3
  Returns:
    the smallest of x, y, or z

### log10

    public static double log10(double x)

  Base-10 logarithm function.

  This function uses Java's StrictMath package.

  Parameters:
    `x` - the value
  Returns:
    base-10 log of x

### log10

    public static float log10(float x)

  Base-10 logarithm function.

  This function uses Java's StrictMath package.

  Parameters:
    `x` - the value
  Returns:
    base-10 log of x

### nint

    public static int nint(float x)

  Fortran nearest integer (NINT) intrinsic function.

  Returns:

  - (int)(x+0.5), if x >= 0
  - (int)(x-0.5), if x < 0

  This function uses Java's StrictMath package.

  Parameters:
    `x` - the floating point value
  Returns:
    the nearest integer to x

### idnint

    public static int idnint(double x)

  Fortran nearest integer (IDNINT) intrinsic function.

  Returns:

  - (int)(x+0.5), if x >= 0
  - (int)(x-0.5), if x < 0

  This function uses Java's StrictMath package.

  Parameters:
    `x` - the double precision floating point value
  Returns:
    the nearest integer to x

### sign

    public static float sign(float a1,
                             float a2)

  Fortran floating point transfer of sign (SIGN) intrinsic function.

  Returns:

  - abs(a1), if a2 >= 0
  - -abs(a1), if a2 < 0

  This function uses Java's StrictMath package.

  Parameters:
    `a1` - floating point value
    `a2` - sign transfer indicator
  Returns:
    equivalent of Fortran SIGN(a1,a2) as described above.

### isign

    public static int isign(int a1,
                            int a2)

  Fortran integer transfer of sign (ISIGN) intrinsic function.

  Returns:

  - abs(a1), if a2 >= 0
  - -abs(a1), if a2 < 0

  This function uses Java's StrictMath package.

  Parameters:
    `a1` - integer value
    `a2` - sign transfer indicator
  Returns:
    equivalent of Fortran ISIGN(a1,a2) as described above.

### dsign

    public static double dsign(double a1,
                               double a2)

  Fortran double precision transfer of sign (DSIGN) intrinsic function.

  Returns:

  - abs(a1), if a2 >= 0
  - -abs(a1), if a2 < 0

  This function uses Java's StrictMath package.

  Parameters:
    `a1` - double precision floating point value
    `a2` - sign transfer indicator
  Returns:
    equivalent of Fortran DSIGN(a1,a2) as described above.

### dim

    public static float dim(float a1,
                            float a2)

  Fortran floating point positive difference (DIM) intrinsic function.

  Returns:

  - a1 - a2, if a1 > a2
  - 0, if a1 <= a2

  This function uses Java's StrictMath package.

  Parameters:
    `a1` - floating point value
    `a2` - floating point value
  Returns:
    equivalent of Fortran DIM(a1,a2) as described above.

### idim

    public static int idim(int a1,
                           int a2)

  Fortran integer positive difference (IDIM) intrinsic function.

  Returns:

  - a1 - a2, if a1 > a2
  - 0, if a1 <= a2

  This function uses Java's StrictMath package.

  Parameters:
    `a1` - integer value
    `a2` - integer value
  Returns:
    equivalent of Fortran IDIM(a1,a2) as described above.

### ddim

    public static double ddim(double a1,
                              double a2)

  Fortran double precision positive difference (DDIM) intrinsic function.

  Returns:

  - a1 - a2, if a1 > a2
  - 0, if a1 <= a2

  This function uses Java's StrictMath package.

  Parameters:
    `a1` - double precision floating point value
    `a2` - double precision floating point value
  Returns:
    equivalent of Fortran DDIM(a1,a2) as described above.

### sinh

    public static double sinh(double a)

  Fortran hyperbolic sine (SINH) intrinsic function.

  This function uses Java's StrictMath package.

  Parameters:
    `a` - the value to get the sine of
  Returns:
    the hyperbolic sine of a

### cosh

    public static double cosh(double a)

  Fortran hyperbolic cosine (COSH) intrinsic function.

  This function uses Java's StrictMath package.

  Parameters:
    `a` - the value to get the cosine of
  Returns:
    the hyperbolic cosine of a

### tanh

    public static double tanh(double a)

  Fortran hyperbolic tangent (TANH) intrinsic function.

  This function uses Java's StrictMath package.

  Parameters:
    `a` - the value to get the tangent of
  Returns:
    the hyperbolic tangent of a

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD