Talk:Check Machin-like formulas: Difference between revisions

From Rosetta Code
Content added Content deleted
(→‎Aesthetics: Not my fault, squire!)
Line 6: Line 6:
: If we can't improve the current layout I would prefer the original format. [[User:TobyK|TobyK]] 22:22, 8 November 2012 (UTC)
: If we can't improve the current layout I would prefer the original format. [[User:TobyK|TobyK]] 22:22, 8 November 2012 (UTC)
:: That's why I was careful to ''not'' use the fully stacked form; it forces the mediawiki <nowiki><math></nowiki> environment to switch from inline mode (converting to appropriate HTML) to display mode (pushing through LaTeX to make an image). With inline mode, it would have been reasonable to expect a cut-n-paste-into-parser approach to work; display mode makes that impossible (well, not without OCRing things first, which is another few orders of magnitude of complexity!) –[[User:Dkf|Donal Fellows]] 11:42, 9 November 2012 (UTC)
:: That's why I was careful to ''not'' use the fully stacked form; it forces the mediawiki <nowiki><math></nowiki> environment to switch from inline mode (converting to appropriate HTML) to display mode (pushing through LaTeX to make an image). With inline mode, it would have been reasonable to expect a cut-n-paste-into-parser approach to work; display mode makes that impossible (well, not without OCRing things first, which is another few orders of magnitude of complexity!) –[[User:Dkf|Donal Fellows]] 11:42, 9 November 2012 (UTC)
::: Well, not really. Whether math shows as image or text (or MathML) depends on user wiki pref settings. The only way to garantee copy/paste is keep it in text format, and if you want to use math environment, might as well let wiki engine format it nicer since you won't know if it comes out as an image (or MathML) anyway. --[[User:Ledrug|Ledrug]] 18:22, 9 November 2012 (UTC)


==OCaml: Very long line==
==OCaml: Very long line==

Revision as of 18:22, 9 November 2012

Aesthetics

The original equations without the math formatting have a lot going for them. What do you think? --Paddy3118 21:08, 8 November 2012 (UTC)

The text format can be used for data input (as in the Python example) and the formatted fractions are a bit crowded (small line spacing).
There are some odd text sizes now, the last identity [tan(-a)=-tan(a)] is in a smaller fontwith Firefox 16.0.2, anyone else see this?
If we can't improve the current layout I would prefer the original format. TobyK 22:22, 8 November 2012 (UTC)
That's why I was careful to not use the fully stacked form; it forces the mediawiki <math> environment to switch from inline mode (converting to appropriate HTML) to display mode (pushing through LaTeX to make an image). With inline mode, it would have been reasonable to expect a cut-n-paste-into-parser approach to work; display mode makes that impossible (well, not without OCRing things first, which is another few orders of magnitude of complexity!) –Donal Fellows 11:42, 9 November 2012 (UTC)
Well, not really. Whether math shows as image or text (or MathML) depends on user wiki pref settings. The only way to garantee copy/paste is keep it in text format, and if you want to use math environment, might as well let wiki engine format it nicer since you won't know if it comes out as an image (or MathML) anyway. --Ledrug 18:22, 9 November 2012 (UTC)

OCaml: Very long line

Could the OCaml be changed to indicate equality with one as a short true/false indicator rather than printing out the very long line? Thanks. --Paddy3118 21:24, 8 November 2012 (UTC)

OK, I have changed the Ocaml program so the output is shorter TobyK 22:07, 8 November 2012 (UTC)
(... And thanks for the task Toby. I enjoyed it :-)
--Paddy3118 06:05, 9 November 2012 (UTC)