[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Axiom-developer] drawRibbons from the book
From: |
Vanuxem Grégory |
Subject: |
Re: [Axiom-developer] drawRibbons from the book |
Date: |
Mon, 06 Nov 2006 00:49:18 +0100 |
Le dimanche 05 novembre 2006 à 11:47 -0800, Richard Harke a écrit :
> I have been working my way through the book. The first version of
> drawRibbons (Section 10.2, page 487) seems to work as described.
> The second version (section 10.3, page 489) produces some error
> messages which I don't understand. The following is the session.
> (after a )clear all)
>
> (1) -> )read ribbons
> drawRibbons(flist, xrange, yrange) ==
> sp := createThreeSpace()
> num := # flist
> yVar := variable yrange
> y0:Float := lo segment yrange
> width:Float := (hi segment yrange - y0)/num
> for f in flist for color in 1..num repeat
> makeObject(f, xrange, yVar=y0..y0+width,
> var2Steps == 1, colorFunction == (x,y) +-> color,
> space == sp)
^
You have to indent this line (it will be be considered as a continuation
of the previous line) or use an underscore (line continuation
character), so:
makeObject(f, xrange, yVar=y0..y0+width,
var2Steps == 1, colorFunction == (x,y) +-> color,
space == sp)
or
makeObject(f, xrange, yVar=y0..y0+width,
var2Steps == 1, colorFunction == (x,y) +-> color,_
space == sp)
With an underscore the indentation does not matter. I don't know if your
code used to work in the past.
Greg
- [Axiom-developer] drawRibbons from the book, Richard Harke, 2006/11/05
- Re: [Axiom-developer] drawRibbons from the book,
Vanuxem Grégory <=
- Re: [Axiom-developer] drawRibbons from the book, Vanuxem Grégory, 2006/11/05
- RE: [Axiom-developer] drawRibbons from the book, Bill Page, 2006/11/05
- Re: [Axiom-developer] drawRibbons from the book, Richard Harke, 2006/11/05
- Re: [Axiom-developer] drawRibbons from the book, root, 2006/11/05
- Re: [Axiom-developer] drawRibbons from the book, Richard Harke, 2006/11/05
- Re: [Axiom-developer] drawRibbons from the book, root, 2006/11/05
- RE: [Axiom-developer] drawRibbons from the book, Bill Page, 2006/11/06
Re: [Axiom-developer] drawRibbons from the book, Richard Harke, 2006/11/05