Skip to content
Snippets Groups Projects
Commit 640758b0 authored by William Lövfors's avatar William Lövfors
Browse files

added a function to get values close to a square from integers

parent 65b53b24
No related branches found
No related tags found
No related merge requests found
function [a,b]=CloseToSquare(n)
b=round(sqrt(n));
a=ceil(n/b);
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment