# Commands

## &#x20;`Math`&#x20;

### Display

> DAS will parse your text (supports TeX) before converting it into a high-quality image. An embed containing the rendered image with delete and confirm buttons will be returned.

{% tabs %}
{% tab title="Syntax" %}

```
/display <text>
```

{% endtab %}

{% tab title="Example" %}
![Displaying a function](https://736047561-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mfaq-fJ9td28Za2csNM%2F-Mjm_GfD-AbLVlAFM4uF%2F-MjmaF2X6qDzJLgajgGE%2Fimage.png?alt=media\&token=a9347817-e8c2-471c-bea3-019fa6315492)
{% endtab %}
{% endtabs %}

{% hint style="info" %}
To *render TeX without having to use a command, simply enable Automatic TeX Recognition (ATR)  with*`/atr`*. Now, anything in between a pair of dollar signs will be automatically converted.*
{% endhint %}

### Graph

> DAS will parse either a function, relation, expression, or vector and optional domain and optional range before converting those inputs into a high-quality graph. An embed containing the plotted graph with delete and confirm buttons will be returned.

{% tabs %}
{% tab title="Syntax" %}

```
/graph single function <func> <var> <dom> <ran>
/graph single relation <relation> <domain> <range>
/graph single 3d <expression> <domain> <range>
/graph single vector <vector> <origin>

/graph multiple functions <f1> <f2> <var> <dom> <ran>
/graph multiple relations <rel1> <rel2> <dom> <ran>
/graph multiple 3d <expr1> <expr2> <dom> <ran>
/graph multiple vectors <v1> <v2> <o1> <o2>

/graph parametric equations <xt> <yt> <start> <end>
```

{% endtab %}

{% tab title="Example" %}
![Graphing an inverse and its original](https://736047561-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mfaq-fJ9td28Za2csNM%2F-MjmTNRbvWbO5lA-6L4a%2F-MjmWpBCis6_viS3XJZo%2Fimage.png?alt=media\&token=8d7102b7-f092-43f7-bee7-94465e0986a9)
{% endtab %}
{% endtabs %}

{% hint style="info" %}
For a more in-depth overview of DAS' graphing powers, check out the dedicated [Graphing Tutorial](https://emperorowl.gitbook.io/das/graphing-tutorial).
{% endhint %}

### Limit

> DAS will parse a function and variable before evaluating the limit at the specified coordinate. An embed containing the answer with graph, delete and confirm buttons will be returned.

{% tabs %}
{% tab title="Syntax" %}

```
/limit <function> <variable> <coordinate>
```

{% endtab %}

{% tab title="Example" %}
![Finding the limit as x approaches negative infinity](https://736047561-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mfaq-fJ9td28Za2csNM%2F-Mjm_GfD-AbLVlAFM4uF%2F-MjmaUOq4b-qxKyG4bxx%2Fimage.png?alt=media\&token=e3f6cd55-b174-413e-a3ce-4fb8f1860db4)
{% endtab %}
{% endtabs %}

{% hint style="info" %}
*To find the limit at infinity or negative infinity, simply type `oo` or `-oo` as the`coordinate`.*
{% endhint %}

### Derive

> DAS will parse a function and variable before determining the derivative. An embed containing the answer with graph, delete and confirm buttons will be returned.

{% tabs %}
{% tab title="Syntax" %}

```
/derive <function> <variable>
```

{% endtab %}

{% tab title="Example" %}
![Deriving an equation](https://736047561-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mfaq-fJ9td28Za2csNM%2F-Mjm_GfD-AbLVlAFM4uF%2F-MjmapJkQHd8i89vx8Cd%2Fimage.png?alt=media\&token=9e7975a0-b532-4680-b2b8-c616a6cca516)
{% endtab %}
{% endtabs %}

### Integrate

> DAS will parse a function, variable and optional lower and upper terminals before determining the indefinite integral. If the terminals have been specified, then the definite integral will be evaluated as well. An embed containing the answer with graph, delete and confirm buttons will be returned.

{% tabs %}
{% tab title="Syntax" %}

```
/integrate <func> <var> <lt> <ut>
```

{% endtab %}

{% tab title="Example" %}
![Integrating an equation](https://736047561-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mfaq-fJ9td28Za2csNM%2F-Mjm_GfD-AbLVlAFM4uF%2F-MjmbAaD9uRM-9rvmjK1%2Fimage.png?alt=media\&token=b36a21af-be61-4670-a9b2-cd766c3140f0)
{% endtab %}
{% endtabs %}

### Solve

> DAS will parse an equation, variable and optional domain (either real or complex number) before determining the solution. Supports trigonometric solutions. An embed containing the answer with delete and confirm buttons will be returned.

{% tabs %}
{% tab title="Syntax" %}

```
/solve <equation> <variable> <domain>
```

{% endtab %}

{% tab title="Example" %}
![Solving an equation](https://736047561-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mfaq-fJ9td28Za2csNM%2F-Mjm_GfD-AbLVlAFM4uF%2F-MjmbPyVMPD4aAssKFsV%2Fimage.png?alt=media\&token=b88de361-20f1-4798-be69-2e05fad19ac3)
{% endtab %}
{% endtabs %}

{% hint style="info" %}
*If an expression is entered, then DAS will solve the expression equal to zero (i.e. determine its roots).*
{% endhint %}

### Expand/Factor/Simplify

> DAS will parse an expression before determining the expansion, factorisation or simplification. An embed containing the answer with delete and confirm buttons will be returned.

{% tabs %}
{% tab title="Syntax" %}

```
/expand <expression>
/factor <expression>
/simplify <expression>
```

{% endtab %}
{% endtabs %}

### Average

> DAS will calculate the average of a list of numbers separated by a space.

{% tabs %}
{% tab title="Syntax" %}

```
/average <numbers>
```

{% endtab %}
{% endtabs %}

### Calculate

> DAS will evaluate your expression.

{% tabs %}
{% tab title="Syntax" %}

```
/calculate <expression>
```

{% endtab %}
{% endtabs %}

### ATR

> DAS will toggle automatic TeX recognition for your server. Requires manage messages permission.

{% tabs %}
{% tab title="Syntax" %}

```
/atr
```

{% endtab %}

{% tab title="Example" %}
![Enabling and using ATR](https://736047561-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mfaq-fJ9td28Za2csNM%2F-MjlKmtUuXxBAPJrvDmu%2F-Mjm8X1Q93JzH5sDteKm%2Fimage.png?alt=media\&token=f61e44dc-7a78-4c19-971d-3b5d72f6151c)
{% endtab %}
{% endtabs %}

## &#x20;`Other`&#x20;

### About

> DAS will display the about page.

```
/about
```

### Invite

> DAS will send the bot's invite link.

```
/invite
```

### Ping

> DAS will return the ping.

```
/ping
```

### Server

> DAS will send the bot's server invite.

```
/server
```

### Vote

> DAS will send the bot's vote link.

```
/vote
```
