On 2022-10-14 20:52:38 +0100, Gavin Smith wrote:
> Rendering mathematical notation in a text terminal can work well for
> very simple formulae but breaks down for more complex formulae, like
> 
> J_v(z) = \sum_{k=0}^{\infty }{{{\left(-1\right)^{k}\,\left(z\over 
> 2\right)^{v+2\,k}
>  }\over{k!\,\Gamma\left(v+k+1\right)}}}
> 
> (from the Maxima link above).  As I've said before, there is no way we are
> going to write code in texi2any to parse this and produce text output.

In the MPFR manual, there is one complex formula, currently written

@ifnottex
@math{m} = 1 + ceil(@var{p}*log(2)/log(@var{b})),
@end ifnottex
@tex
$m = 1 + \left\lceil @var{p} {\log 2 \over \log @var{b}} \right\rceil$,
@end tex

(but it is even much simpler than the Maxima one above), and the
other ones are rather simple. For instance, what is currently used:

  @m{7 \times 2^{e-4}, 7 multiplied by two to the power @var{e}@minus{}4}

  @m{1/\sqrt{@var{op}}, the reciprocal square root of @var{op}}

  @m{\log_2 @var{op}, log2(@var{op})}

  @m{0 @le{} @var{rop} < \pi,0 @le{} @var{rop} < Pi}

Requiring a graphical browser for such kind of things would be overkill.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to