Source Annotator

Paste a code snippet with math expressions. Every line that parses as an EML expression gets a SuperBEST cost annotation. Comments and blank lines pass through.

Load sample:
Lines9
Parsed4
Total cost (positive)26n
General total33n
Naive (1n per op)17n
2z = w * x + b3n / 5n
* 1n+ 2n
3a = 1 / (1 + exp(-z))7n / 8n
neg 2nexp 1n+ 2n/ 2n
6sp = ln(1 + exp(z))4n
exp 1n+ 2nln 1n
9ce = -y * ln(a) - (1 - y) * ln(1 - a)12n / 16n
neg 2nln 1n* 1n- 2n- 2nln 1n* 1n- 2n