Clicky

Fortran Wiki
hypot (Rev #2, changes)

Skip the Navigation Links | Home Page | All Pages | Recently Revised | Authors | Feeds | Export |

Showing changes from revision #1 to #2: (追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)

Description

hypot(x,y) is the Euclidean distance function. It is equal to \\sqrt{X^2 + Y^2}, without undue underflow or overflow.

Standard

(削除) Fortran 2008 and later (削除ここまで)(追記) Fortran 2008 (追記ここまで)(追記) and later (追記ここまで)

Class

(削除) Elemental function (削除ここまで)(追記) Elemental function (追記ここまで)

Syntax

result = hypot(x, y)

Arguments

  • x - The type shall be real.
  • y - The type and kind type parameter shall be the same as x.

Return value

The return value has the same type and kind type parameter as x.

Example

program test_hypot
 real(4) :: x = 1.e0_4, y = 0.5e0_4
 x = hypot(x,y)
end program test_hypot

category: (削除) Intrinsics (削除ここまで)(追記) intrinsics (追記ここまで)

Revision from April 30, 2009 22:48:08 by Jason Blevins
Forward in time (to current) | Back in time (1 more) | See current | Hide changes | History | Rollback | View: Source | Linked from: Intrinsic procedures, Fortran 2008, norm2

AltStyle によって変換されたページ (->オリジナル) /