Google Colab w/ Python

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/23

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:26 PM on 10/7/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

24 Terms

1
New cards

vector addition



<p></p><p></p>
2
New cards

vector subtraction

knowt flashcard image
3
New cards

scaling / scale-vector multipliction

knowt flashcard image
4
New cards

Vector "dot product"

** will be asked about

turns vectors into a scalar

<p>** will be asked about</p><p>turns vectors into a scalar</p>
5
New cards

well defined operation

vectors are the same size

6
New cards

max(x)

value of biggest element in a vector, matrix, or tensor

7
New cards

argmax(x)

which element is the biggest? element 1? element 2? in a vector, matrix, or tensor

8
New cards

Mathematical Universe Hypothesis

The physical universe is not merely described by mathematics, but is mathematics


→ coding allows us to model the universe

9
New cards

Python

  • Founded in 1991 by Guido van Rossum at Centrum Wiskunde & Informatica, Netherlands

  • Python 2.0 09/16/00, Python 3.0 12/03/08


Used a lot bc:

  • FREE!!!

  • Versatile

  • Portable

  • High-level

  • Easy-to-use

  • Interpreted → makes Python kinda slow… BUT libraries available to translate Python code

  • Dynamically typed

  • Object-oriented and procedural

  • Extensive libraries

  • Rapid development cycle Interfaces well with other languages

  • One of Google's "official languages"

  • Extremely widely used in scientific computing


10
New cards

why python > others?

Python is becoming a de facto standard for scientific and numerical computing in academia and industry MATLAB is a powerful tool that is a good alternative to Python but is slow and less widely used in the community Java is a good language for building apps, but is not well suited to numerical or scientific computing C/C++ is the best choice for high-performance scientific software but are more involved and prototyping is slow

11
New cards

Python Libraries

knowt flashcard image
12
New cards

NumPy

13
New cards

SciPy

14
New cards

matplotlib

plotting

15
New cards

SymPy

calculus

16
New cards

pandas

used for data analysis of csv or excel file

17
New cards

scikit-learn

18
New cards

PyTorch, Keras, TensorFlow

neural networks

19
New cards

Django

share code + get other ppl to edit

20
New cards

Cython

compile python code so it can run as fast as if written in C or C++

21
New cards

Numba

translates Python to machine code using industry standard LLVM library

22
New cards

numerical accuracy

  • Numbers on computers cannot be infinitely large or small or specified to infinite accuracy

  • IEEE 754 standard upon which Python is built stipulates:

    • largest float = 21024 = 1.79769×10308

    • smallest float = 2-1022 = 2.22507×10-308

    • exceeding these limits results in overflow / underflow

  • Integers have arbitrarily high precision (up to memory limit)


23
New cards

Numerical speed

  • modern computers are not infinitely fast

  • Important to have estimates of computational cost and complexity (i.e., scaling with problem size) of an algorithm → tells us if we need new algorithm or if problem is too big

  • For hard problems we typically must balance trade-off between speed vs. accuracy


24
New cards