No video

Coding Challenge #12: The Lorenz Attractor in Processing

  Рет қаралды 406,950

The Coding Train

The Coding Train

Күн бұрын

Пікірлер: 434
@purify_with_liberties_flame
@purify_with_liberties_flame 7 жыл бұрын
If math teachers taught like you and did coding, the words "when would i ever use this in the real world" would be a bit meaningless. I love your videos.
@davidmitchell2761
@davidmitchell2761 4 жыл бұрын
EXACTLY.
@theman7050
@theman7050 2 жыл бұрын
Ikr
@robertobreve8623
@robertobreve8623 5 жыл бұрын
I've been coding for more than 15 years, I got burned out, with these tutorials, I'm falling in love again with coding again, just like the old days. Thank you so much!
@thecosmicwhale
@thecosmicwhale 7 жыл бұрын
You make learning programming so entertaining Dan, you ROCK!!!
@dickheadrecs
@dickheadrecs 7 жыл бұрын
I would love to see a processing sketch that graphs Dan's heartbeat when he's doing these challenges
@Shenanigans07
@Shenanigans07 5 жыл бұрын
This looks absolutely amazing using Unity's Line Renderer. I've had many teachers, none of them come close to you. You're an absolute gem.
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
Nice work! You can submit a link to the coding train website if you like! github.com/CodingTrain/website/wiki/Community-Contributions-Guide There's also this video tutorial: kzfaq.info/get/bejne/nNF5pZOa09W1Z40.html.
@JohnDoe-ki6fm
@JohnDoe-ki6fm 5 жыл бұрын
That's pretty awesome. It is a testament to the success of the Processing environment, but also a triumph in terms of a tutorial for the Lorenz attractor and being able to explain what it is and get an interesting visualization of it on the screen without a lot of pain. Great job, Daniel!
@revimfadli4666
@revimfadli4666 4 жыл бұрын
It's such a good environment that it's quite a shame the name's not so search engine optimized(for troubleshooting, at least)
@astropgn
@astropgn 6 жыл бұрын
I learn so much with you! God damn. At first I thought this was kind of a kid channel. Because his theme is unicorns and rainbows. But I was wrong. It does have a more friendly theme, which only adds to the channel, but the content is very solid. I like it very much!
@blomblorpf
@blomblorpf 7 жыл бұрын
I know absolutely nothing about coding. To be honest, I don't know the first rule of it. It has always been my dream, coding games for entertainment and programs to simplify things. I have I.T. as a subject next year, hoping it could give me some insight on coding, even if it's a minimum. I have a book full of ideas for games I want create, sadly, I can't just jump into it without any knowledge. I watch your videos, because I like the feeling of knowing that I will be able to do this one day if I work hard enough, and I love how code looks and feels. It amazes me. Thank you Daniel.
@satibel
@satibel 7 жыл бұрын
you can try scratch ( scratch.mit.edu/ ) it's a program to make games easily and visually. It can help you get the idea of how programming works (basically you have blocks that interact together). example of how java works: int myvar; myvar=0; means myvar is an integer=0 String mystr; mystr="hello"; means myvar is a String="" functions work the same, but have parmeters int myfct(String myvar){ //some code return 0; } basically when making something you have [type] [name] [() or nothing] [{ } or ;] if you get these patterns (which are literal blocks in scratch, not words, programming is easy.
@blomblorpf
@blomblorpf 7 жыл бұрын
manaquri Thank you so much for your help. I think I know what I'll be doing for the rest of today... Thanks!! :D
@RitobanRoyChowdhury
@RitobanRoyChowdhury 7 жыл бұрын
I think you should look into the unity game engine (unity3d.com). It has some amazing tutorials on its site, as well as amazing youtube channels like Brackeys and quill18creates (as well as the related channels on their respective youtube pages) which should let you learn reasonably quickly. It uses C#, which could be a jump from scratches block-based programming, but it becomes easier and much more flexible than blocks quickly.
@satibel
@satibel 7 жыл бұрын
Ritoban Roy Chowdhury thought I had put down some rambling about what to use as a "real" programming language, and I included unity, but it seems either ! didn't send it, or it was deleted, or it was somewhere else. though I approve unity (and c sharp) basically most current languages feel like csharp "but without" and/or "but with", so once you get that most mainstream languages will seem easy.
@RitobanRoyChowdhury
@RitobanRoyChowdhury 7 жыл бұрын
Exactly. If you can understand a language like C# or Java, it should be easy to switch to another language.
@digitalArtform
@digitalArtform 8 жыл бұрын
"Send me your coding challenges!" I would like to learn more about reaction-diffusion or navier-stokes in a Processing context. Since you're asking. :D Great series. As usual.
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
+digitalArtform Added to my list!
@jothe3inv
@jothe3inv 7 жыл бұрын
Thank you so much for this. Love your enthusiasm, energy, and of course the clarity with which you explained all of this. I am having to study attractors in general and this one in particular for a dynamical systems class I am taking, and so far I was just seeing boring static pictures and graphs along with the theory. Creating and watching a live animation literally just made the subject come alive for me, haha... again thanks, this was great.
@TheCodingTrain
@TheCodingTrain 7 жыл бұрын
Thank you!
@mikeandrewfernandez9797
@mikeandrewfernandez9797 Жыл бұрын
I love the way of him teaching so passionately. Full of energy!
@taylorbaratka6883
@taylorbaratka6883 6 жыл бұрын
add "rotateY((hue/255)/360);" at line 44 or 45 right after "hue +=1;" and the curve will auto-rotate.
@TheCodingTrain
@TheCodingTrain 6 жыл бұрын
nice tip!
@madhavsirohi2225
@madhavsirohi2225 3 жыл бұрын
One of the best/most lovely Teacher/elder brother on the internet!
@meridel9635
@meridel9635 7 жыл бұрын
That is great. Learning how to implement mathematics in code, and learning more advanced programming techniques in one video. Thanks Daniel, it's fantastic as always :).
@TheCodingTrain
@TheCodingTrain 7 жыл бұрын
Thanks so much, I'm so glad to hear!
@prestonchen2046
@prestonchen2046 6 жыл бұрын
You are flipping dope! Like the Bob Ross of codified art.
@AshNapToys
@AshNapToys 7 жыл бұрын
Your videos are great! Have you thought about doing a video on potential path planning? It's quite simple and lots of fun to play with.
@adrianojordao4634
@adrianojordao4634 3 жыл бұрын
I made this exercise with 16 at 1994, it was an huge success in class. Used clipper and same graphical new clipper library that I got don’t know were, I think it had some mouse capability too. But then Delphi appears... This blog really captures the joy of programming that many times comes from this small projects. Continue the good work. The number of videos is impressive and already a very good library and an amazing starting point. Potencial value is huge.
@Timisenman
@Timisenman 4 жыл бұрын
I'm reading James Gleick's Chaos right now, and I became a bit spellbound by the Strange Attractor, and I've recently started learning about Processing and playing with it, so I googled "Lorenz Strange Attractor Processing" and the miracle of this video came up. Thank you so much for making it. A true dream come true.
@BobIrving2
@BobIrving2 5 жыл бұрын
Crazy cool! I learned so much that I never got to in math in high school: Lorenz attractors, differential equations, etc. Some people don't like Dan's approach and his quirkiness, but it all works great for me!
@druidofpies
@druidofpies Жыл бұрын
I had to take a differential equations math course in college. A whole semester, and I was never really told what a differential equation was or when it was used. In 1.5 minutes you told me what my professor couldn't in 5 months. Truly amazing sir
@satyman08
@satyman08 4 жыл бұрын
This gives me a crazy new perception of the universe. Maybe were just in a 3D simulation, and the Big Bang was just God finishing his processing sketch and clicking run. 🤯
@ashmitabhattacharyya6612
@ashmitabhattacharyya6612 3 жыл бұрын
Beautiful tutorial! I'm a High School Student with a keen interest in coding and computer science and this tutorial has been tremendously useful in teaching me how to generate the Lorenz Attractor by myself for a project :) Thank you!!
@kronosuber9849
@kronosuber9849 4 жыл бұрын
Never thought someone could make differential equations entertaining. You have done it.
@jaysonbalatong4075
@jaysonbalatong4075 4 жыл бұрын
You make programming so entertaining, I hope my professors too😢. Keep making videos Mr. Dan and spread that attitude of yours.
@13Uzamakifan
@13Uzamakifan 7 жыл бұрын
I've recently found out about your channel. It is amazing. Your videos are the only +10 min videos I can sit through and watch completely. You're both entertaining and informative. The whole range of things you're doing in these videos have convinced me to pick up computer science as my dual major!!
@electriic2540
@electriic2540 7 жыл бұрын
This channel is the most underrated thing. Thank you so much for these videos!
@DannyHudetz
@DannyHudetz 7 жыл бұрын
These are so great. I'm glad i found them. they have taught me so much and deserve a lot more views.
@mahyarazad
@mahyarazad 4 жыл бұрын
You are the most inspiring person 🙌🏽 when it comes to coding. Thank you for your great videos.
@eduardvolochitin432
@eduardvolochitin432 5 жыл бұрын
Best tutorial and coding KZfaqr.
@AzuriumOfficial
@AzuriumOfficial 7 жыл бұрын
Thanks Daniel, I finally got the differential essence! Haha, I didn't expect that to happen in a coding challenge. Good job!
@favc097
@favc097 5 жыл бұрын
Thanks to you and Unreal Engine I finally understood how to use "ifs" hahaha I'm learning by my own, please don't be rude
@anon5597
@anon5597 8 жыл бұрын
You are so much better than the University of Sydney, I appreciate all the help you've given me!!
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
+Lumena Projections Thanks for the kind feedback!
@MrThangHam
@MrThangHam 6 жыл бұрын
Wow, I just created a vm for macOS to make my project with xCode after hours of installations and settings. Now it's 4:45 am and I suddenly watch programming challenge on youtube... Pressed the subscribe button
@Aprameyo
@Aprameyo 7 жыл бұрын
Best videos ever! Love watching these.
@aj1sharma
@aj1sharma 7 жыл бұрын
you are just awesome. you encourage me take on new challenges and finish them as fast as possible.
@saltyyolk9934
@saltyyolk9934 5 жыл бұрын
This is amazing. I'm starting to get attracted to differential integration. Thank you.
@klokibril
@klokibril 7 жыл бұрын
Okay it might have taken me around 30 minutes but i made a functioning Lorenz Attractor! It works beautifully. Great videoseries. I guess the best way to learn programming is to first watch thenewboston's videos, and when you completely understand what you're doing you can proceed to these. Awesome life.
@abominavelhomemdasbets5889
@abominavelhomemdasbets5889 7 жыл бұрын
Man you are very very good, thanks to this presentation I managed to finally get some great info on Lorenz's atractor and finish my school work. Thank you!!
@user-ig6sc7sg8x
@user-ig6sc7sg8x 8 жыл бұрын
I really like, this kind of live coding. I can see you each time add a piecec of code and how the new added code make a new effect to the whole program and show it as a graphic .
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
+Tube You Thanks for the feedback!
@penguin1212
@penguin1212 6 жыл бұрын
This is so neat. Thanks a ton for making these vids!
@robertsolomon3328
@robertsolomon3328 8 жыл бұрын
Hello!! Just wanted you to know that you are really helping people with this channel. I am a physics student and I've been trying to learn programming for a while but didn't reallly feel something to ...... get me hyped for it, you know? That is, until i found your nature of code book on the web and it's awesome. Even more so, you got those vids with really interesting stuff and awesome explanations - really good way of teaching and talking to people to make them understand! So, what I wanted to say, thanks so much for everything you are doing!!!!
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
Thank you I am so glad to hear!
@whimsy5623
@whimsy5623 3 жыл бұрын
Dude this is such a cool technique.
@TheGreatAbstracto
@TheGreatAbstracto 8 жыл бұрын
Really enjoying this series - One crit - butterflies flapping their wings anywhere don't cause eruptions - storms or droughts - yes - eruptions - nahhhh
@TheGreatAbstracto
@TheGreatAbstracto 7 жыл бұрын
yep - it was late /early
@kikones34
@kikones34 7 жыл бұрын
Ever heard about other punctuation marks besides the dash :D?
@mraagh8779
@mraagh8779 6 жыл бұрын
dashes - they are cool -
@Amrhossam96
@Amrhossam96 7 жыл бұрын
I was learning java and android development but after seeing your challenges i decided to tackle with web development a little but and i found in very interesting .. You're an inspiration and you make learning so much fun
@abrahamjacob8876
@abrahamjacob8876 6 жыл бұрын
Amazing work ! Please dont stop doing this! you are an inspiration!!
@samlau7948
@samlau7948 7 жыл бұрын
Youre really cool, keep up the awesome work!
@arjunarya2658
@arjunarya2658 4 жыл бұрын
This is so useful!! I taught myself javascript and java mainly with these videos
@boutalbimedchaker2534
@boutalbimedchaker2534 3 жыл бұрын
I love you Daniel so much u saved my PhD with ur courses, 100 of Daniel in this world then we r all okay lol
@321123580
@321123580 7 жыл бұрын
I know it is emotional but you are super exciting! Thank you for making learning to code so fun!
@EidurMoller
@EidurMoller 6 жыл бұрын
You are like the coding Mister Rogers. Great videos.
@zakkia6784
@zakkia6784 7 жыл бұрын
I just witnessed the new "old spice" advert before this and I can't stop laughing
@Dracstar
@Dracstar 7 жыл бұрын
That is simply amazing!
@cn-ml
@cn-ml 7 жыл бұрын
"Nothing is broken yet" - Every programmers' remorse
@PsychedelicMindFluid
@PsychedelicMindFluid 7 жыл бұрын
Loving these videos!
@shamuratov
@shamuratov 5 жыл бұрын
Thanks for doing what you're doing in the way you're doing it :)
@somthings_wrong_here_now_maybe
@somthings_wrong_here_now_maybe 7 жыл бұрын
On my next day off I'll have to mess around with this :D Seems awesome
@tobiasgorgen7592
@tobiasgorgen7592 4 жыл бұрын
This video inspired me to implement a Lorenz attractor in my arduiono and a RGB Led. Where x = red Y = green Z = blue It was very underwhelming.
@iamsushi1056
@iamsushi1056 2 жыл бұрын
Do it for a full screenspace image shader! You could even have another image be the input for the variables used to calculate the derivatives
@sedaturec9233
@sedaturec9233 4 жыл бұрын
why the hell did 48 people dislike this video, dude this guy is a genius and a great teacher... creepy 48 people
@furrane
@furrane 8 жыл бұрын
Smooth edit :) As always it's a pleasure to watch your videos. I both learn code technics and some interesting physic bits. Enjoy Shanghai and come back stronger than ever haha
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
+Furrane Thanks so much!
@kunaldas1736
@kunaldas1736 4 жыл бұрын
This guy is a genius...
@_-__-_6355
@_-__-_6355 8 жыл бұрын
I'm so glad I found your videos!
@zerocoll20
@zerocoll20 5 жыл бұрын
Nonlinear is not related to "small change in initial conditions leads to big changes in whole solution", it is related with stability. But, in the overall it's a great video, when i have time i will learn this. I simply loved it, if i could make a sugestion, theres anyway to access an "app" written in "processing" via QR code in cellphone? If it is a way, it will be very great advantage in physics and math classes.
@Lostpanda123
@Lostpanda123 7 жыл бұрын
Great illustration!
@SogMosee
@SogMosee 6 жыл бұрын
Daniel Shiffman, Saraj Raval, and Sentdex, you guys are my heroes. Am I missing anyone else guys?
@computerwiz38
@computerwiz38 7 жыл бұрын
Very awesome video! You are very talented! Keep up the good work!
@cassandradawn780
@cassandradawn780 4 жыл бұрын
He protecc He atttacc But mostly importantly He *a t r a c c*
@souravdey1227
@souravdey1227 3 жыл бұрын
You are a wizard.
@pa.l.2499
@pa.l.2499 4 жыл бұрын
Double is just like a float, but only more decimals... Great to know that the float is sufficient for such things. By the way: you're not '[merely] some person, here on the internet, programming colors and things on the screen,' you are a gifted instructor of mathematics and coding and have revived my interest in this subject. It takes away the daunting air associated with programming differentials and displaying such concepts on the screen through the expansive processing library... Even in 3d! Wow, I didn't know how powerful the existing java libraries were within processing. The possibilities are endless... Any chance of you showing us how to program a binomial expansion or Lorentz Transformation using these tools? Thank you!!
@milkyroad9593
@milkyroad9593 6 жыл бұрын
I have to say: Awesome Dan!
@brandonallen2301
@brandonallen2301 3 жыл бұрын
This is so informative! Thank you!
@irvingrodriguez484
@irvingrodriguez484 7 жыл бұрын
I don't know why I'm watching all your videos, I don't understand a word of what you're talking about and I'm only a med student, but these videos are so interesting.
@morwar_
@morwar_ 7 жыл бұрын
this video is so fucking amazing, great work!
@QQSwam
@QQSwam 7 жыл бұрын
Finished finals, now I can play with processing :)
@tusharmaurya1668
@tusharmaurya1668 7 жыл бұрын
Wow he does it in exactly 5 min and 22 sec. Look at the timer at the end of the video!
@abhijanwasti7991
@abhijanwasti7991 7 жыл бұрын
You the real MVP fam 😂
@younusameenmuhammed3860
@younusameenmuhammed3860 2 жыл бұрын
very useful and easy understanding, thanks
@ffggddss
@ffggddss 4 жыл бұрын
In your introduction, ≈ 2 min - Great idea to illustrate a real-world use of (ordinary) differential equations (ODE's). Except it's the *acceleration* (2nd derivative, d²y/dt²) of the mass, not its *velocity* (1st derivative, dy/dt) that is proportional to the displacement of the mass. But the main idea you wanted to get across, still gets across, IMO. And incidentally, the ODE that governs that mass-on-a-spring system, is one of the most important (and ubiquitous!) in all of physics - it's the Simple Harmonic Oscillator (SHO) equation, and its solutions are sine waves. It's the mathematical reason for there being so many sine waves in our lives... PS. My dad was a meteorologist who develeoped much of the early NWP (numerical weather prediction) computer models; and he once mentioned Ed Lorenz and his findings regarding chaos. Ultimately, this is why, no matter how powerful computers become, no matter how precise and how dense the observations going into the model are, there is some time range beyond which weather forecasting will always be impossible. And that's just one area of physics that's affected by chaotic behavior; there are scads of others. So this is a very important topic. Plus, you can make all these pretty pictures ;-) Fred
@touisbetterthanpi
@touisbetterthanpi 7 жыл бұрын
i haven't gone through every comment to see if this has been suggested, but my immedate reaction as to how i would color it would be based on the distance the vertexes are from each other. I guess that gets a little meta too, 'cuz then you are looking at the rate it is changing at, or in other words, it dirivative, and you are already doing things with dirivitives. anyways, this was a great vid.
@oldrocker3438
@oldrocker3438 5 жыл бұрын
Thank you. Wonderful lesson!
@imadsaddik
@imadsaddik Жыл бұрын
Thanks this was great!
@circli
@circli 6 жыл бұрын
Yey! At long last, a RAINBOW! :)
@pietroantenucci6415
@pietroantenucci6415 2 ай бұрын
That’s amazing
@chaoxiang2248
@chaoxiang2248 8 жыл бұрын
Great course! By the way, what font are you using?
@danielsoderstrom1930
@danielsoderstrom1930 7 жыл бұрын
Nice done! But my friend programmed a lorenz attractor too. So I'm familiar
@jay290489
@jay290489 4 жыл бұрын
You are a genius...
@jokes108
@jokes108 2 жыл бұрын
Amazing!
@mrcoder2035
@mrcoder2035 7 жыл бұрын
This is awesome!
@projectg3756
@projectg3756 5 жыл бұрын
Dear, it's a good very good tutorial. But I can't move around the object by using the mouse, how you can zoom and move around the shape by using the mouse?
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
This is due to the PeasyCam Library mrfeinberg.com/peasycam/
@noahgundotra1062
@noahgundotra1062 8 жыл бұрын
These are really cool videos! Thanks for sharing. Could you do videos illustrating more complex physics phenomena? Maybe a double pendulum video or one with Lagrangian motion?
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
I've got this on my list! github.com/CodingRainbow/Rainbow-Topics/issues/15
@plafhz
@plafhz 8 жыл бұрын
You are the best !!!! really thanks!
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
+Jose Lopez Thanks so much!
@glabrouswashere8078
@glabrouswashere8078 2 жыл бұрын
“These systems can go off to infinity” or words to that effect. No. The Lorenz attractor is called an attractor because it attracts, and it turns out all initial conditions produce solutions tending to it. However, if you implement an approximate solution using Euler’s method, you need to worry about the linear stability of the method. Nothing to do with the non-linearity of the problem.
@TheCodingTrain
@TheCodingTrain 2 жыл бұрын
Ah, very important feedback, thank you for the correction / clarification!
@AkshatWahi
@AkshatWahi 8 жыл бұрын
great video...! thanks Dan for such amazing videos .. I get so much to learn..
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
+Akshat Wahi Thanks for the nice feedback!
@moforogue
@moforogue 4 жыл бұрын
i love you. thanks for everything.
@AlejandroRodriguez-lq9mz
@AlejandroRodriguez-lq9mz 4 жыл бұрын
Omg this man is a genious
@davislast7891
@davislast7891 7 жыл бұрын
Don't you just love how us nerds spend our time on visualizing random formulae?
@Czaiczai
@Czaiczai 7 жыл бұрын
Hi :D i have set a to 1.0, x to 0.02, y to 0.03 and z to 0.05 with dt = 0.03 it showed nice fibonacci spiral :) Changing z, x and y gives no difference, only fibonacci spirals. The butterfly also was made from spirals acting in different way. What does that mean? Is there hidden fibonacci in equation?
@noonemate3616
@noonemate3616 7 жыл бұрын
Great video! Btw what is your theme/font/fontsize for the ide
@glace848
@glace848 Жыл бұрын
great video. how do you rotate/scale your sketch with you mouse tho? (im very new to processing, as a matter of fact i solely started looking into it because of this video)
@guogeorge7956
@guogeorge7956 2 жыл бұрын
You and P5 are inspring.
@arshadjaveed7877
@arshadjaveed7877 7 жыл бұрын
Awesome 😊😃
Coding Challenge #13: Reaction Diffusion Algorithm in p5.js
39:10
The Coding Train
Рет қаралды 205 М.
Are there other Chaotic Attractors?
6:54
Orfeas Liossatos
Рет қаралды 473 М.
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 197 МЛН
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 27 МЛН
The Joker saves Harley Quinn from drowning!#joker  #shorts
00:34
Untitled Joker
Рет қаралды 68 МЛН
Ik Heb Aardbeien Gemaakt Van Kip🍓🐔😋
00:41
Cool Tool SHORTS Netherlands
Рет қаралды 9 МЛН
Coding the Collatz Conjecture
23:08
The Coding Train
Рет қаралды 132 М.
Chaos Theory - Analog Circuit Lorenz Attractor PCB
7:07
Zack's Lab
Рет қаралды 12 М.
Coding Challenge #86: Cube Wave by Bees and Bombs
30:09
The Coding Train
Рет қаралды 628 М.
Coding Challenge 180: Falling Sand
23:00
The Coding Train
Рет қаралды 876 М.
Chaos Theory: the language of (in)stability
12:37
Gonkee
Рет қаралды 554 М.
Coding Worley Noise
15:40
The Coding Train
Рет қаралды 117 М.
Harder Drive: Hard drives we didn't want or need
36:47
suckerpinch
Рет қаралды 1,6 МЛН
Coding Challenge #90: Floyd-Steinberg Dithering
28:51
The Coding Train
Рет қаралды 436 М.
ASMR Programming - Spinning Cube - No Talking
20:45
Servet Gulnaroglu
Рет қаралды 3,8 МЛН
how Google writes gorgeous C++
7:40
Low Level Learning
Рет қаралды 855 М.
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 197 МЛН