diff options
author | Karl Berry <karl@freefriends.org> | 2017-04-16 17:27:26 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-04-16 17:27:26 +0000 |
commit | fbb7e835bffb3653af5165cbcc62aef0df8bfe93 (patch) | |
tree | 556994e281f2760742f38823577c476dbcb84122 /Master/texmf-dist/doc/info | |
parent | df88f83b1126c57b3ca9b0371071f36caba3fbbf (diff) |
asymptote 2.41 for TL17
git-svn-id: svn://tug.org/texlive/trunk@43843 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/info')
-rw-r--r-- | Master/texmf-dist/doc/info/asy-faq.info | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/info/asymptote.info | 170 |
2 files changed, 90 insertions, 82 deletions
diff --git a/Master/texmf-dist/doc/info/asy-faq.info b/Master/texmf-dist/doc/info/asy-faq.info index b213a530b1e..67729d0b5f3 100644 --- a/Master/texmf-dist/doc/info/asy-faq.info +++ b/Master/texmf-dist/doc/info/asy-faq.info @@ -10,7 +10,7 @@ END-INFO-DIR-ENTRY File: asy-faq.info, Node: Top, Next: Question 1.1, Up: (dir) ASYMPTOTE FREQUENTLY ASKED QUESTIONS - 12 May 2016 + 22 Mar 2017 This is the list of Frequently Asked Questions about Asymptote (asy). diff --git a/Master/texmf-dist/doc/info/asymptote.info b/Master/texmf-dist/doc/info/asymptote.info index 68ca0b2a442..186c4c7f000 100644 --- a/Master/texmf-dist/doc/info/asymptote.info +++ b/Master/texmf-dist/doc/info/asymptote.info @@ -1,7 +1,7 @@ This is asymptote.info, produced by makeinfo version 6.0 from asymptote.texi. -This file documents 'Asymptote', version 2.38. +This file documents 'Asymptote', version 2.41. <http://asymptote.sourceforge.net> @@ -22,7 +22,7 @@ File: asymptote.info, Node: Top, Next: Description, Prev: (dir), Up: (dir) Asymptote ********* -This file documents 'Asymptote', version 2.38. +This file documents 'Asymptote', version 2.41. <http://asymptote.sourceforge.net> @@ -4454,6 +4454,14 @@ string s=(string) 2.5; real[] a={2.5,-3.5}; int[] b=(int []) a; write(stdout,b); // Outputs 2,-3 + In situations where casting from a string to a type 'T' fails, an +uninitialized variable is returned; this condition can be detected with +the function 'bool initialized(T);' +int i=(int) "2.5"; +assert(initialized(i),"Invalid cast."); + +real x=(real) "2.5a"; +assert(initialized(x),"Invalid cast."); Casting to user-defined types is also possible using 'operator cast': struct rpair { @@ -4476,9 +4484,9 @@ some code one wants all integers to represent multiples of 100. To convert them to reals, one would first want to multiply them by 100. However, the straightforward implementation real operator cast(int x) {return x*100;} - is equivalent to an infinite recursion, since the result 'x*100' -needs itself to be cast from an integer to a real. Instead, we want to -use the standard conversion of int to real: +is equivalent to an infinite recursion, since the result 'x*100' needs +itself to be cast from an integer to a real. Instead, we want to use +the standard conversion of int to real: real convert(int x) {return x*100;} real operator cast(int x)=convert; @@ -4741,7 +4749,7 @@ File: asymptote.info, Node: LaTeX usage, Next: Base modules, Prev: Programmin *************** 'Asymptote' comes with a convenient 'LaTeX' style file 'asymptote.sty' -(v1.30 or later required) that makes 'LaTeX' 'Asymptote'-aware. +(v1.33 or later required) that makes 'LaTeX' 'Asymptote'-aware. Entering 'Asymptote' code directly into the 'LaTeX' source file, at the point where it is needed, keeps figures organized and avoids the need to invent new file names for each figure. Simply add the line @@ -9523,8 +9531,8 @@ Index * 'operator --': graph. (line 30) * 'operator ..': graph. (line 33) * 'operator answer': Interactive mode. (line 35) -* 'operator cast': Casts. (line 30) -* 'operator ecast': Casts. (line 57) +* 'operator cast': Casts. (line 38) +* 'operator ecast': Casts. (line 65) * 'operator init': Variable initializers. (line 6) * 'operator init' <1>: Structures. (line 134) @@ -10159,78 +10167,78 @@ Ref: tridiagonal173531 Ref: solve174762 Node: Slices178901 Node: Casts182809 -Node: Import184780 -Node: Static190027 -Node: LaTeX usage192920 -Node: Base modules199425 -Node: plain201982 -Node: simplex202656 -Node: math202930 -Node: interpolate205639 -Node: geometry205918 -Node: trembling206512 -Node: stats206781 -Node: patterns207041 -Node: markers207277 -Node: tree209137 -Node: binarytree209322 -Node: drawtree209988 -Node: syzygy210189 -Node: feynman210463 -Node: roundedpath210738 -Node: animation211021 -Ref: animate211442 -Node: embed212559 -Node: slide213514 -Node: MetaPost213855 -Node: unicode214574 -Node: latin1215448 -Node: babel215817 -Node: labelpath216047 -Node: labelpath3216868 -Node: annotate217179 -Node: CAD217649 -Node: graph217960 -Ref: ticks225110 -Ref: pathmarkers238742 -Ref: marker239212 -Ref: markuniform239566 -Ref: errorbars241364 -Ref: automatic scaling245648 -Node: palette256924 -Ref: images257042 -Ref: image261216 -Ref: logimage261736 -Ref: penimage262841 -Ref: penfunctionimage263103 -Node: three263874 -Ref: PostScript3D290883 -Node: obj292622 -Node: graph3292871 -Ref: GaussianSurface298150 -Node: grid3299299 -Node: solids300083 -Node: tube301075 -Node: flowchart303309 -Node: contour307917 -Node: contour3313228 -Node: smoothcontour3313541 -Node: slopefield315260 -Node: ode316748 -Node: Options317005 -Ref: configuration file323168 -Ref: settings323168 -Ref: texengines324411 -Ref: convert324411 -Node: Interactive mode327734 -Ref: history329883 -Node: GUI331187 -Node: GUI installation331738 -Node: GUI usage332649 -Node: PostScript to Asymptote333557 -Node: Help334315 -Node: Debugger335969 -Node: Credits337725 -Node: Index338707 +Node: Import185076 +Node: Static190323 +Node: LaTeX usage193216 +Node: Base modules199721 +Node: plain202278 +Node: simplex202952 +Node: math203226 +Node: interpolate205935 +Node: geometry206214 +Node: trembling206808 +Node: stats207077 +Node: patterns207337 +Node: markers207573 +Node: tree209433 +Node: binarytree209618 +Node: drawtree210284 +Node: syzygy210485 +Node: feynman210759 +Node: roundedpath211034 +Node: animation211317 +Ref: animate211738 +Node: embed212855 +Node: slide213810 +Node: MetaPost214151 +Node: unicode214870 +Node: latin1215744 +Node: babel216113 +Node: labelpath216343 +Node: labelpath3217164 +Node: annotate217475 +Node: CAD217945 +Node: graph218256 +Ref: ticks225406 +Ref: pathmarkers239038 +Ref: marker239508 +Ref: markuniform239862 +Ref: errorbars241660 +Ref: automatic scaling245944 +Node: palette257220 +Ref: images257338 +Ref: image261512 +Ref: logimage262032 +Ref: penimage263137 +Ref: penfunctionimage263399 +Node: three264170 +Ref: PostScript3D291179 +Node: obj292918 +Node: graph3293167 +Ref: GaussianSurface298446 +Node: grid3299595 +Node: solids300379 +Node: tube301371 +Node: flowchart303605 +Node: contour308213 +Node: contour3313524 +Node: smoothcontour3313837 +Node: slopefield315556 +Node: ode317044 +Node: Options317301 +Ref: configuration file323464 +Ref: settings323464 +Ref: texengines324707 +Ref: convert324707 +Node: Interactive mode328030 +Ref: history330179 +Node: GUI331483 +Node: GUI installation332034 +Node: GUI usage332945 +Node: PostScript to Asymptote333853 +Node: Help334611 +Node: Debugger336265 +Node: Credits338021 +Node: Index339003 End Tag Table |