Help in introduction to julia course

Hi.

In the plotting exercise 8.1 I get an error method I do not understand.

Exercises

8.1

Given

x = -10:10

plot y vs. x for y = x²

When I try the following I get an error:

x = -10:10
y = x ^ 2

MethodError: no method matching ^(::UnitRange{Int64}, ::Int64) …

I have a feeling that I misunderstood something in the exercise, but I’m clueless.

Thanks for your help
Kristian

Has the course talked about broadcasting or elementwise operations yet? That would be worth a review.

1 Like

It has. Thank you!
It was just the hint I needed.