@@ -424,7 +424,7 @@ end function logspace_1_iint32_n_ibase
424424 ! >
425425 ! > `arange` creates a one-dimensional `array` of the `integer/real` type
426426 ! > with fixed-spaced values of given spacing, within a given interval.
427- ! > ([Specification](../page/specs/stdlib_math.html#arange))
427+ ! > ([Specification](../page/specs/stdlib_math.html#arange-function ))
428428 interface arange
429429 pure module function arange_r_sp(start, end, step) result(result)
430430 real (sp), intent (in ) :: start
@@ -461,7 +461,7 @@ end function arange_i_int64
461461 ! > Version: experimental
462462 ! >
463463 ! > `arg` computes the phase angle in the interval (-π,π].
464- ! > ([Specification](../page/specs/stdlib_math.html#arg))
464+ ! > ([Specification](../page/specs/stdlib_math.html#arg-function ))
465465 interface arg
466466 procedure :: arg_sp
467467 procedure :: arg_dp
@@ -470,7 +470,7 @@ end function arange_i_int64
470470 ! > Version: experimental
471471 ! >
472472 ! > `argd` computes the phase angle of degree version in the interval (-180.0,180.0].
473- ! > ([Specification](../page/specs/stdlib_math.html#argd))
473+ ! > ([Specification](../page/specs/stdlib_math.html#argd-function ))
474474 interface argd
475475 procedure :: argd_sp
476476 procedure :: argd_dp
@@ -479,14 +479,14 @@ end function arange_i_int64
479479 ! > Version: experimental
480480 ! >
481481 ! > `argpi` computes the phase angle of circular version in the interval (-1.0,1.0].
482- ! > ([Specification](../page/specs/stdlib_math.html#argpi))
482+ ! > ([Specification](../page/specs/stdlib_math.html#argpi-function ))
483483 interface argpi
484484 procedure :: argpi_sp
485485 procedure :: argpi_dp
486486 end interface argpi
487487
488488 ! > Returns a boolean scalar/array where two scalar/arrays are element-wise equal within a tolerance.
489- ! > ([Specification](../page/specs/stdlib_math.html#is_close))
489+ ! > ([Specification](../page/specs/stdlib_math.html#is_close-function ))
490490 interface is_close
491491 elemental module logical function is_close_rsp(a, b, rel_tol, abs_tol, equal_nan) result(close )
492492 real (sp), intent (in ) :: a, b
@@ -513,7 +513,7 @@ end function is_close_cdp
513513 ! > Version: experimental
514514 ! >
515515 ! > Returns a boolean scalar where two arrays are element-wise equal within a tolerance.
516- ! > ([Specification](../page/specs/stdlib_math.html#all_close))
516+ ! > ([Specification](../page/specs/stdlib_math.html#all_close-function ))
517517 interface all_close
518518 logical pure module function all_close_1_rsp(a, b, rel_tol, abs_tol, equal_nan) result(close )
519519 real (sp), intent (in ) :: a(:), b(:)
@@ -600,7 +600,7 @@ end function all_close_4_cdp
600600 ! > Version: experimental
601601 ! >
602602 ! > Computes differences between adjacent elements of an array.
603- ! > ([Specification](../page/specs/stdlib_math.html#diff))
603+ ! > ([Specification](../page/specs/stdlib_math.html#diff-function ))
604604 interface diff
605605 pure module function diff_1_sp(x, n, prepend, append) result(y)
606606 real (sp), intent (in ) :: x(:)
@@ -745,17 +745,18 @@ elemental function argd_sp(z) result(result)
745745 complex (sp), intent (in ) :: z
746746 real (sp) :: result
747747
748- result = merge (0.0_sp , atan2 (z% im, z% re), z == ( 0 .0_sp, 0.0_sp )) &
749- * 180 .0_sp/ PI_sp
748+ result = merge (0.0_sp , atan2 (z% im, z% re)* 180 .0_sp/ PI_sp, &
749+ z == ( 0 .0_sp, 0.0_sp ))
750750
751751 end function argd_sp
752752
753753 elemental function argpi_sp (z ) result(result)
754754 complex (sp), intent (in ) :: z
755755 real (sp) :: result
756756
757- result = merge (0.0_sp , atan2 (z% im, z% re), z == (0.0_sp , 0.0_sp )) &
758- / PI_sp
757+ result = merge (0.0_sp , atan2 (z% im, z% re)/ PI_sp, &
758+ z == (0.0_sp , 0.0_sp ))
759+
759760
760761 end function argpi_sp
761762 elemental function arg_dp (z ) result(result)
@@ -770,17 +771,18 @@ elemental function argd_dp(z) result(result)
770771 complex (dp), intent (in ) :: z
771772 real (dp) :: result
772773
773- result = merge (0.0_dp , atan2 (z% im, z% re), z == ( 0 .0_dp, 0.0_dp )) &
774- * 180 .0_dp/ PI_dp
774+ result = merge (0.0_dp , atan2 (z% im, z% re)* 180 .0_dp/ PI_dp, &
775+ z == ( 0 .0_dp, 0.0_dp ))
775776
776777 end function argd_dp
777778
778779 elemental function argpi_dp (z ) result(result)
779780 complex (dp), intent (in ) :: z
780781 real (dp) :: result
781782
782- result = merge (0.0_dp , atan2 (z% im, z% re), z == (0.0_dp , 0.0_dp )) &
783- / PI_dp
783+ result = merge (0.0_dp , atan2 (z% im, z% re)/ PI_dp, &
784+ z == (0.0_dp , 0.0_dp ))
785+
784786
785787 end function argpi_dp
786788
0 commit comments