____  ___    _  _     _   _ _____     _______
 / ___|/ _ \  | || |   | | | |_ _\ \   / / ____|
| |  _| | | | | || |_  | |_| || | \ \ / /|  _|
| |_| | |_| | |__   _| |  _  || |  \ V / | |___
 \____|\___/     |_|   |_| |_|___|  \_/  |_____|

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

Codeproject - Python - Quadratwurzeln mit dem Heron-Verfahren berechnen (in Python)

BY: @a77 | CREATED: Jan. 8, 2018, 3:59 p.m. | VOTES: 1 | PAYOUT: $0.00 | [ VOTE ]

in diesem Video zeige ich, wie es gelingt
mit fast jeder Programmiersprache Quadratwurzeln
zu berechnen.

Python Quellcode:

def sqrt(a):
A = float(a)
X = A
t = 2
for i in range(500):
X = (X + (A / X )) / t
return(X)

ACHTUNG: Das Verfahren funktioniert zwar in anderen Programmiersprachen
auch, dennoch funktioniert dieser Quellcode nur in Python und muss für andere
Sprachen wie zum Beispiel C++ oder Java umgeformt werden.

Unsere Webseite:
http://www.alpha77.net

Unsere Kontaktdaten:
Twitter: https://twitter.com/Alpha77_NET
Discord: https://discord.gg/wAAHTtT

▶️ DTube ▶️ IPFS

TAGS: [ #dtube ] [ #heron ] [ #python ] [ #programming ] [ #programmierung ]

Replies

@a77 | Jan. 10, 2018, 8:03 p.m. | Votes: 1 | [ VOTE ]

ACHTUNG: Das Verfahren funktioniert zwar in anderen Programmiersprachen
auch, dennoch funktioniert dieser Quellcode nur in Python und muss für andere
Sprachen wie zum Beispiel C++ oder Java umgeformt werden.

Ich wünsche viel Spaß beim ausprobieren ;-)

@steemitboard | Jan. 8, 2019, 5:42 p.m. | Votes: 0 | [ VOTE ]

Congratulations @a77! You received a personal award!

https://steemitimages.com/70x70/http://steemitboard.com/@a77/birthday1.png1 Year on Steemit

Click here to view your Board

Do not miss the last post from @steemitboard:

SteemWhales has officially moved to SteemitBoard RankingSteemitBoard - Witness Update

> Support SteemitBoard's project! Vote for its witness and get one more award!

@steemitboard | Jan. 8, 2020, 5:15 p.m. | Votes: 0 | [ VOTE ]

Congratulations @a77! You received a personal award!

https://steemitimages.com/70x70/http://steemitboard.com/@a77/birthday2.pngHappy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!
[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>