Calculate the pythagorean theorem to solve for A, B, or C

Share:

Description

Given that A and B are the legs of a right triangle and C is its hypotenuse: solve for A, B, or C given any other two.

Usage

1
  pythag(a = NULL, b = NULL, c = NULL)

Arguments

a

Leg 1

b

Leg 2

c

Hypotenuse

Value

numeric The length of the unspecified side

References

http://en.wikipedia.org/wiki/Pythagorean_theorem

Examples

1
pythag(a=3,c=pythag(3,4))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.