Please enable JavaScript to use CodeHS

Coding in Math Glossary

Flashcards

Course:

Module:

Search:

Variable General

A symbol or container that holds a value.

variable

Function Python

A function is like a command that you get to invent and name. It allows us to break our program into smaller parts, making the program easier to understand.

If Else Statement General

Control structure that lets us run either one section of code or another depending on a test.

If Else Statement

Elif Python

A control flow tool used as a second condition check after an if statement. It is a contraction of else if.

Print Python

Displaying text on the screen

Factor General

A number that divides another number evenly, leaving no remainder.

Integer Python

A positive or negative whole number.

String Python

A sequence of characters surrounded by quotation marks.

Integers Python

A positive or negative whole number.

Strings Python

A sequence of characters surrounded by quotation marks.

Condition General

A condition is code that you put inside an if statement or while-loop.

Condition

If Statement General

An if statement lets you ask a question to the program and only run code if the answer is true.

If Statement

Modulus Python

Represented with "%" it returns the remainder of the division between two numbers. For example, `14%5` would return 4.

Loop General

A loop is a way to repeat code in your program.

Loop

For Loop Python

A for loop repeats code a specific number of times.

Greatest Common Factor General

The largest positive integer that divides evenly into a set of numbers.

print() Python

Prints values in the console

Python Python

Popular programming language

str(number) Python

Converts number to text

+ Python

Joins items in a print() statement

variable = value Python

Assigns the value to the variable

string variable Python

A variable with text as the value

Integer variable Python

A variable with a whole number as the value

Pythagorean theorem Python

Relationship between three sides of a right triangle: a^2 + b^2 = c^2

import math Python

Imports the python math module functions

math.sqrt() Python

Math function that takes the square root of the inputted parameters

input() Python

A function that prints a prompt and retrieves text from the user.

int(string) Python

Converts a string into an integer

variable = int(input(prompt)) Python

Stores the response as an integer

Python Python

Popular programming language

float variable Python

A variable with a decimal number as the value

float(string) Python

Converts a string into a float

variable = float(input(prompt)) Python

Stores the response as a float

if statement Python

Executes code only if condition is true

else statement Python

Executes code only if all conditions are false

Distance General

How far an object travels.

Displacement General

How far, and in what direction, the object is from where it started.

Vector General

A measurement that has a magnitude and direction.

Scalar General

A measurement that has only a magnitude (no direction).

Vector Components General

The X and Y pieces of a vector.

Velocity General

How fast, and in what direction, an object is moving.

Pythagorean Theorem General

The square of the hypotenuse equals the sum of the squares of the other two sides on a right triangle.

NumPy Python

Python library that provides a collection of mathematical functions and arrays.

Array JavaScript

Also called a list. A data structure that holds a collection of values in a particular order

List Array

String JavaScript

A sequence of characters

string

float General

A number can be positive, negative, or zero WITH a decimal component. 3.2; 0.0; 4.5652

Tip to Tail General

Method for adding vectors.

Resultant Vector General

The final solution vector when doing vector arithmetic.