Тёмный

Coding the Newton Fractal | Lecture 19 | Numerical Methods for Engineers 

Jeffrey Chasnov
Подписаться 84 тыс.
Просмотров 9 тыс.
50% 1

Опубликовано:

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 13   
@sylocibe8344
@sylocibe8344 2 года назад
This code and the way you explained this is one of the most beautiful things in Matlab I've ever seen. Thanks professor
@IMVeer0072
@IMVeer0072 3 года назад
This is one of the most intriguing and beautiful lectures I've ever watched. Very inspiring. Thanks Professor.
@franciscojosenunesdipierri5584
@franciscojosenunesdipierri5584 2 месяца назад
Thank you very much, professor! It was great
@stem6109
@stem6109 3 года назад
I am really fan of your educational videos. Worth watching and an excellent support for students.
@jonasoliveira1143
@jonasoliveira1143 Год назад
Amazing content professor, thank you very much!
@FlightDeckGA
@FlightDeckGA 7 дней назад
Thank you!
@정기훈-n7l
@정기훈-n7l 2 года назад
Thank you for a good coding video
@ckristie2278
@ckristie2278 2 года назад
Great video, but sadly, I can't seem to get the code working.
@kylejohnson8447
@kylejohnson8447 Год назад
clc clear all close all % Coding the Newton Fractal | Lecture 19 | Numerical Methods for Engineers % Jeffery Chasnov RU-vid % Goal: Iterate Newton's Method %BIG IDEA: The given function, z(x)=x^3-1, has 3 roots in the complex plane. 1st, we take all %the pixels (points) in a grid and we run the Newton-Raphson equation on it a # of times. %Once we are certain as to which root the point is converging, we label that point with a # : %1,2,3, or 0 which corresponds to the color of that pixel being red, green ,blue, or black %respectively. %find the zeros of f(z)=z^3-1 %iterate the grid points z_+n+1=z_n-f(z_n)/f'(z_n) f=@(z)z.^3-1;fp=@(z)3*z.^2; root1=1;root2=-1/2+1i*sqrt(3)/2;root3=-1/2-1i*sqrt(3)/2;%the 3 roots of f(z) are the cube roots of unity nx=100; ny=100; xmin=-2;xmax=2; ymin=-2;ymax=2; x=linspace(xmin,xmax,nx); y=linspace(ymin,ymax,ny); [X,Y]=meshgrid(x,y); z=X+1i*Y; nit=40;%notice use of break points (red highlihgted nunmber lines) for n=1:nit z=z-f(z)./fp(z); end %Setting up grid: %determing which root the grid point converges to (the closest root) eps=.001; z1=abs(z-root1)
@lueleribeirodesousabarbosa9828
@lueleribeirodesousabarbosa9828 3 года назад
preciso desse código em scilab, alguém me ajuda?
@visheshgupta123
@visheshgupta123 3 года назад
Use dark mode
@ProfJeffreyChasnov
@ProfJeffreyChasnov 3 года назад
?
@FS-lp6np
@FS-lp6np 3 года назад
@@ProfJeffreyChasnov Hi Jeffrey! First of all, thank you for this amazing series. Dark mode is just so that the computer screen background meanwhile you code is black, thus, making it less eye-tiring to see the screen while you code; since its generally a time consuming action.
Далее
Global Newton's Method - It Always Converges
8:57
Просмотров 7 тыс.
Matlab: Fractals (and complex numbers)
27:21
Sounds of the Mandelbrot Set
9:32
Просмотров 2,9 млн
Learning, Programming and Newton's Fractal
7:00
Просмотров 4,7 тыс.
Where Does Bad Code Come From?
42:21
Просмотров 197 тыс.