Vous êtes sur la page 1sur 2

MATHEMATICAL MODEL

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={square(), 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.Square
2.Display
For completing the above functions in the next subsection we define the
mathematical functions which will be used by the system.
1.Square functionIt will find square of given two digit number.
It will find square as follows:

Square of 2 digit no
12
a)1.separate two no.i.e a=1 and b=2.
2

b)apply formula ( a

*100+2ab*10+ b

2.Display function
It will display square of given two digit number.
The initial state of system is defined by the set X Y initially
After the operation on numbers X no longer exist and a
new set X( new) becomes applicable.

Vous aimerez peut-être aussi