Problem Identification and Requirements Analysis
Problem Identification and Requirements Analysis
Customer
Teacher
. RF0:Function selection
. RF1:Cosine approximation
Its operation consists of only giving it a search interval that encapsulates the root
orsolution, the program will validate the interval within the function selected
by the user at the beginning and through a series of defined mathematical
processes, the result will be given at the end.
UN. f ( x )=2cos ( x 2)
2 2
B. f ( x )=3 +7 x +5
C. f ( x )=x cos ( x)
Non-functional . Your code must implement the operations required for these calculations. You
requirements cannot make use of libraries that have implemented mathematical functions.
. The condition f(a) * f(b) < 0 must be fulfilled(This means: the product of that
function evaluated in the values a and b, must be less than 0, in other words it must
always be negativor )
. Convergence criteria:
. Testing Options
. For this work we must use the approximate definition of the cosine function
which is:
The code will show on screen 3 different functions, The user must choose
one of the 3 functions, for that, he will be asked to enter a number from 1
to 3 ("1 for and 3 for
Summary f ( x )=2cos ( x2 ) , 2 para f ( x )=32 +7 x 2+5 f ( x )=x cos ( x) "). The
system must validate if the type of data entered, corresponds to the
function you want to select, if the data is not correct, an error message
will be displayed on the screen.
Result or Postcondition If the data entered by the user is correct, the system will continue with the
calculation process in the bisection method.
The system should calculate the cosine of x through the Taylor series.
Summary
Result or Postcondition The system will return the approximate value of the cosine function
The system must calculate the factorial of x, taking into account that this only
Summary
applies to positive integers.
Result or Postcondition The power is calculated and the result of this is returned.
From the function that the user chose, the system must calculate the root or
solution of f(x). To prompt the user for a search interval that encapsulates
Summary the actual root of the function. If the entered range does not match the type
of data being requested, an error message must be sent. (one of the 3
convergence criteria must be selected)
If the data entered is correct, the system will calculate the root of the function
Result or Postcondition
entered by the user.
Pop-up message
conditionNotValid Rope saying "the data
enteredis not valid"