📕
Dan Fitz's Notes
  • README
  • Ai
    • Supervised Machine Learning
      • Introduction To Machine Learning
      • Regression With Multiple Input Variables
      • Classification
  • Csharp
    • C Sharp Advanced
      • Generics
      • Delegates
      • Lambda Expressions
      • Events
    • C Sharp Fundamentals
      • Intro To C
      • Primitive Types And Expressions
      • Non Primitive Types
      • Control Flow
      • Arrays And Lists
      • Working With Dates
      • Working With Text
      • Working With Files
      • Debugging Applications
    • C Sharp Intermediate
      • Classes
      • Association Between Classes
      • Inheritance
      • Polymorphism
      • Interfaces
  • Java
    • Inheritance Data Structures Java
      • Inheritance Polymorphism Using Overriding And Access Modifiers
      • Abstract Classes And Debugging
      • File I O And Exceptions
      • Collections Maps And Regular Expressions
    • Intro To Java
      • Introduction To Java Classes And Eclipse
      • Unit Testing Arrays And Array Lists
      • Static Variables Methods And Polymorphism Using Overloading
  • Javascript
    • Algorithms Data Structures
      • Big O Notation
      • Analyzing Performance Of Arrays And Objects
      • Problem Solving Approach
      • Problem Solving Patterns
      • Recursion
      • Searching Algorithms
      • Bubble Selection And Insertion Sort
      • Merge Sort
      • Quick Sort
      • Radix Sort
      • Data Structures Introduction
      • Singly Linked Lists
      • Doubly Linked Lists
      • Stacks And Queues
      • Binary Search Trees
      • Tree Traversal
      • Binary Heaps
    • Complete Nodejs
      • Understanding Node.js
      • REST AP Is And Mongoose
      • API Authentication And Security
      • Node.js Module System
      • File System And Command Line Args
      • Debugging Node.js
      • Asynchronous Node.js
      • Web Servers
      • Accessing API From Browser
      • Application Deployment
      • Mongo DB And Promises
    • Complete React Native
      • Working With Content
      • Building Lists
      • Navigating Users Between Screens
      • State Management
      • Handling Screen Layout
      • Setting Up An App
      • More On Navigation
      • Advanced Statement Management With Context
      • Building A Custom Express API
      • In App Authentication
    • Epic React
      • React Fundamentals
      • React Hooks
      • Advanced React Hooks
      • Advanced React Patterns
      • React Performance
    • Fireship Firestore
      • Firestore Queries And Data Modeling Course
      • Model Relational Data In Firestore No SQL
    • Functional Light Javascript
      • Intro
      • Function Purity
      • Argument Adapters
      • Point Free
      • Closure
      • Composition
      • Immutability
      • Recursion
      • List Operations
      • Transduction
      • Data Structure Operations
      • Async
    • Js Weird Parts
      • Execution Contexts And Lexical Environments
      • Types And Operators
      • Objects And Functions
      • Object Oriented Java Script And Prototypal Inheritance
      • Defining Objects
    • Mastering Chrome Dev Tools
      • Introduction
      • Editing
      • Debugging
      • Networking
      • Auditing
      • Node.js Profiling
      • Performance Monitoring
      • Image Performance
      • Memory
    • React Complete Guide
      • What Is React
      • React Basics
      • Rendering Lists And Conditionals
      • Styling React Components
      • Debugging React Apps
      • Component Deep Dive
      • Building A React App
      • Reaching Out To The Web
      • Routing
    • React Testing
      • Intro To Jest Enzyme And TDD
      • Basic Testing
      • Redux Testing
      • Redux Thunk Testing
    • Serverless Bootcamp
      • Introduction
      • Auction Service Setup
      • Auction Service CRUD Operations
      • Auction Service Processing Auctions
    • Testing Javascript
      • Fundamentals Of Testing
      • Static Analysis Testing
      • Mocking Fundamentals
      • Configuring Jest
      • Test React Components With Jest And React Testing Library
    • Typescript Developers Guide
      • Getting Started With Type Script
      • What Is A Type System
      • Type Annotations In Action
      • Annotations With Functions And Objects
      • Mastering Typed Arrays
      • Tuples In Type Script
      • The All Important Interface
      • Building Functionality With Classes
    • Web Performance With Webpack
      • Intro
      • Code Splitting
      • Module Methods Magic Comments
  • Other
    • Algo Expert
      • Defining Data Structures And Complexity Analysis
      • Memory
      • Big O Notation
      • Logarithm
      • Arrays
      • Linked Lists
      • Hash Tables
      • Stacks And Queues
      • Strings
      • Graphs
      • Trees
    • Aws Solutions Architect
      • AWS Fundamentals IAM EC 2
    • Fundamentals Math
      • Numbers And Negative Numbers
      • Factors And Multiples
      • Fractions
    • Mysql Bootcamp
      • Overview And Installation
      • Creating Databases And Tables
      • Inserting Data
      • CRUD Commands
      • The World Of String Functions
      • Refining Our Selections
      • The Magic Of Aggregate Functions
    • Random Notes
      • Understanding React Hooks
  • Python
    • Data Analysis Using Python
      • Loading Querying And Filtering Data Using The Csv Module
      • Loading Querying Joining And Filtering Data Using Pandas
      • Summarizing And Visualizing Data
    • Intro To Python
      • Course Introduction Intro To Programming And The Python Language Variables Conditionals Jupyter Notebook And IDLE
      • Intro To Lists Loops And Functions
      • More With Lists Strings Tuples Sets And Py Charm
      • Dictionaries And Files
