r/WebdevTutorials • • May 05 '21

Pythagorean theorem: proofs, applications and javascript tutorial

https://youtu.be/iqSlzYXdFzw
34 Upvotes

4 comments sorted by

2

u/frank0117 May 07 '21

Beginning of Angry birds game series? :D

1

u/gniziemazity May 11 '21

Or the end!! When my new game... 'Birds and pigs in harmony' comes out :-))

1

u/rth0mp May 05 '21

But Python ez 🥺

import numpy as np
pathag = lambda a, b : np.sqrt(a**2 + b**2)

Test

a = 5
b = 2
c = pathag(a, b)
print(c)