# Displaying tan instead of sin / cos

Newbie question. How do I get SageMath to use tan in its result instead of the ratio and sin and cos?

Example:

```
sage: a = sin(x^2 + x + 1) / cos(x^2 + x + 1)
sage: a
sin(x^2 + x + 1)/cos(x^2 + x + 1)
```

I would hope to see instead:

```
tan(x^2 + x + 1)
```

Thanks, Eric

Welcome to Ask Sage! Thank you for your question.

I added an example in text mode, which is preferrable to an image.

Indeed, it can be copied and pasted, making it easier to explore the issue.