root_approx
Version 2.0.0 (1.38 KB) by
Douglas Brunson
Lists the first few rational approximations to the square root of n.
root_approx(n,terms) outputs the first 'terms' rational approximations to the square root of n.
Example:
root_approx(5,3) prints the following:
9 4
161 72
2889 1292
Cite As
Douglas Brunson (2024). root_approx (https://www.mathworks.com/matlabcentral/fileexchange/77831-root_approx), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2020a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.