If you have to ask, it's too difficult to explain.
But some general approaches (ordered by sophistication and power) are:
- Calculator application
- Spreadsheet application
- Program written in Python (+ possibly numpy etc)
- Program written in a language that compiles to native code, such as C, C++, Rust (+ possibly appropriate libraries)