Why can't we use standard mathematics instead of programming languages? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why can't we use standard mathematics instead of programming languages?

I'm a complete beginner, and I chose python because it was said to be the easiest programing language to understand. But I 've been through high school, and the mathematical language we all learn there seems much more concise, straight, understandable, and ellegant than python. For example, this little program: def apply_twice(func, arg): return func(func(arg)) def add_five(x): return x + 5 print(apply_twice(add_five, 10)) It could have been written simply like this: h (h (10)) h (x)=x+5

17th Dec 2016, 2:40 PM
Yuri Disaró Amado
Yuri Disaró Amado - avatar
1 Answer
0
I'm not satisfied with the explanation yet. I believe you meant "Because Programming language is not only used for ARITHMETIC". If so, I have to remind that Mathematics is not only used for arithmetics either. Mathematics is a language (or a variety of languages) just like Programing languages are. My guess is that there could be some problem related to computers data processing restrictions (like having to deal with infinites or something else). Could that be true?
17th Dec 2016, 3:49 PM
Yuri Disaró Amado
Yuri Disaró Amado - avatar