45 lines
		
	
	
		
			84 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			84 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
---
 | 
						|
title: "std::math::tan"
 | 
						|
excerpt: "Compute the tangent of a number (in radians)."
 | 
						|
layout: manual
 | 
						|
---
 | 
						|
 | 
						|
Compute the tangent of a number (in radians).
 | 
						|
 | 
						|
 | 
						|
 | 
						|
```js
 | 
						|
tan(num: number(rad)): number(_)
 | 
						|
```
 | 
						|
 | 
						|
 | 
						|
### Arguments
 | 
						|
 | 
						|
| Name | Type | Description | Required |
 | 
						|
|----------|------|-------------|----------|
 | 
						|
| `num` | `number(rad)` |  | Yes |
 | 
						|
 | 
						|
### Returns
 | 
						|
 | 
						|
`number(_)`
 | 
						|
 | 
						|
 | 
						|
### Examples
 | 
						|
 | 
						|
```js
 | 
						|
exampleSketch = startSketchOn("XZ")
 | 
						|
  |> startProfileAt([0, 0], %)
 | 
						|
  |> angledLine({
 | 
						|
    angle = 50,
 | 
						|
    length = 50 * tan(1/2),
 | 
						|
  }, %)
 | 
						|
  |> yLineTo(0, %)
 | 
						|
  |> close()
 | 
						|
 | 
						|
example = extrude(exampleSketch, length = 5)
 | 
						|
```
 | 
						|
 | 
						|

 | 
						|
 | 
						|
 |