Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Oct 23rd, 2017
71
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
function output = sqrtIter(x,errorbound)
% sqrt to specified accuracy
guess = round(x/2);
while abs(guess*guess-x)>errorbound
guess=(guess+x/guess)/2;
end
output = guess;
Add Comment
Please,
Sign In
to add comment
Public Pastes
input_reader.cpp
C++ | 54 min ago | 6.23 KB
Untitled
Python | 55 min ago | 10.75 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 1 hour ago | 0.39 KB
CREATE TABLE R2
MySQL | 1 hour ago | 0.26 KB
CREATE TABLE R3
MySQL | 1 hour ago | 0.42 KB
Create Spline From Points
C# | 1 hour ago | 2.31 KB
Forward conversation to email
JavaScript | 1 hour ago | 3.95 KB
Untitled
CSS | 1 hour ago | 0.44 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!