fred-wang / TeXZilla

LALR Javascript LaTeX-to-MathML converter compatible with Unicode
http://fred-wang.github.io/TeXZilla/
130 stars 21 forks source link

Mistake in the formula #78

Closed jido closed 3 weeks ago

jido commented 3 weeks ago

In example six, there is an application of the half-angle formula which is not correct. The result is correct but that's only because sin(π/6) = 1/2.

The actual formula is tan(a) = (1 - cos(2a)) / sin(2a).

https://github.com/fred-wang/TeXZilla/blob/4f5daba7461ec98a312863d11ddf99008589cad1/examples/customElement.html#L348

fred-wang commented 3 weeks ago

@jido Thank you for the report. Do you plan to submit a PR?

jido commented 3 weeks ago

Fine, I did that.

jido commented 3 weeks ago

When will it update at:

http://fred-wang.github.io/TeXZilla/examples/customElement.html ?

fred-wang commented 3 weeks ago

I just merged into the gh-pages branch, so that should happen soon.