Can you draw a two dimensional picture with asymptote?

Can you draw a two dimensional picture with asymptote?

Having determined that Asymptote is already installed on her computer, Janet decides to use it to draw a picture of the two-dimensional region that will be revolved. She could do this using TikZ, but Vincent recommends that she get some basic practice drawing with Asymptote before tackling a three-dimensional picture.

How to add one line to an asymptote?

Since Janet uses pdflatex, she \\fnds it annoying to import eps \\fles, and would prefer that the \\graphic” be output in another format. Adding one line to her Asymptote \\fle causes it to output a pdf \\fle instead: settings.outformat = “pdf”; label(“Hello world!”);

How to add a semicolon to an asymptote?

Adding one line to her Asymptote \\fle causes it to output a pdf \\fle instead: settings.outformat = “pdf”; label(“Hello world!”); Vincent notes that every line should end with a semicolon. Since TikZ behaves the same way, Janet does not \\fnd this too di\cult to remember.

How to calculate the thickness of an asymptote?

Thickness: dx Volume: dV = Area thickness = \[f(x)]2dx A The complete code 100 B Installing Asymptote 105 Index 107 1 First Steps 1.1 Introduction Janet is a calculus teacher.

Which is an advantage of the asymptote program?

A major advantage of Asymptote over other graphics packages is that it is a programming language, as opposed to just a graphics program. You can even run it in your browser without installing it, using the Asymptote Web Application. Just enter the code (including the semicolon) and click the Run button.

What should the font size be in Asymptote?

Vincent asks her what size she would like the font in her Asymptote graphics. Being told that the desired font size is 10 points, he proposes the following: settings.outformat = “pdf”; defaultpen(fontsize(10pt)); label(“Hello world!”);

What kind of programming language is asymptote?

He has some familiarity with the programming language Asymptote, which is especially designed to produce vector graphics and has some fairly substantial three-dimensional capabilities. Working with her husband, Janet decides to try to draw the \\fgure using Asymptote.

What’s the best way to write an asymptote?

1She is inclined to use TeXShop, since she already has it, but Aquamacs would really be more suitable. Vincent, who is a die-hard fan of the command line, recommends using the command-line editor nano. On a Windows machine, the simplest thing to use would be Notepad. 2Not including the yellow background, of course.

Do you have asymptote installed on your computer?

Thus, to the surprise of both Janet and her husband, it appears that Asymptote is already installed on her computer.3 Since Janet uses pdflatex, she \\fnds it annoying to import eps \\fles, and would prefer that the \\graphic” be output in another format.