@nataliapc/mcp-openmsx
Version:
Model context protocol server for openMSX automation and control
37 lines (21 loc) • 514 B
Markdown
# TAN()
## Effect
Returns the tangent of a variable.
## Syntax
`TAN(<Number>)`
## Parameter
`<Number>` can be a value, a numeric variable or an expression in radians.
## Example
```basic
10 PRINT "The tangent of 1 is ";TAN(1)
20 PRINT "The tangent of -1.23 is ";TAN(-1.23)
RUN
The tangent of 1 is 1.5574077246549
The tangent of -1.23 is -2.8198157342686
```
## Related to
`ATN()`, `COS()`, `SIN()`
## Compatibility
MSX-BASIC 1.0 or higher
## Source
Retrieved from "https://www.msx.org/wiki/TAN()"