Several StackExchange sites have support for mathematical formulae using MathJax (LaTeX syntax).
Many Code-Golf challenges are mathematical in nature. Equations come up very often in discussions.
Therefore, I think it would be very useful to enable support for this on here as well?
Test to see if it is enabled yet: $ \LaTeX $
2 Answers 2
Although I don't think MathJax is necessary for codegolf.SE (in contrast to math.SE), I think it would be neat to have it. So I've checked some questions / answers to see how MathJax would be used on this site:
- Easy indexing / exponentiation by
$A_i$instead ofA<sub>i</sub>(example) - Symbols for number sets (
\mathbb{N}and\mathbb{R}) - Nicer Big-O notation (
\mathcal{O}(n^2)instead ofO(n^2)) \cdotinstead of*(example)- Nicer variables (It's easier to recognize
$n$as a variable thann)
A way around that can be used by single people who want to have this in their answer is including images like this answer does.
codegolf.SE could also generate images for formulas instead of loading MathJax. But this might cause other problems. Here is how it can be done (link).
-
\$\begingroup\$ In the present absence of MathJax, a FAQ article on "How can I incorporate good-looking mathematical exposition into my question/answer?" would be a nice thing to have. You seem to have a good command of a variety of options...perhaps you would be willing to write it? I can also throw in a few tidbits (ASCIITeX, export options in MathType and Mathematica) \$\endgroup\$Jonathan Van Matre– Jonathan Van Matre2014年03月17日 19:18:50 +00:00Commented Mar 17, 2014 at 19:18
-
\$\begingroup\$ I could try to write this. Where should I write a first draft? How long can this explanation be? \$\endgroup\$Martin Thoma– Martin Thoma2014年03月17日 19:28:42 +00:00Commented Mar 17, 2014 at 19:28
-
\$\begingroup\$ Details on adding to the FAQ are here: meta.codegolf.stackexchange.com/questions/1280/… \$\endgroup\$Jonathan Van Matre– Jonathan Van Matre2014年03月17日 19:45:11 +00:00Commented Mar 17, 2014 at 19:45
-
\$\begingroup\$ @JonathanVanMatre Thanks. I've created a fist draft here. If I find some free time, I'll search for command line tools that make this process easier. \$\endgroup\$Martin Thoma– Martin Thoma2014年03月20日 10:53:32 +00:00Commented Mar 20, 2014 at 10:53
-
\$\begingroup\$ There is meta.codegolf.stackexchange.com/questions/1611/… but neither answer is very usable. Maybe we should set a code-challenge to convert a math.se question with LaTeX into one that works for code.se :) \$\endgroup\$user9206– user92062014年06月02日 16:51:22 +00:00Commented Jun 2, 2014 at 16:51
While Latex is nice for viewing math, if the math is not essential to the site, it is a big problem. On Mathematics.se, it can take a while before the raw Latex is converted to what I see, especially on a slow computer. Oftentimes on a slow computer, the computer freezes.
As an alternative, I recommend copying the html symbols from this: http://en.wikipedia.org/wiki/Table_of_mathematical_symbols
This is what I have done in my posts when I want mathematical symbols; I even compiled a list of symbols into my profile for easy access.
-
\$\begingroup\$ In my experience this is rather a matter of the browser than a matter of the computer. Old IE versions have problems with that. Chrome on the other hand displays it fine. Firefox seems to be much slower in executing JavaScript than Chrome, but by far better than old IE versions. \$\endgroup\$Martin Thoma– Martin Thoma2014年03月17日 19:31:50 +00:00Commented Mar 17, 2014 at 19:31
-
\$\begingroup\$ @moose I have a windows 7 computer that will freeze, using the most up to date chrome. \$\endgroup\$Justin– Justin2014年03月17日 19:49:39 +00:00Commented Mar 17, 2014 at 19:49
-
3\$\begingroup\$ @Quincunx Well, there you go. You just need to fix your having a windows 7 computer. \$\endgroup\$AJMansfield– AJMansfield2014年04月25日 21:53:17 +00:00Commented Apr 25, 2014 at 21:53
You must log in to answer this question.
Explore related questions
See similar questions with these tags.
\$a=b\$. Here is a fraction:\$ \phi=1+\frac{1}{1+\frac{1}{1+}}\dots\$. It is\$ \phi=1+\frac{1}{1+\frac{1}{1+}}\dots\$\$\endgroup\$