- Home
- R-Forge
**russmisc**: A repository for a variety of useful functions.**pythag**: Calculate the pythagorean theorem to solve for A, B, or C

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

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

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

- aggregateErrorTerms: Calculate the aggregated error term from an aov object
- aspect: Solve right-triangles systems involving (monitor) aspect...
- aspell_add_word: Add a word to the end of an aspell dictionary
- bmp.save: Save current plot as a bmp
- center: Center a variable
- conv2Dto3D: Calculate a real world position of a projected object
- conv3Dto2D: Calculate the projection position of a real world object
- convertID: Convert Excel Column ID
- counterbalance: Get a set of minimially replicated sequences
- debackslash: Debackslash
- degrees: Convert radians to degrees
- dfEffects: Degrees of Freedom and Effects
- dist3D: Calculate the distance between two 3D points
- droplead0: droplead0
- EBR.Table.18.25: Essentials of Behavioral Research: Methods and Data Analysis,...
- effectTerms: Extract the main effects and interactions from an aov object
- errorTermRatios: Calculate the ratio of error terms from an aov object
- errorTerms: Extract the error terms from an aov object
- examples213: Examples for Psych 213 taught at University of California,...
- factory: Catch errors and warnings and store them for subsequent...
- fft.binFreqs: Report the frequencies of the the bins in an FFT
- fft.binN: Find the number of FFT bins
- fft.binSize: Find the size of an FFT bin
- glibrary: Try to load a library, if that fails, install it, then load...
- in2m: Convert inches to meters
- km2mi: Convert kilometers to miles
- latexFigure: Insert a figure in LaTex
- latex.p: Format a p-value for LaTex
- latinSquareCyclic: Create a cyclic latin square
- latinSquareDigram: Create a digram-balanced latin square
- lawOfCos: Use the law of sines Use the law of cosines to calculate an...
- longframe: Transform a wide dataset into a long dataset.
- LScore: Calculate an L score
- m2in: Convert meters to inches
- MAD: Calculate the median absolute deviation (MAD)
- makewave: Make wave
- MEANS.STD.CORR: Write out the variables from X in a MPLUS MEANS STD CORR...
- mi2km: Convert miles to kilometers
- MSE: Calculate the mean squared error
- notin: Not in
- popscale: Population scale/Z scores
- popsd: Calculate the population standard deviation of x Usage...
- pythag: Calculate the pythagorean theorem to solve for A, B, or C
- r2t: Convert r to a t
- radians: Convert degrees to radians
- rCounternull: Calcualte the counter null of a correlation coefficient
- rScore: Calculate an r score
- russmisc-defunct: Defunct function(s) in the russmisc package
- russmisc-deprecated: Deprecated function(s) in the russmisc package
- russmisc-package: russmisc-package placeholder
- russmisc.refresh: Refresh the russmisc package
- SSE: Calculate the sum of squared errors
- stimsize: Calculate a stimulus size given a visual angle and viewing...
- t2r: Convert t to a r
- table.png: Print LaTex Table Direction to an Image
- tContrast: Conduct a t-contrast
- trimval: Trim values Usage trimval(x, tr=.2, na.rm=TRUE)
- unfactor: Unfactor a vector
- uniquePermutations: Create a unique set of permutations
- updateTex: Update a .tex file from .rnw file if needed
- useAggregateErrorTerms: Calculate new F and p-values using an aggregated error term...
- viewdist: Calculate a viewing distance given a visual angle and...
- visangle: Calculate visual angle given a stimulus size and viewing...
- visangle3D: Calculate visual angle given a 3D viewer position, stimulus...
- visangle3D.l: Helper function for visangle3D to handle lists
- widenames: Generate Names for a Wide Stuctured Dataset
- winvar: Calculate the winsorized variance of x Usage winvar(x, tr=.2,...
- Zmodified: Calculate the Iglewicz and Hoaglin (1993) Z modified