Page 1 of 1

Just an idea for equations

Posted: Thu Jun 25, 2015 8:47 pm
by nezos
I had an idea which i haven't seen in other IDEs. Would be possible to add mathematical equations inside commented lines (comments)?

Re: Just an idea for equations

Posted: Thu Jun 25, 2015 10:00 pm
by eranif
I am not sure I follow.. can you
elaborate?

Re: Just an idea for equations

Posted: Fri Jun 26, 2015 12:59 am
by nezos
Suppose you are a scientist and your code involves many equations/formulas. On every line you would need to add a reference to a book like for example
//page 5 in 'book title'

or in an awkward way write:
//y=a^2+b^2*x (simple equation)

Wouldn't it be nice to see the equation written like in word equation editor, mathtype or latex?

This would help a lot, especially in complex equations where it is very difficult to read something like SumOf(k*Pn(cos(theta) + n*322.4^n) for n=2 to 180.