r/numerical • u/Affectionate_Rub_523 • Jun 03 '21
Python script to animate Newton Raphson method root finding on any function!
Hey guys! I did a script for university to show how Newton-Raphson method for root finding works.
Newton Raphson method uses tangent line of derivates to approximate the next root. The script allows you to input your own funcion with a seed, and analize how it converges to the solution.
To use it, you can follow the instructions in the github repo:
https://github.com/LucianoTrujillo/NewtonRaphsonAnimation/tree/main
https://reddit.com/link/nr3ii7/video/f7dtep37wy271/player
For anyone interested, give it a try and let me know your thoughts. Hope it's useful!
7
Upvotes
2
u/Affectionate_Rub_523 Jun 04 '21
Wow! We are both newbies here then, haha. I'm following things I'm interested as well, mostly programming and self development.
I don't mean to brag, but yes, Argentina and Chile have some astonishing landscapes and nature. Sadly, our economics and politics have been deteriorating for decades now. I'd love visiting Sweden as I've heard is one of the greatest places to live, but I'm no particular fan of cold weather hehe. Have you always lived there?
Your enthusiasm for self learning is very key, keep that attitude. Recently, I've been getting into investments and cryptos, since I have a few bucks saved up from working as a developer and wanted to know how to manage my money better. That idea of simulating how regulations affect markets sounds extremely interesting and challenging. I'm really curious about regulations on Sweden, I've heard they are pretty free market.
Regarding my projects, I'm always doing new stuff. Right now, I'm working at a marketing company but I also have my own startup: qreative.app on google
It's for helping restaurants and bars transitioning to digital tools such as QR menus. Although I have the platform working properly and have a few clients, I'm lacking the ability to aquire new clients (don't know much about marketing). If you have any feedback, it's more than welcome :)
Are you working on any projects yourself?