SOFTWARE REQUIRED: Linux Operating Systems,Sbcl,LISP
Let S be a set such that S={s, e, i, o, f, DD, NDD, success, failure} s=initial state e = end state i=INPUT: Input data as user defined values. (Two integer numbers,a&b) Where A=first number B=second number o=OUTPUT: It will show the operations on two input numbers f=FUNCTIONS={addition(),subtraction(),multiplication(),division(),square(),cube(),si ne(),cosine(),tan(),maximum number(),display()} Success-desired outcome generated. Failure-Desired outcome not generated or forced exit due to system error.={power down,crash} DD-Deterministic Data it helps identifying the load store functions or assignment functions. NDD- Non Deterministic Data of the system S to be solved. Input Analysis The input given to the system are queries and commands whose response is given buy the system.The following are the queries and commands: 1.Addition 2.Subtraction 3.Multiplication 4.Division 5.Square 6.Cube 7.Sine 8.Cosine 9.Tan 10.Maximum number 11.Display For completing the above functions in the next subsection we define the mathematical functions which will be used by the system. Addition function: It will perform addition of numbers Addition=a+b Subtraction function: It will perform subtraction of numbers Subtraction=a-b Multiplication function:
It will perform multiplication of numbers
Multiplication=a*b Division function: It will perform multiplication of numbers Division=a/b Square function: It will find square of number 1)for 1st no. Square=a*a 2)for 2nd no. Square=b*b Cube function: It will find cube of number 1)for 1st no. Cube=a*a*a Cube=b*b*b Sine function: It will find sine value of input numbers. 1)for 1st no. Sin(a) 2)for 2nd no. Sin(b) Cosine function: It will find cosine value of input numbers. 1)for 1st no. Cosine(a) 2)for 2nd no. Cosine(b) Tan function: It will find tangent value of input numbers. 1)for 1st no. Tan(a) 2)for 2nd no. Tan(b) Maximum number function: It will find greater number between both input numbers. Display function It will display result of all operations Initial and Final state The initial state of system is defined by the set X & Y initially After the operation on numbers X & Y no longer exist and a new set X( new) & Y(new) becomes applicable.