[metapost] New numbersystems strange behaviour of arclength
luigi scarso
luigi.scarso at gmail.com
Tue Mar 12 19:20:44 CET 2019
On Tue, Mar 12, 2019 at 7:03 PM Karel <horakk at math.cas.cz> wrote:
> Dear Luigi,
>
> the following code
>
> beginfig(0);
> path s;
> s:=fullcircle scaled 30mm;
> for k=0 upto 18: draw origin--point(arctime ((k/36)*arclength s) of s)
> of s; endfor
> endfig;
> end
>
> gives very strange results when used with
> numbersystem=decimal or binary (mpost 2.00 for TeXlive 2019).
>
> With scaled a double numbersystem everything works fine.
>
>
hm, I see. Small example:
if numbersystem="decimal":
numberprecision:=8;
fi;
beginfig(0);
path s;
s:=fullcircle scaled 30mm;
tracingall;
for k=1 upto 1: draw origin--point(arctime ((k/36)*arclength s) of s)
of s; endfor
endfig;
end.
> It would be also nice (from practical point of view) if the numbersystem
> could be read by mpost from the compiled file, e.g. from commented first
> line like the format in TeX file.
>
>
Ok, but I fear that I have not time to fix it (them) in time for texlive
2019.
--
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/metapost/attachments/20190312/c81fe8ef/attachment.html>
More information about the metapost
mailing list