<
code_by_math
/>
Home

Lessons

Login

About

*Teachers*

Challenges

Sandbox

App

Book
Learn code. Learn math.
There's a lot here. If you
login
we'll track your progress.
Start here
Displaying text
Displaying nice looking math
How programs flow
Programming as a calculator
Dividing by zero
Testing divisibility
Literal vs. tobe text
Using absolute values
Using Pi on the computer
Using square roots
Random numbers
Reading text from the keyboard
Getting clicks from the mouse
Square roots and the distance formula
Square roots and the Pythagorean Theorem
Finding Pythagorean Triples
Algebra vs. computer
Simple Graphics and Drawing
Drawing pixels
Choose a plotting color
Clearing the screen
Drawing lines
Drawing circles
Drawing with text
Draw something!
The Cartesian Coordinate System
Zoom in or out
Variables in programming
Introduction
Mathematical expressions with variables
Calculate a tip
Calculate a tip (with keyboard input)
Distance formula with variables
Changing a variable in one line
Rescaling a result
Drawing lines with the mouse
Drawing circles with the mouse
The slope of a line
The forloop: counting over a range of numbers
Using forloops to count
More forloop counting
Make math practice problems
Making mathfacts tables
Study the absolute valueuse a forloop to study how the absolute value works
Adding numbers like Carl Gauss did
Adding numbers to find Pi
Finding square roots
Iterating a function
Interating the logistic function
Iterate for a squareroot
A clever forloop for Pi
An even more clever forloop for Pi
What kinds of numbers?
Diverging and converging series
Numbers ending in 1
The forloops: making graphs
Make it snow
Graph a line in slopeintercept form
Graph the absolute value
Graph a parabola
Graph a function
The Lorenz Attractor
The forloops: Simple computer animation
Animate a single pixel
Animate a more complex shape
Animate with laws of physics
Object with airdrag
Exploding text
Animated textbanner
Growth pattern
The ifstatement: Asking true or false questions
Introduction
True/false with variables
Compound true/false questions
The ifstatement
Divisibility tester (1)
Divisibilty tester (2)
Checking random numbers
Graphing inequalities (xaxis)
Graphing inequalities (xyplane)
Graphing systems of inequalities
Throwing darts to find Pi
Solving Quadratic Equations
The Pythagorean Theorem Calculator
Fermat's Last Theorem
Divisibility of numbers $<1000$
Functions in programming
Introduction
Returning values
Convert between Celsius and Fahrenheit
Finding the Greatest Common Divisor (GCD)
Reducing fractions with the GCD
A better GCD calculator
Least common multiple (LCM)
Finding common denominators using the LCM
Add fractions and reduce answer to lowest terms
Is a number prime?
The Fibonacci Sequence
The Factorial
Computing Pi using factorials
Testing the derivative
Doing integrals numerically
Using sine and cosine
Introduction
Plot a circle
Plot a star
Plot a sine wave
Test the famous sin/cos identity
Test the sin/cos identity graphically
Make cool polar plots
Coaxing Pi from the computer
Rotate a parabola
Find sin(x) by adding numbers
Strings of text
Introduction
The length of a string
Comparing strings
Comparing strings (2)
Finding Palindromes
Palindromic squares
Patterns in Pi ($\pi$)
Patterns in Pi ($\pi$) (more)
The whileloop
Introduction
Type some words
Average some numbers
Mouse clicks
You guess my number
I'll guess your number
Solving equations
$\sqrt{n}\sqrt{n1}<0.01$
Arrays
Introduction
Loops and arrays
Arrays and averaging numbers
Arrays and recurrence relations
Arrays and histograms
Histogram Pi's digits
Histogramming uniform rnd nums
Normally distributed rnd nums
Cellular Automatum
Birthday Surprise
Symbolic math: Doing algebra on the computer
Introduction: combining exponents
Multiplying a polynomial by a monomial
Raising polynomials to some power
Simplify an algebraic expression
Factor a polynomial
Solve equations
Take a derivative
Code with Google Maps
Draw a map
Place a marker
Draw with markers
Find distances
Draw a trail
Code with 3D Graphics
Introduction to 3D graphics
Depth with 3D graphics
3D graphics and the camera
3D graphics and the light source
Drawing in 3D with cubes
Drawing lines in 3D
Drawing polylines in 3D
Code with Sound
Introduction
Compose music
Play a sine sum
Play a chirp
Code with Google Charts
Make a Chart
Make an (x,y) plot
Use an Arduino
You can program an Arduino directly from this website.
Here's how
.
Turn an LED on and off
Turn on LEDS with mouse
Make an LED flash
LEDs for math test
Buzz a wrong answer
Read a voltage
Your work area temperature
Real time temperature plot
Real time temperature plot (nicer)
Real time lightlevel plot
Linearly scale a potentiometer
Make an etchasketch
Read a digital input
Read a pushbutton switch
Study your button pushing
171 total lessons.