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

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))

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.