Skip to content

Latest commit

 

History

History
115 lines (89 loc) · 4.18 KB

cpp_intrinsics.md

File metadata and controls

115 lines (89 loc) · 4.18 KB

CPP_INTRINSICS
Test C++ Intrinsic Functions. {#cpp_intrinsics-test-c-intrinsic-functions. align="center"}


CPP_INTRINSICS is a C++ program which tests or demonstrates some of the intrinsic functions provided by the C++ language.

Licensing: {#licensing align="center"}

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Languages: {#languages align="center"}

CPP_INTRINSICS is available in a C++ version.

Related Data and Programs: {#related-data-and-programs align="center"}

C_INTRINSICS, a C program which illustrates the use of intrinsic functions supplied by the C language.

F77_INTRINSICS, FORTRAN77 programs which include some examples of the use of intrinsic functions included with the FORTRAN77 standard language.

F90_INTRINSICS, FORTRAN90 programs which include some examples of the use of intrinsic functions included with the FORTRAN90 standard language.

G++_INTRINSICS, a C++ program which demonstrates some of the intrinsic functions provided by the G++ compiler for C++.

G77_INTRINSICS, FORTRAN77 programs which include some examples of the use of intrinsic functions included with the G77 compiler.

G95_INTRINSICS, FORTRAN90 programs which include some examples of the use of intrinsic functions peculiar to the GNU G95 FORTRAN compiler.

GCC_INTRINSICS, a C++ program which demonstrates some of the intrinsic functions provided by the GCC compiler for C.

GFORTRAN_INTRINSICS, a FORTRAN90 program which demonstrates the use of some of the intrinsic functions included with the GFORTRAN compiler.

MATH_INTRINSICS, a JAVA program which illustrates the use of the intrinsic functions in the Java Math package.

XLF_INTRINSICS, FORTRAN90 programs which include some examples of the use of intrinsic functions peculiar to the IBM XLF FORTRAN compiler.

Reference: {#reference align="center"}

  1. Paul Deitel, Harvey Deitel,
    C++: How to Program,
    Seventh Edition,
    Prentice Hall, 2011,
    ISBN: 978-013-216541-9,
    LC: QA76.73.C153.D45.

Source Code: {#source-code align="center"}

List of Routines: {#list-of-routines align="center"}

  • MAIN is the main program for CPP_INTRINSICS.
  • TEST_ABS tests ABS.
  • TEST_ACOS tests ACOS.
  • TEST_ASIN tests ASIN.
  • TEST_ATAN tests ATAN.
  • TEST_ATAN2 tests ATAN2.
  • TEST_CEIL tests CEIL.
  • TEST_COS tests COS.
  • TEST_COSH tests COSH.
  • TEST_EXP tests EXP.
  • TEST_FABS tests FABS.
  • TEST_FLOOR tests FLOOR.
  • TEST_FMOD tests FMOD.
  • TEST_FREXP tests FREXP.
  • TEST_LDEXP tests LDEXP.
  • TEST_LOG tests LOG.
  • TEST_LOG10 tests LOG10.
  • TEST_MODF tests MODF.
  • TEST_POW tests POW.
  • TEST_SIN tests SIN.
  • TEST_SINH tests SINH.
  • TEST_SQRT tests SQRT.
  • TEST_TAN tests TAN.
  • TEST_TANH tests TANH.
  • I4_MAX returns the maximum of two I4's.
  • I4_MIN returns the smaller of two I4's.
  • I4_UNIFORM returns a scaled pseudorandom I4.
  • R4_NINT returns the nearest integer to an R4.
  • R4_UNIFORM returns a scaled pseudorandom R4.
  • TIMESTAMP prints the current YMDHMS date as a time stamp.

You can go up one level to the C++ source codes.


Last revised on 17 April 2011.