Numerical Methods in Python Series - Simple Interpolation

Published: 27 June 2021
on channel: ProCode CG
57
1

Numerical Methods in Python Series - Simple Interpolation

this tutorial will show you how to implement simple interpolation case in Python along with the visualization.

In the mathematical field of numerical analysis, interpolation is a type of estimation, a method of constructing new data points within the range of a discrete set of known data points. - Wikipedia

steps:
1. open Google Colab
2. type in the code

we use scipy.interpolate library to do the interpolation

line 5 - 6
we put x and y data

line 7
f is the function to plot x and y in linear

line 8
f2 is the function to plot x and y in cubic

line 10
determine new x

line 11 - 14
plotting the functions with new x and draw it

3. run the code and analyze the graph

you can try to put different data and interpolate it ;)

in the next tutorial we will learn more about interpolation, so make sure you’re subscribing this channel :)

References:
1. https://docs.scipy.org/doc/scipy/refe...

thanks for watching, don’t forget to subscribe, activate the notification bell, like this video and also share it to support this channel to be able to continuously creates useful tutorials :)

leave us some comments if there is any questions and let us know what you think :)

Intro and Outro created by ProCodeCG Kids: Islamey Fawwaz Alfattan

visit our website: http://procodecg.com

and blog: https://procodecg.wordpress.com

and follow us on Instagram:   / procodecg  

Twitter:   / procodecg  

Facebook:   / procodecg  


On this page of the site you can watch the video online Numerical Methods in Python Series - Simple Interpolation with a duration of hours minute second in good quality, which was uploaded by the user ProCode CG 27 June 2021, share the link with friends and acquaintances, this video has already been watched 57 times on youtube and it was liked by 1 viewers. Enjoy your viewing!