This video implements the secant method in MATLAB. The example finds a root of the sin() function in the proximity of 4, which of course turns out to be 3.1415.
Пікірлер: 25
@bilalel-zaylaa83905 жыл бұрын
dude sounds like hes making matlab tutorials on a runway
@empossible15775 жыл бұрын
Aircraft carrier actually.
@pietrorighetto14965 жыл бұрын
@@empossible1577 i knew it ahahah
@matthewheck62515 жыл бұрын
dude is coding next to the Top Gun movie set
@empossible15775 жыл бұрын
Nope. I am Iron Man and that sound you hear is the power supply in my chest.
@mariemhamdi96324 жыл бұрын
Infinite thanks sir!
@mrsarthakkhattar4 жыл бұрын
while watching this video i felt like my laptop fan is going to explode.
@empossible15774 жыл бұрын
LOL. I lack the proper recording equipment. I have since purchased a headset so my newer recordings are better. Sorry!
@adamkendrick68165 жыл бұрын
Great review! Many thanks!
@empossible15775 жыл бұрын
Thank you!
@shadisai5 жыл бұрын
thanks dude that was super useful.
@empossible15775 жыл бұрын
You are welcome!
@AlexAlexBoBalex2 жыл бұрын
Sounds like my right headphone is gonna blast-off anytime lmao
@empossible15772 жыл бұрын
I am poor and cannot afford better recording equipment. Sorry!
@AlexAlexBoBalex2 жыл бұрын
Nice video tho =)
@kevinosborn45082 жыл бұрын
How would you display each of your iterations? Like if I wanted to see in a table what the first iteration value was and then the second and so forth? Kind of like looking at the convergence through a table.
@empossible15772 жыл бұрын
That is a great question! The key to computation is visualization. First, let me point you to the official course website: empossible.net/academics/emp4301_5301/ Second, you can see how I visualized it in Lecture 4e. If you are wondering about the MATLAB techniques, work through the material in Topic 2 of the same course.
@user-gx2yd2ou8h Жыл бұрын
Hi.. How i can finding root for 3x+sin(x)-e^x plz :')
@empossible1577 Жыл бұрын
The first thing I do is create a rough plot. From there, you can get a rough idea about the position of the roots and types of algorithms you will find to identify the roots. I recommend working through Topic 4 in our Computational Methods course to learn root-finding. empossible.net/academics/emp4301_5301/
@user-gx2yd2ou8h Жыл бұрын
@@empossible1577 Thx,🥺
@empossible1577 Жыл бұрын
@@user-gx2yd2ou8h I cannot post pictures and things here. If you e-mail me, I can help you more.
@autumnsmith64292 жыл бұрын
what does it mean if I copied this code into MATLAB, but I get different values for x1 (3.9) and x2 (2.9)?
@empossible15772 жыл бұрын
Copy/paste and different answer? I have no idea. That is strange.
@binamrapoudel72823 жыл бұрын
is it okay to write f1=sin(x1) and f2=sin(x2) instead of defining a seperate function func?
@empossible15773 жыл бұрын
The code will work, but what if you were asked to then perform the secant method on a different function? With your approach you would have to search your code carefully for every instance where sin() is called and change it to the new function. If you follow my advice, you will only ever have to change one line of code at the front. Things will be much easier for you!