00:01
Hello, welcome to this lesson.
00:02
In this lesson, we use c+ + to display the functional evaluation of x from 5 to 1 decrementing x by 0 .5 each time you run a for loop.
00:16
Okay, so let's go on.
00:18
The for loop will declare a float y which i will initially assign to 0.
00:24
Then i'm going to have the for loop.
00:26
So say for declare a float again, so for x, okay, equals to 5, then x greater than or equals to 1, because we'll have to do it from, this is decrementing, alright.
00:49
So we do it that way, this is greater than or equal to 1.
00:54
Then each time my x should take 0 .5 from it, okay, so that the next value would be smaller than the current value, right.
01:14
So i'm going to have the y which is equals to 10 times x to the power 4 minus square root of 3 x plus 15.
01:27
Here i'm going to use powers and square roots.
01:30
So i'll need to include a c math, so that i'll be able to use the inbuilt function, square roots and power, okay.
01:43
So let me put brackets around it, okay.
01:52
So i'm going to have the x to the power 4 minus square root of 3 times x...