Learn interesting mathematics about Pythagorean triples using NumPy and Python in this video tutorial by Charles Kelly. These are explained in the context of computer science and data science to technologists and students in preparation for machine learni
- [Instructor] The Pythagorean Triangles file…in your exercises files folders…is prepopulated with an import statement,…a definition of a function named is_integer,…and a conversion of is_integer…to a NumPy universal function.…It also contains two equations,…x to the n plus y to the n equals z to the n,…and x square plus y squared equals z squared.…The French mathematician Fermat…conjectured in the 17th Century…that there are no solutions,…that is, there are no integer solutions…to this equation.…
Professor Wiles from Princeton University…proved in 1995 that Fermat's conjecture is correct.…A much simpler expression than Fermat's conjecture…sets the exponent to two.…This equation yields the familiar Pythagorean triangles.…Pythagorean triangles are right triangles.…That is, they contain a 90 degree right angle,…where x is the base of the triangle,…y is the height of the triangle,…and z is the hypotenuse of the triangles.…
Pythagorean triples are Pythagorean triangles,…where x, y, and z are integers.…We'll use NumPy to find some Pythagorean triples.…
- Using Jupyter Notebook
- Creating NumPy arrays from Python structures
- Slicing arrays
- Using Boolean masking and broadcasting techniques
- Plotting in Jupyter notebooks
- Joining and splitting arrays
- Rearranging array elements
- Creating universal functions
- Finding patterns
- Building magic squares and magic cubes with NumPy and Python
Skill Level Intermediate
2. Create NumPy Arrays
3. Index, Slice, and Iterate
4. Plots: Matplotlib and Pyplot
5. Manipulate Arrays
6. Short Examples
7. Extended Examples
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.