Perform structural decomposition, develop a block diagram containing at least 3 subroutines, and algorithms of these subroutines. Implement in C++ in console mode. Provide a primitive menu-type interface that allows you to select the desired subroutine.
Write a program to study the function y=sin(x)*x^2
on a given segment
[a,b]
. The research consists in finding the extremums of the function,
finding the root by the method of half division and finding the integral
by the method of rectangles with a given accuracy ξ
. The user should be able
to set the interval on request, and select the type of study using the menu.
- Install
ncurses
library:
brew install ncurses
- Build project:
git clone [email protected]:daronenko/math-analyzer.git
cd math-analyzer/build
cmake ..
make
- Run binary:
src/math-analyzer
- Install
ncurses
library:
sudo apt update
sudo apt install libncurses-dev
- Build project:
git clone [email protected]:daronenko/math-analyzer.git
cd math-analyzer/build
cmake ..
make
- Run binary:
src/math-analyzer