mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
38 lines
709 B
Markdown
38 lines
709 B
Markdown
# Function help
|
|
|
|
Retrieve help on a function or data type.
|
|
Help files are retrieved from the documentation in math.expression.docs.
|
|
|
|
|
|
## Syntax
|
|
|
|
```js
|
|
math.help(search)
|
|
```
|
|
|
|
### Parameters
|
|
|
|
Parameter | Type | Description
|
|
--------- | ---- | -----------
|
|
`search` | function | string | Object | A function or function name for which to get help
|
|
|
|
### Returns
|
|
|
|
Type | Description
|
|
---- | -----------
|
|
Help | A help object
|
|
|
|
|
|
## Examples
|
|
|
|
```js
|
|
console.log(math.help('sin').toString());
|
|
console.log(math.help(math.add).toString());
|
|
console.log(math.help(math.add).toJSON());
|
|
```
|
|
|
|
|
|
|
|
|
|
<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
|