time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (737B)


      1 
      2 {{alias}}( y, x )
      3     Computes the angle in the plane (in radians) between the positive x-axis and
      4     the ray from (0,0) to the point (x,y).
      5 
      6     Parameters
      7     ----------
      8     y: number
      9         Coordinate along y-axis.
     10 
     11     x: number
     12         Coordinate along x-axis.
     13 
     14     Returns
     15     -------
     16     out: number
     17         Angle (in radians).
     18 
     19     Examples
     20     --------
     21     > var v = {{alias}}( 2.0, 2.0 )
     22     ~0.785
     23     > v = {{alias}}( 6.0, 2.0 )
     24     ~1.249
     25     > v = {{alias}}( -1.0, -1.0 )
     26     ~-2.356
     27     > v = {{alias}}( 3.0, 0.0 )
     28     ~1.571
     29     > v = {{alias}}( -2.0, 0.0 )
     30     ~-1.571
     31     > v = {{alias}}( 0.0, 0.0 )
     32     0.0
     33     > v = {{alias}}( 3.0, NaN )
     34     NaN
     35     > v = {{alias}}( NaN, 2.0 )
     36     NaN
     37 
     38     See Also
     39     --------
     40