Axiomatic Mathematics meets Object Oriented Programming

Slides:



Advertisements
Similar presentations
HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2010 Hawkes Learning Systems. All rights reserved. Hawkes Learning Systems: College Algebra.
Advertisements

Jeopardy Math 1-1 to 1-6 Review 100 Algebraic Properties Radicals Factoring More Fun Math.
Chapter 4 – Finite Fields. Introduction will now introduce finite fields of increasing importance in cryptography –AES, Elliptic Curve, IDEA, Public Key.
E - BOOK FOR COLLEGE ALGEBRA King Fahd University of Petroleum & Minerals B.3 E - BOOK FOR COLLEGE ALGEBRA King Fahd University of Petroleum & Minerals.
CHAPTER 10 Exponents and Polynomials Slide 2Copyright 2012, 2008, 2004, 2000 Pearson Education, Inc. 10.1Integers as Exponents 10.2Working with Exponents.
Exponents, Polynomials, and Polynomial Functions.
Homework Read pages 304 – 309 Page 310: 1, 6, 8, 9, 15, 17, 23-26, 28-31, 44, 51, 52, 57, 58, 65, 66, 67, 69, 70, 71, 75, 77, 79, 81, 84, 86, 89, 90, 92,
Chapter 3 Math Vocabulary
Objectives Evaluate expressions containing square roots.
IWBAT compare and order positive and negative numbers.
Objectives Factor the difference of two squares..
© T Madas. Add zero and negative integers Add fractions and decimals which can be represented by fractions Add imaginary numbers Real Numbers ( ) Integers.
6.4 Factoring and Solving Polynomial Equations. Factoring Sum or Difference of Cubes If you have as sum or difference of cubes such as a 3 +b 3 or a 3.
EXAMPLE 2 Evaluate exponential expressions a. 6 – Product of a power property = 6 0 Add exponents. = 1 Definition of zero exponent = 6 –
4.1 The Product Rule and Power Rules for Exponents
Let’s do some Further Maths
MATH 2A CHAPTER EIGHT POWERPOINT PRESENTATION
Section 1.1 Numbers and Their Properties.
Chapter 1.1 Common Core – A.SSE.1.a Interpret parts of an expression, such as terms, factors, and coefficients. Objectives – To write algebraic expressions.
1 Using the Synergies Between the Object-Oriented Paradigm and Mathematics in Joint Mathematics/Computer Science Programs Marc Conrad - Tim French University.
NS2. 1 Understand negative whole-number exponents
Bernie Frankpitt. What is algebra? “Algebra is the Language of Mathematics”
Lesson 8-1 Multiplying Monomials. Mathematics Standards -Number, Number Sense and Operations: Explain the effects of operations such as multiplication.
Lecture 4: Addition (and free vector spaces) of a series of preparatory lectures for the Fall 2013 online course MATH:7450 (22M:305) Topics in Topology:
Zero & Negative Exponents
Marc Conrad, University of Luton1 Abstract Classes – pure computer science meets pure mathematics. The Beauty of Implementing Abstract Structures.
E - BOOK FOR COLLEGE ALGEBRA King Fahd University of Petroleum & Minerals B.2 E - BOOK FOR COLLEGE ALGEBRA King Fahd University of Petroleum & Minerals.
Algebra 1 Notes: Lesson 8-5: Adding and Subtracting Polynomials.
11-7 Multiplying Integers Warm Up Find each product ,600 14,000.
Operations with Integers
Set A formal collection of objects, which can be anything May be finite or infinite Can be defined by: – Listing the elements – Drawing a picture – Writing.
1 Numbers & Basic Algebra – Math 103 Math, Statistics & Physics.
Evaluating Algebraic Expressions 4-3 Properties of Exponents California Standards NS2.3 Understand negative whole- number exponents. Multiply and divide.
Introduction to Modern Algebra. In arithmetic, you learned four operations n n Addition n n Subtraction n n Multiplication n n Division.
Jason Holman Mathematics Number Theory Algebraic Theory Global Fields for Complex Multiplication Local and “p”-adic fields.
Polynomials. Polynomial a n x n + a n-1 x n-1 +….. + a 2 x 2 + a 1 x + a 0 Where all exponents are whole numbers – Non negative integers.
Unit 3 Vocab By Blake L.. Algebraic expression In mathematics, an algebraic expression is an expression built up from constants, variables, and a finite.
8.6 Algebra and Composition of Functions. that limit the domain of a function are: The most common rules of algebra Rule 1: You can’t divide by 0. Rule.
1 25/11/ :28:15 Marc Conrad University of Bedfordshire My Mouse – My Music Marc Conrad Tim French Department of Computer.
Number Systems The Real Number Systems. Objectives: To determine what qualifies something as a mathematical object. To develop some of the basic properties.
THE REAL NUMBERS College Algebra. Sets Set notation Union of sets Intersection of sets Subsets Combinations of three or more sets Applications.
Chapter 2 Lesson 3 Subtracting Integers pgs What you will learn: Subtract Integers Evaluate expressions containing variables What you will learn:
Introduction – Sets of Numbers (9/4) Z - integers Z + - positive integers Q - rational numbersQ + - positive rationals R - real numbersR + - positive reals.
Algebra II Explorations Review ( ) Day Divide using LONG Division. Show all work. Answer:
Algebra Properties Definition Numeric Example  Algebraic Example.
Chapter 7: Rational Algebraic Functions Section 7-11: Variation Functions.
HIGH SCHOOL: Algebra Perform arithmetic operations on polynomials. A-APR.1. Understand that polynomials form a system analogous to the integers, namely,
Lesson Presentation.
Real Number and the number Line. Number System Real numbers: is number that can be positive or negative and have decimal places after the point. Natural.
2.3 Multiplying Rational Numbers The product of numbers having the same sign is positive. The product of numbers having different signs is negative.
Ch 2.5 Objective: To multiply integers.. Properties Commutative Property: a * b = b * a Two numbers can be multiplied in either order and the result is.
1 Numbers & Basic Algebra – Math 103 Math, Statistics & Physics.
Exponent Integers Learn to evaluate expressions with negative exponents.
Learn to subtract integers. Course Subtracting Integers.
DAY 8 Using Identity and Inverse to Write Equivalent Expressions.
HW Warm-Up Evaluate the expression. HW Lesson 9.1: Solving Quadratic Equations by Finding Square Roots Algebra I.
Algebra 2 Chapter 1. Section 1.1 Expressions and Formulas.
Appendix A Basic Algebra Review
Mathematical Background: Extension Fields
UNIT SELF-TEST QUESTIONS
Object Oriented Programming & Mathematics
Solving Two Step Equations
Connecting Algebra Tiles to Integer Tiles
Homework Check page 367 #
Precalculus Essentials
Skills to Enhance Learning GED Math
Chapter 1 Part A Review Sections 1-1 to 1-4.
Mathematical Background: Extension Finite Fields
Exponent practice.
Presentation transcript:

