| 
									
										
										
										
											2024-03-13 14:22:22 -07:00
										 |  |  | --- | 
					
						
							|  |  |  | title: "legLen" | 
					
						
							| 
									
										
										
										
											2024-08-06 20:27:26 -04:00
										 |  |  | excerpt: "Compute the length of the given leg." | 
					
						
							| 
									
										
										
										
											2024-03-13 14:22:22 -07:00
										 |  |  | layout: manual | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-06 20:27:26 -04:00
										 |  |  | Compute the length of the given leg. | 
					
						
							| 
									
										
										
										
											2024-03-13 14:22:22 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-13 15:43:42 -07:00
										 |  |  | ```js | 
					
						
							| 
									
										
										
										
											2024-03-13 14:22:22 -07:00
										 |  |  | legLen(hypotenuse: number, leg: number) -> number | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-26 21:28:50 -07:00
										 |  |  | ### Tags
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | * `utilities` | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-13 14:22:22 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | ### Arguments
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-27 07:37:46 -07:00
										 |  |  | | Name | Type | Description | Required | | 
					
						
							|  |  |  | |----------|------|-------------|----------| | 
					
						
							|  |  |  | | `hypotenuse` | `number` |  | Yes | | 
					
						
							|  |  |  | | `leg` | `number` |  | Yes | | 
					
						
							| 
									
										
										
										
											2024-03-13 14:22:22 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | ### Returns
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-27 07:37:46 -07:00
										 |  |  | `number`  | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-13 14:22:22 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-27 07:37:46 -07:00
										 |  |  | ### Examples
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ```js | 
					
						
							|  |  |  | legLen(5, 3) | 
					
						
							|  |  |  | ``` | 
					
						
							| 
									
										
										
										
											2024-03-13 14:22:22 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 |