Powered by GitBook
On this page
  • Number Sets
  • Identity Numbers
  • Opposite of A Number
  • Adding and Subtracting Signed Numbers
  • Multiplying Signed Numbers
  • Dividing Signed Numbers
  • Absolute Value
  1. Other
  2. Fundamentals Math

Numbers And Negative Numbers

Number Sets

Number sets you want to know about:

  • Real numbers (R)

    • Irrational numbers (R-Q): all numbers that can't be represented by a fraction (e.g. pi)

    • Rational numbers (Q): all numbers that can be represented by a fraction (e.g. 7/2)

      • Integers (Z): all numbers of the set { ..., -2, -1, 0, 1, 2, 3, ... }

        • Whole numbers (W): from 0 and up { 0, 1, 2, 3, ... }

          • Natural numbers (N): From 1 and up { 1, 2, 3, ... }

Each nested number set is a subset of the previous!

Note: The curly braces are part of set notation: the syntax for representing a set.

Identity Numbers

Identity numbers are numbers for operations that don't change the initial value.

0 is the identity number of addition: 4 + 0 = 4.

1 is the identity number of multiplication: 4 * 1 = 4.

Opposite of A Number

The opposite of a number is its distance away from 0. Think of a number line to understand this:

So, the opposite of 4 is -4.

Bonus: 0 is the opposite of itself because it is 0 units away from 0!

Pro tip: Think of addition and subtraction as indicators of direction:

  • Subtracting a number is saying to go in the opposite direction of the number being subtracted. So 7 - 5 means we start at 7 on the number line, and then we move 5 units in the opposite direction: 5 to the left.

  • Conversely, addition is about going the same direction of the being number added. So 7 + -5 means go left.

Adding and Subtracting Signed Numbers

Signed numbers are just numbers with a positive or negative sign. There are 8 combinations when adding and subtracting them:

  • Positive + Positive = Positive

  • Negative + Negative = Negative

  • Positive + Negative = Positive or Negative depending on which has higher absolute value

    • The sign is with the higher absolute value

  • Negative + Positive = Positive or Negative depending on which has higher absolute value

    • The sign is with the higher absolute value

  • Positive - Positive = Positive if first number higher, Negative if second number higher

  • Negative - Negative = Positive if first number has lower absolute value, Negative if second number has lower absolute value

  • Positive - Negative = Positive

  • Negative - Positive = Negative

Multiplying Signed Numbers

There are 4 possible combinations:

  • Positive * Positive = Positive

  • Negative * Negative = Positive

  • Positive * Negative = Negative

  • Negative * Positive = Negative

When multiplying more than 2 numbers, an even number of negative signs leads to a positive result, and an odd number of negative signs leads to a negative result.

Note: Multiplying anything by 0 will equal 0.

Dividing Signed Numbers

There are also 4 possible combinations:

  • Positive / Positive = Positive

  • Negative / Negative = Positive

  • Positive / Negative = Negative

  • Negative / Positive = Negative

When dividing more than 2 numbers, an even number of negative signs leads to a positive result, and an odd number of negative signs leads to a negative result.

On dividing with zero:

  • 0 divided by any number equals 0 because division is the inverse of multiplication, and since 0 * 5 = 0, 0 / 5 = 0.

  • However, any number divided by 0 is undefined because there is no x where since 5 / 0 = x, x * 0 = 5. x * 0 = 0, not anything else!

Absolute Value

The absolute value of a number is its distance away from 0 in a number line. For example, the distance away from 2 and -2 from 0 is 2.

To denote an absolute value, you wrap the number of mathematical expression in |x|.

|2| = 2
|-2| = 2
|4 - 5| = 1
PreviousFundamentals MathNextFactors And Multiples

Last updated 3 years ago

Pro tip: If you're curious how Negative * Negative = Positive makes sense, check out .

Note: For some intuitive explanations of why the above division combinations work the way they do, check out this .

these proofs
Stack Overflow question