User Activity

  • Posted a comment on discussion Help on Asymptote

    It is not clear to me if you are asking about the inner working of Asymptote or rather about the general use of words like velocity and acceleration in the context of geometry and drawings. Once you have a curve described as P(t), i.e. a point P in space as a function of a parameter called t we call velocity the vector which is the first derivative of function P(t) with respect to t and acceleration the second derivative of P(t) with respect to t. The names, borrowed from physics, come from the fact...

  • Posted a comment on discussion Help on Asymptote

    I tried your code and if I change the parameters corresponding to the semiaxes of the ellipse the shape changes accordingly. I do not see any issue. I use asymptote 3.05 on MacOs. Maurizio Il giorno venerdì 2 gennaio 2026 alle ore 17:23:23 CET, qavailableq qavailableq@users.sourceforge.net ha scritto: What if you change the dimensions, the second or third argument of "ellipse"? I find that this has no effect. Output and scaling Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/asymptote/discussion/409349/...

  • Posted a comment on discussion Help on Asymptote

    Whichever way I run this code I get an output which is perfect. An image of the half ellipse with the right scaling and all that. Maurizio Il giorno venerdì 2 gennaio 2026 alle ore 10:09:50 CET, qavailableq qavailableq@users.sourceforge.net ha scritto: The code suggested to me for drawing a half-ellipse was: size(250); path P = ellipse((0,0), 2, 1); // Full ellipse centered at (0,0) with semi-axes 2 and 1 path Q = subpath(P, 0, reltime(P, 0.5)); // Get the first half of the path (0 to 50% relative...

  • Posted a comment on discussion Help on Asymptote

    Sorry for messing up the code appearance.... Here it is: settings.outformat = "pdf"; currentpicture=new picture; import graph; size(5cm); real a=1; real b=.6; pair P(real u){return (a*Cos(u), b*Sin(u));} draw(graph(P,0,180)); shipout("Half_Ellipse"); Maurizio

  • Posted a comment on discussion Help on Asymptote

    I think that the best way is just to use the parametric form of an ellipse. Let a be the horizontal semi-axis, and b be the vertical semi-axis, the file I wuould write is settings.outformat = "pdf"; currentpicture=new picture; import graph; size(5cm); real a=1; real b=.6; pair P(real u){return (aCos(u), bSin(u));} draw(graph(P,0,180)); shipout("Half_Ellipse"); Notice that I used sin and cos function with a capital initial, which means that the angle should be given in degrees, from 0 to 180 (of course)....

  • Posted a comment on discussion Help on Asymptote

    I add the release of ghostcript I have is 10.05.1, because I suspect that could matter... Maurizio Il giovedì 29 maggio 2025 alle ore 09:19:12 CEST, mauvia mauvia@users.sourceforge.net ha scritto: I am on Imac (MacOS Sequoia 15.5) with Asymptote 3.04 (so much later than your version, maybe you should update your version of Asympyote). I do not have any issue with your code. My TeX installation is from MiKTeX, always up to date. Just my contribution. Maurizio Code was working then it stopped Sent...

  • Posted a comment on discussion Help on Asymptote

    I am on Imac (MacOS Sequoia 15.5) with Asymptote 3.04 (so much later than your version, maybe you should update your version of Asympyote). I do not have any issue with your code. My TeX installation is from MiKTeX, always up to date. Just my contribution. Maurizio

  • Posted a comment on discussion Help on Asymptote

    I did check with the online compiler and I get the same issue. If I compile with settings.outformat = "pdf"; settings.render=0; I get two rectangles, while with settings.outformat = "pdf"; settings.render=16; I see only ONE rectangle. Maurizio

View All

Personal Data

Username:
mauvia
Joined:
2006-04-19 16:53:51

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB