MATLAB Answers

0

Algorithm to convert code into mathmatically meaningful and readable format in text

SSOI SS 님이 질문을 제출함. 23 Aug 2012
Hi, a simple question but perhaps no easy answers:
Does anyone know whether there is an algorithm or way to convert code (e.g. java, c etc) into a mathematically readable text format. One example is:
Input:
A = ( ( ( ( ( (X ) * Y ) / Z) * Q) * P) / R );
Output:
X * Y * Q * P
A = -----------------------
Z * R
Thanks for any advice.

  댓글 수: 1

Maybe:
syms X Y Z Q P R
f = ( ( ( ( ( (X ) * Y ) / Z) * Q) * P) / R );
pretty(f)

로그인 to comment.

답변 수: 0


Translated by