Posts

Showing posts from 2015

Programming Assignment 2

Image
Python Programming Assignments This is the second set of python assignments I found.

Real Analysis Proofs

1 ♦ 0 = 0.a 0.a = 0.a 0.a = (0 + 0 ).a [ Since 0 is the additive identity ] 0.a = 0.a + 0.a [ Distributive Axiom ] -0.a + 0.a = -0.a + 0.a + 0.a [ Adding (-0.a) to both sides, the additive inverse of 0.a ] 0 = ( -0.a + 0.a ) + 0.a [ Associative Axiom ] 0 = 0 + 0.a 0 = 0.a [ Since 0 is the additive identity ] ♠ 2 ♦ -a = -1(a) (-a) = (-a) (-a) = (-a) + 0 [ Additive Identity ] (-a) = (-a) + 0.a [ Since 0 = 0.a (By above theorem (1)) ] (-a) = (-a) + ( 1 + (-1) ) a [ Additive Inverse of 1 ] (-a) = (-a) + ( 1.a + (-1)a ) [ Distributive Axiom ] (-a) = (-a) + ( a + (-1)a ) [ Multiplicative Identity ] (-a) = ( (-a) + a ) + (-1)a [ Associative Axiom ] (-a) = 0 + (-1)a [ Additive Identity ] (-a) = (-1)a [ Additive Identity ] ♠ 3 ♦ -(a + b) = (-a) + (-b) -(a + b) = -(a + b) –(a + b) = (-1)( a + b ) [ By above theorem (2) ] (-1)(a + b) = (-1)(a) + (-1)(b) [ Distributive Axiom ] -(a + b) = (-a) + (-b) [ By above theorem

Python Laboratory Excersices

Image
L1_2.2 Python Programs Step 1: Type the Python program using a text editor such as gedit or vi or emacs or Kwrite and save as test1.py ( $ gedit test1.py ) Step 3: Modify the above program to display the source code. # Step 1 # ******** # # display Hello World print "Hello world !\n" # Step 3 # ******** # print "# display Hello World\n" print "print \"Hello world !\\n\"\n"