# plotting bug

I wanted to plot this function:

```
f(x) = x^2 + 1/x
```

and I plotted it using this command:

```
plot(f, (x, -100, 100))
```

and when I plotted it I got a wrong plot:

https://sagecell.sagemath.org/?z=eJxL06jQVLBVqIgzUtBWMNSv4OXi5SrIyS_RSNNR0KjQUdA1NDDQUQASmpoA34YJmA==&lang=sage (see in sagecell)

Can you say exactly what command you used? Probably it wasn't wrong, but had a very high y-axis because 1/x has an asymptote. Try using

`ymax=10`

as a keyword in your plot.Sorry I forgot to say the plotting command I used ; I edited the post.