[UP]


Manual Reference Pages  - sind (3)

NAME

sind(3f) - [M_units:TRIGONOMETRY] calculate sine of value in degrees (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Example
Author
License

SYNOPSIS

elemental real function sind(degrees)

    class(*),intent(in) :: degrees

DESCRIPTION

Calculate sine of input value in degrees

OPTIONS

degrees
  any standard scalar value supported by anyscalar_to_double(3f)

EXAMPLE

Sample program

   program demo_sind
   use M_units, only :  sind
   implicit none
      write(*,*)’With REAL array input    ’, sind([ 0.0, 15.0, 30.0, 45.0, &
                                           & 60.0, 75.0, 90.0, 180.0, 270.0 ])
      write(*,*)’With INTEGER array input ’, sind([0,15,30,45,60,75,90,180,270])
      write(*,*)’With DOUBLEPRECISION     ’,           &
         & sind(0.0d0),sind(15.0d0),sind(90.0/3.0d0),  &
         & sind(90.0/2.0d0),sind(60.0d0),sind(75.0d0), &
         & sind(90.0d0),sind(180.0d0),sind(270.0d0)
   end program demo_sind

Results

   With REAL array input      0.00000000      0.258819044      0.500000000
                              0.707106829     0.866025448      0.965925813
                              1.00000000     -8.74227766E-08  -1.00000000
   With INTEGER array input   0.00000000      0.258819044      0.500000000
                              0.707106829     0.866025448      0.965925813
                              1.00000000      -8.74227766E-08  -1.00000000
   With DOUBLEPRECISION       0.00000000      0.258819044      0.500000000
                              0.707106829     0.866025448      0.965925813
                              1.00000000      -8.74227766E-08  -1.00000000

AUTHOR

John S. Urban

LICENSE

Public Domain


sind (3) October 17, 2020
Generated by manServer 1.08 from bf25d971-84b1-4858-b5ac-9b7b80b1e18f using man macros.