1
$\begingroup$

Almost all mathematical formulas functions etc can be translated to programming codes, can it be done in reverse i.e. code to math?

Is it possible to convert simple programming codes (programs that are not hardware or software specific) to mathematical formulas and functions? i.e. is it possible to translate a program which remove vowels from a string?

I think 'simple programming codes' is a vague statement so I have given the example of type of programs.

  • 2
    Why would you want to do that?2011-11-23
  • 0
    Sure, program it all into diophantine equations. They are as powerful as turing machines.2011-11-23
  • 0
    Almost all mathematical formulas functions etc can be translated to programming codes, I was wondering can it be done in reverse i.e. code to math?2011-11-23
  • 0
    I don't know what you mean by "translated to". Why don't you give an example of a mathematical formula and what you consider to be the corresponding code?2011-11-23
  • 0
    @ZevChonoles: simples example would be to add, multiply, divide, summation, factorial etc etc. They all can be implemented in a programming language. My question is that if programs can also be implemented in mathematical language.2011-11-23
  • 1
    I think your question is too unspecific for the answer to even be possible to be "yes". Programming far more than just things to do with mathematics. For example, try to convert the following java line to math: `System.out.println("I really don't think this can be written in math, but I could be wrong");`. You used the example of removing vowels from a string; it is possible that it is convertible in that specific case, but I doubt you can do it for much more than that.2012-04-16

1 Answers 1