Skip to content

Useful Python codes by me to visualize things in the module

Notifications You must be signed in to change notification settings

RussellDash332/DSA2102

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSA2102

Essential Data Analytics Tools: Numerical Computation

Some useful Python codes by me to visualize things in the module.

See this README.md for more information.

Computes a number to its base 2 with certain digits of mantissa. For example,

>>> dec_to_bin(7.3, 31)
'111.0100110011001100110011001100110'

Just a function to print the square matrix as shown below. Can handle various sizes.

tridiag

A simple plot for comparing a function with its Chebyshev interpolating polynomial.

plot_chebyshev

Observe the Runge phenomenon as we query various number of nodes to interpolate a certain function. Compare the even-spaced interpolating function with the Chebyshev interpolating function.

More pictures can be found here, but I will show one of the plots below.

runge_slider

Displays the Romberg integration table in a nice manner.

romberg

About

Useful Python codes by me to visualize things in the module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages