1. ## an easy question

question: Write an m‐file that returns the plot of y = 5 * sqrt ( k^0.5) over the range 1 ≤ k ≤ 5 in discrete increments of Δk = 0.5 as long as I y I< 8 .

my m-file is;
clc
clear
k=1: 0.5:5;
y = 5 * sqrt ( k.^ 0.5)
plot(k,y)

Is that true? Is everything all right?

2. Originally Posted by chronicals
question: Write an m‐file that returns the plot of y = 5 * sqrt ( k^0.5) over the range 1 ≤ k ≤ 5 in discrete increments of Δk = 0.5 as long as I y I< 8 .

my m-file is;
clc
clear
k=1: 0.5:5;
y = 5 * sqrt ( k.^ 0.5)
plot(k,y)

Is that true? Is everything all right?
It looks OK.

Have you run it?

Why do you have the side condition $|y|<8$ ?

CB

3. Originally Posted by CaptainBlack
It looks OK.

Have you run it?

Why do you have the side condition $|y|<8$ ?

CB
i'm confused of |y|<8 condition like you said, but how can i use this conditon or do i need to use I y<8 I condition?