# Help in introduction to julia course

**URL:** <https://discourse.julialang.org/t/help-in-introduction-to-julia-course/104379>\
**Category:** New to Julia\
**Created:** [September 29, 2023, 7:44am UTC](https://discourse.julialang.org/t/help-in-introduction-to-julia-course/104379 "2023-09-29T07:44:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bagge](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@bagge](https://discourse.julialang.org/u/bagge)\
**Post date:** [September 29, 2023, 7:44am UTC](https://discourse.julialang.org/t/help-in-introduction-to-julia-course/104379/1 "2023-09-29T07:44:26Z")

</div>

Hi.

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

### Exercises

#### 8.1

Given

```julia-auto
x = -10:10

```

plot y vs. x for y = x²

When I try the following I get an error:

```julia-auto
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

---

<div class="post-metadata">

**Author:** ![Benny](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Benny](https://discourse.julialang.org/u/Benny)\
**Post date:** [September 29, 2023, 7:53am UTC](https://discourse.julialang.org/t/help-in-introduction-to-julia-course/104379/2 "2023-09-29T07:53:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bagge](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@bagge](https://discourse.julialang.org/u/bagge)\
**Post date:** [September 29, 2023, 8:00am UTC](https://discourse.julialang.org/t/help-in-introduction-to-julia-course/104379/3 "2023-09-29T08:00:49Z")

</div>

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