hypot 302 B

123456789101112131415161718192021
  1. .TH HYPOT 2
  2. .SH NAME
  3. hypot \- Euclidean distance
  4. .SH SYNOPSIS
  5. .B #include <u.h>
  6. .br
  7. .B #include <libc.h>
  8. .PP
  9. .nf
  10. .B
  11. double hypot(double x, double y)
  12. .fi
  13. .SH DESCRIPTION
  14. .I Hypot
  15. returns
  16. .EX
  17. sqrt(x*x + y*y)
  18. .EE
  19. taking precautions against unwarranted overflows.
  20. .SH SOURCE
  21. .B /sys/src/libc/port/hypot.c