Editing
Numerical Methods
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <span style="color: #FFFFFF;">Applying</span> == '''Modeling 'Root Finding' (Newton's Method):''' <syntaxhighlight lang="python"> def find_root_newton(func, deriv, start_x): """ Finds where func(x) == 0. """ x = start_x for i in range(10): # 10 Iterations # Newton's Formula: x_next = x - f(x)/f'(x) x = x - (func(x) / deriv(x)) print(f"Iteration {i+1}: x = {x:.6f}") return x # Find the square root of 2 (i.e. solve x^2 - 2 = 0) f = lambda x: x**2 - 2 df = lambda x: 2*x print(f"Final Approximation: {find_root_newton(f, df, 1.5)}") # Note how it hits the 'Exact' answer incredibly fast. </syntaxhighlight> ; Numerical Toolkits : '''Finite Element Analysis (FEA)''' β Breaking a car or bridge into millions of tiny "Elements" to see where it will break. : '''Monte Carlo Simulation''' β Solving a problem by running 1,000,000 random "What if" scenarios (used in finance and physics). : '''Fast Fourier Transform (FFT)''' β The algorithm that converts sound waves into digital data (mp3s/phone calls). : '''PageRank''' β The numerical method Google uses to solve the "Web Importance" matrix. </div> <div style="background-color: #8B4500; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
Summary:
Please note that all contributions to BloomWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BloomWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information