Axiomatic Mathematics meets Object Oriented Programming

Use the GoF Mediator pattern for Implementing Abstract Mathematics. Ring * Ring Element R R[X] X:String Polynomial Integer Z

Abstract Structures are modelled as abstract classes. Abstract: An arbitrary (unspecified) ring Ring R Concrete: Ring of Integers, Polynomial Rings, … R[X] X:String Z

Axiomatic definitions are implemented as abstract methods. Ring Example: Abstract: addition negation multiplication inversion "zero" "one" check if zero Not abstract: subtraction exponentiation embedding of Z and Q Check for equality evaluation of polynomials

The mediator pattern is used in the Java com.perisic.ring package for: Rings, Polynomial Rings, Integers, Rational Functions, Algebraic Extensions, Cyclotomic Fields, Universal Rings, etc. But it can be applied to any mathematical structure, such as: groups, metric spaces, topological spaces, group rings, etc.

Further Reading The Java package com.perisic.ring is available at: http://ring.perisic.com M. Conrad, T. French, Exploring the synergies between the Object-Oriented paradigm and Mathematics: A Java led approach, to appear in Int. J. Math. Educ. Sci. Technol. M. Conrad, T. French, C. Maple, S. Pott, Mathematical Use Cases lead naturally to non-standard Inheritance Relationships – How to make them accessible in a mainstream language?, MASPEGHI 2004 (WS 12 of ECOOP)

Contact Marc Conrad Tim French Carsten Maple Luton Cambridge Oxford marc.conrad@luton.ac.uk Tim French tim.french@luton.ac.uk Carsten Maple carsten.maple@luton.ac.uk University of Luton Dept. of Computing and IT Park Square Luton LU1 3JU, UK Cambridge Oxford London Luton