|
|
|
|
|
by justinmeiners
2531 days ago
|
|
Author here. I would say that modeling the computational process in math is not typically helpful (you already have a formal programming language) you should model the real-world (or at least computer world) problem you are trying to solve. Carefully define operations and constraints, introduce abstractions for solving them, etc. Do you have an example of an I/O problem you have thought about that you would like me to talk more about? |
|
The question I'm trying to ask is how I should express (part of) programs on paper using math when I don't see how they are related to math.
Example: How could I easily express a function that takes a string as input and outputs the string capitalized using math notation?
I understand that the problem you solve in the post should probably be put on paper first before you began writing any code.
My problem is to express programs in math when "calculate" isn't part of the problem description, like it is in the example in the blog post.
Edit: Changed example question.