Real number


How do you define "real"?

A real number is any number with an infinite decimal expansion and no imaginary component. Between any two real numbers, there are infinitely many real numbers, which is why they are often used to measure continuous quantities like distance and time. Rational and irrational numbers make up the set of reals, whose symbol is \(\mathbb{R}.\)

Real numbers are largely excluded from discrete mathematics because the focus is on non-continuous (discrete) structures such as integers, graphs, and logical statements.

Contents

Sign


The property of a real number being positive or negative is its sign. All real numbers but \(0\) have a sign.

For a real number \(x\):
If and only if \(x > 0\), \(x\) is positive.
If and only if \(x < 0\), \(x\) is negative.
If and only if \(x \ge 0\), \(x\) is non-negative.
If and only if \(x \le 0\), \(x\) is non-positive.

Absolute value


The absolute value of a real number is defined as the magnitude of its distance from \(0.\)

For a real number \(x\):
If and only if \(x\) is non-negative, \(|x|=x.\)
If and only if \(x\) is negative, \(|x|=-x.\)
Logic & Proofs
IntegerRational numberInequalityReal numberTheoremProofStatementProof by exhaustionUniversal generalizationCounterexampleExistence proofExistential instantiationAxiomLogicTruthPropositionCompound propositionLogical operationLogical equivalenceTautologyContradictionLogic lawPredicateDomainQuantifierArgumentRule of inferenceLogical proofDirect proofProof by contrapositiveIrrational numberProof by contradictionProof by casesSummationDisjunctive normal form
Set Theory
SetElementEmpty setUniversal setSubsetPower setCartesian productStringBinary stringEmpty stringSet operationSet identitySet proof
Functions
FunctionFloor functionCeiling functionInverse function
Algorithms
AlgorithmPseudocodeCommandAsymptotic notationTime complexityAtomic operationBrute-force algorithm
Relations
RelationReflexive relationSymmetric relationTransitive relationRelation compositionEquivalence relationEquivalence class
Number Theory
Integer divisionLinear combinationDivision algorithmModular arithmeticPrime factorizationGreatest common divisorLeast common multiplePrimality testFactoring algorithmEuclid's theoremPrime number theoremEuclidean algorithm
Induction
Proof by inductionFibonacci sequenceProof by strong inductionWell-ordering principleSequenceFactorialRecursive definition
Combinatorics
Rule of productRule of sumBijection rulePermutationCombinationComplement ruleExperimentOutcomeSample spaceEventProbabilityProbability distributionUniform distributionMultisetSixfold wayInclusion-exclusion principlePigeonhole principle
Graph Theory
GraphWalkSubgraphRegular graphComplete graphEmpty graphCycle graphHypercube graphBipartite graphComponentEulerian circuitEulerian trailHamiltonian cycleHamiltonian pathTreeHuffman treeSubstringForestPath graphStarSpanning treeWeighted graphMinimum spanning treeGreedy algorithmPrim's algorithm
Recursion
RecursionRecursive algorithmCorrectness proofDivide-and-conquer algorithmSorting algorithmMerge sort